#[repr(C)]pub struct cudaDevResource_st {
pub type_: cudaDevResourceType,
pub _internal_padding: [c_uchar; 92],
pub __bindgen_anon_1: cudaDevResource_st__bindgen_ty_1,
pub nextResource: *mut 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.
Fields§
§type_: cudaDevResourceTypeType of resource, dictates which union field was last set.
_internal_padding: [c_uchar; 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.
Trait Implementations§
Source§impl Clone for cudaDevResource_st
impl Clone for cudaDevResource_st
impl Copy for cudaDevResource_st
Auto Trait Implementations§
impl !Send for cudaDevResource_st
impl !Sync for cudaDevResource_st
impl Forget for cudaDevResource_st
impl Freeze for cudaDevResource_st
impl Move for cudaDevResource_st
impl RefUnwindSafe for cudaDevResource_st
impl Unpin for cudaDevResource_st
impl UnsafeUnpin for cudaDevResource_st
impl UnwindSafe for cudaDevResource_st
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more