pub struct DeviceAttributesBuilder(/* private fields */);Available on crate feature
test-support only.Expand description
Builds attributes for host-only tests in consumers
Implementations§
Source§impl DeviceAttributesBuilder
impl DeviceAttributesBuilder
Sourcepub fn new(capability: ComputeCapability) -> Self
pub fn new(capability: ComputeCapability) -> Self
A device with representative defaults for every attribute except the ones set
Sourcepub fn multiprocessors(self, count: u32) -> Self
pub fn multiprocessors(self, count: u32) -> Self
Sets the SM count
Sets the opt-in shared memory per block
Sourcepub fn build(self) -> DeviceAttributes
pub fn build(self) -> DeviceAttributes
The attributes
Trait Implementations§
Source§impl Clone for DeviceAttributesBuilder
impl Clone for DeviceAttributesBuilder
Auto Trait Implementations§
impl Freeze for DeviceAttributesBuilder
impl RefUnwindSafe for DeviceAttributesBuilder
impl Send for DeviceAttributesBuilder
impl Sync for DeviceAttributesBuilder
impl Unpin for DeviceAttributesBuilder
impl UnsafeUnpin for DeviceAttributesBuilder
impl UnwindSafe for DeviceAttributesBuilder
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