7.61. CUdevResource
Defined in /dvs/p4/build/sw/gpgpu/bin/x86_64_Linux_release/stub/cuda.h
-
struct CUdevResource
A tagged union describing different resources identified by the type field. This structure should not be directly modified outside of the API that created it.
struct { CUdevResourceType type; union { CUdevSmResource sm; CUdevWorkqueueConfigResource wqConfig; CUdevWorkqueueResource wq; }; };
If
typeisCU_DEV_RESOURCE_TYPE_INVALID, this resoure is not valid and cannot be further accessed.If
typeisCU_DEV_RESOURCE_TYPE_SM, the CUdevSmResource structuresmis filled in. For example,sm.smCountwill reflect the amount of streaming multiprocessors available in this resource.If
typeisCU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG, the CUdevWorkqueueConfigResource structurewqConfigis filled in.If
typeisCU_DEV_RESOURCE_TYPE_WORKQUEUE, the CUdevWorkqueueResource structurewqis filled in.