pub type cudaDevResource = cudaDevResource_st;Expand description
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
typeiscudaDevResourceType::cudaDevResourceTypeInvalid, this resource is not valid and cannot be further accessed. - If
typeiscudaDevResourceType::cudaDevResourceTypeSm, thecudaDevSmResourcestructuresmis filled in. For example,sm.smCountwill reflect the amount of streaming multiprocessors available in this resource. - If
typeiscudaDevResourceType::cudaDevResourceTypeWorkqueueConfig, thecudaDevWorkqueueConfigResourcestructurewqConfigis filled in. - If
typeiscudaDevResourceType::cudaDevResourceTypeWorkqueue, thecudaDevWorkqueueResourcestructurewqis filled in.
Aliased Type§
#[repr(C)]pub struct cudaDevResource {
pub type_: cudaDevResourceType,
pub _internal_padding: [u8; 92],
pub __bindgen_anon_1: cudaDevResource_st__bindgen_ty_1,
pub nextResource: *mut cudaDevResource_st,
}Fields§
§type_: cudaDevResourceTypeType of resource, dictates which union field was last set.
_internal_padding: [u8; 92]Internal padding in the native ABI layout.
__bindgen_anon_1: cudaDevResource_st__bindgen_ty_1Anonymous native member. See cudaDevResource_st__bindgen_ty_1 for its fields.
nextResource: *mut cudaDevResource_stLink to another resource in a native device-resource chain.