pub struct ArtifactCompileOptions(/* private fields */);Expand description
Compilation policy that must remain attached to a device artifact until its final machine-code generation step.
A zero value preserves the historical defaults, which keeps version-1 bundles emitted before this field was used fully compatible.
Implementations§
Source§impl ArtifactCompileOptions
impl ArtifactCompileOptions
Sourcepub const fn with_fma_contraction(self, enabled: bool) -> Self
pub const fn with_fma_contraction(self, enabled: bool) -> Self
Record whether ordinary floating-point multiply/add expressions may contract into fused operations.
Sourcepub const fn fma_contraction_enabled(self) -> bool
pub const fn fma_contraction_enabled(self) -> bool
Whether ordinary floating-point multiply/add expressions may contract.
Sourcepub const fn with_debug_policy(self, policy: ArtifactDebugPolicy) -> Self
pub const fn with_debug_policy(self, policy: ArtifactDebugPolicy) -> Self
Record the debug policy that all remaining CUDA compiler stages must use.
Sourcepub const fn debug_policy(self) -> ArtifactDebugPolicy
pub const fn debug_policy(self) -> ArtifactDebugPolicy
Debug policy attached to this artifact.
Sourcepub const fn sidecar_text(self) -> &'static str
pub const fn sidecar_text(self) -> &'static str
Encode this policy for a sibling .options file.
Sourcepub fn from_sidecar_text(value: &str) -> Result<Self, ArtifactError>
pub fn from_sidecar_text(value: &str) -> Result<Self, ArtifactError>
Parse a complete .options file. Version 1 defaults to no debug policy;
version 2 records line-table or full-debug preservation explicitly.
Trait Implementations§
Source§impl Clone for ArtifactCompileOptions
impl Clone for ArtifactCompileOptions
impl Copy for ArtifactCompileOptions
Source§impl Debug for ArtifactCompileOptions
impl Debug for ArtifactCompileOptions
Source§impl Default for ArtifactCompileOptions
impl Default for ArtifactCompileOptions
impl Eq for ArtifactCompileOptions
Source§impl Hash for ArtifactCompileOptions
impl Hash for ArtifactCompileOptions
Source§impl PartialEq for ArtifactCompileOptions
impl PartialEq for ArtifactCompileOptions
impl StructuralPartialEq for ArtifactCompileOptions
Auto Trait Implementations§
impl Freeze for ArtifactCompileOptions
impl RefUnwindSafe for ArtifactCompileOptions
impl Send for ArtifactCompileOptions
impl Sync for ArtifactCompileOptions
impl Unpin for ArtifactCompileOptions
impl UnsafeUnpin for ArtifactCompileOptions
impl UnwindSafe for ArtifactCompileOptions
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