7.9. cudaDevResource
-
struct cudaDevResource
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 { enum cudaDevResourceType type; union { struct cudaDevSmResource sm; struct cudaDevWorkqueueConfigResource wqConfig; struct cudaDevWorkqueueResource wq; }; };
If
typeiscudaDevResourceTypeInvalid, this resoure is not valid and cannot be further accessed.If
typeiscudaDevResourceTypeSm, the cudaDevSmResource structuresmis filled in. For example,sm.smCountwill reflect the amount of streaming multiprocessors available in this resource.If
typeiscudaDevResourceTypeWorkqueueConfig, the cudaDevWorkqueueConfigResource structurewqConfigis filled in.If
typeiscudaDevResourceTypeWorkqueue, the cudaDevWorkqueueResource structurewqis filled in.
Public Members
-
union cudaDevResource::[anonymous] [anonymous]
-
unsigned char _internal_padding[92]
-
unsigned char _oversize[40]
-
struct cudaDevResource_st *nextResource
-
struct cudaDevSmResource sm
Resource corresponding to cudaDevResourceTypeSm
type.
-
enum cudaDevResourceType type
Type of resource, dictates which union field was last set.
-
struct cudaDevWorkqueueResource wq
Resource corresponding to cudaDevResourceTypeWorkqueue
type.
-
struct cudaDevWorkqueueConfigResource wqConfig
Resource corresponding to cudaDevResourceTypeWorkqueueConfig
type.