Description Usage Arguments Value Author(s) References See Also Examples
This returns all of the attributes of a kernel routine.
This loops over all the possible attributes and
calls cuFuncGetAttribute
.
1 | cuFuncGetAttributes(func)
|
func |
the reference to the loaded kernel routine from a CUDA module |
A numeric vector.
Duncan Temple Lang
http://docs.nvidia.com/cuda/cuda-driver-api/index.html
1 2 3 4 5 6 7 8 | if(getNumDevices() > 0) {
ctx = cuGetContext(TRUE)
ptx = system.file("sampleKernels", "dnormOutput.ptx", package = "RCUDA")
m = loadModule(ptx)
kernel = m$dnorm_kernel
cuFuncGetAttributes(kernel)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.