cuFuncGetAttributes: Get the attributes of CUDA kernel routine

Description Usage Arguments Value Author(s) References See Also Examples

Description

This returns all of the attributes of a kernel routine. This loops over all the possible attributes and calls cuFuncGetAttribute.

Usage

1

Arguments

func

the reference to the loaded kernel routine from a CUDA module

Value

A numeric vector.

Author(s)

Duncan Temple Lang

References

http://docs.nvidia.com/cuda/cuda-driver-api/index.html

See Also

cuFuncGetAttribute

Examples

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)
}

duncantl/RCUDA documentation built on May 15, 2019, 5:26 p.m.