Skip to main content

cudaDevResource

Type Alias cudaDevResource 

Source
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;
};
};

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_: cudaDevResourceType

Type 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_1

Anonymous native member. See cudaDevResource_st__bindgen_ty_1 for its fields.

§nextResource: *mut cudaDevResource_st

Link to another resource in a native device-resource chain.