Description Usage Arguments Details Value Examples
This is a set of functions to query the device information and select which device should be used in the computation
1 2 3 4 5 6 7 8 9 10 11 | getDeviceList()
getDeviceInfo(i)
getCurDevice()
setDevice(i)
getDeviceIndex()
getJobStatus(i)
|
i |
A 1-based device index, it should be an integer |
'getDeviceList()': The function is used to obtain all the opencl-enable devices
'getDeviceInfo()': Get the ith device information, call 'getDeviceList()' first to figure out the index before using this function
'getCurDevice()': Get the information of the current devices
'setDevice()': Set which device will be used in the opencl, call 'getDeviceList()' first to figure out the index before use this function
'getDeviceIndex()': Get the index of the current devices
'getJobStatus()': Query the current job status in a device
'getDeviceList()': A data.frame that contains all device info
'getDeviceInfo()': A list with the device information
'getCurDevice()': No return value, the result will be printed in the console
'setDevice()': No return value
'getDeviceIndex()': An integer representing the device index
'getJobStatus()': A character representing the device status
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #Get the available devices
getDeviceList()
#Get the information of the first device
getDeviceInfo(1)
#Get the information of current used devices
getCurDevice()
#Use the first device
setDevice(1)
#Use two devices
#setDevice(c(1,2))
#Get the index of the current devices
getDeviceIndex()
#Get the job status in the first device
getJobStatus(1)
|
Registered S3 method overwritten by 'pryr':
method from
print.bytes Rcpp
No device has been found, please make sure the computer has a graphic card or the driver has been properly installed.
Hint:
For CPU, you can install the intel's / ATI's graphic driver for the intel's / AMD's CPU respectively.
For GPU, you need to download the graphic driver from your vendor's website.
No device has been found, please make sure the computer has a graphic card or the driver has been properly installed.
Hint:
For CPU, you can install the intel's / ATI's graphic driver for the intel's / AMD's CPU respectively.
For GPU, you need to download the graphic driver from your vendor's website.
No device has been found!
NULL
No device has been found, please make sure the computer has a graphic card or the driver has been properly installed.
Hint:
For CPU, you can install the intel's / ATI's graphic driver for the intel's / AMD's CPU respectively.
For GPU, you need to download the graphic driver from your vendor's website.
No device has been found!
NULL
No device has been found!
NULL
No device has been found!
NULL
No device has been found!
NULL
No device has been found!
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.