pub struct CompileOptions {
pub ftz: Option<bool>,
pub prec_sqrt: Option<bool>,
pub prec_div: Option<bool>,
pub fmad: Option<bool>,
pub options: Vec<String>,
pub use_fast_math: Option<bool>,
pub maxrregcount: Option<usize>,
pub include_paths: Vec<String>,
pub arch: Option<&'static str>,
pub name: Option<String>,
}Expand description
Flags you can pass to the nvrtc compiler. See https://docs.nvidia.com/cuda/nvrtc/index.html#group__options for all available flags and documentation for what they do.
All fields of this struct match one of the flags in the documentation.
if a field is None it will not be passed to the compiler.
All fields default to None.
NOTE: not all flags are currently supported.
Example:
// "--ftz=true" will be passed to the compiler
let opts = CompileOptions {
ftz: Some(true),
..Default::default()
};Fields§
§ftz: Option<bool>§prec_sqrt: Option<bool>§prec_div: Option<bool>§fmad: Option<bool>§options: Vec<String>§use_fast_math: Option<bool>§maxrregcount: Option<usize>§include_paths: Vec<String>§arch: Option<&'static str>§name: Option<String>Trait Implementations§
Source§impl Clone for CompileOptions
impl Clone for CompileOptions
Source§fn clone(&self) -> CompileOptions
fn clone(&self) -> CompileOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileOptions
impl Debug for CompileOptions
Source§impl Default for CompileOptions
impl Default for CompileOptions
Source§fn default() -> CompileOptions
fn default() -> CompileOptions
Returns the “default value” for a type. Read more
Source§impl Hash for CompileOptions
impl Hash for CompileOptions
Source§impl PartialEq for CompileOptions
impl PartialEq for CompileOptions
impl Eq for CompileOptions
impl StructuralPartialEq for CompileOptions
Auto Trait Implementations§
impl Freeze for CompileOptions
impl RefUnwindSafe for CompileOptions
impl Send for CompileOptions
impl Sync for CompileOptions
impl Unpin for CompileOptions
impl UnsafeUnpin for CompileOptions
impl UnwindSafe for CompileOptions
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