pub struct CompileOptions<'a> {Show 56 fields
pub gpu_architecture: Option<GpuArchitecture>,
pub relocatable_device_code: Option<bool>,
pub extensible_whole_program: bool,
pub device_debug: bool,
pub generate_line_info: bool,
pub device_optimization: Option<bool>,
pub fast_compile: Option<FastCompileLevel>,
pub ptxas_options: Vec<&'a str>,
pub max_register_count: Option<i32>,
pub flush_to_zero: Option<bool>,
pub precise_square_root: Option<bool>,
pub precise_division: Option<bool>,
pub fmad: Option<bool>,
pub use_fast_math: bool,
pub extra_device_vectorization: bool,
pub modify_stack_limit: Option<bool>,
pub dlink_time_optimization: bool,
pub generate_optimized_lto: bool,
pub optix_ir: bool,
pub jump_table_density: Option<u8>,
pub no_cache: bool,
pub random_seed: Option<&'a str>,
pub define_macros: Vec<MacroDefinition<'a>>,
pub undefine_macros: Vec<&'a str>,
pub include_paths: Vec<&'a str>,
pub pre_include_headers: Vec<&'a str>,
pub no_source_include: bool,
pub cpp_dialect: Option<CppDialect>,
pub builtin_move_forward: Option<bool>,
pub builtin_initializer_list: Option<bool>,
pub pch: bool,
pub create_pch: Option<&'a str>,
pub use_pch: Option<&'a str>,
pub pch_dir: Option<&'a str>,
pub pch_verbose: Option<bool>,
pub pch_messages: Option<bool>,
pub instantiate_templates_in_pch: Option<bool>,
pub disable_warnings: bool,
pub warning_as_error: Vec<WarningAsErrorKind>,
pub restrict_pointers: bool,
pub device_as_default_execution_space: bool,
pub device_int128: bool,
pub device_float128: bool,
pub optimization_info: Vec<OptimizationInfoKind>,
pub display_error_number: Option<bool>,
pub diag_error: Vec<i32>,
pub diag_suppress: Vec<i32>,
pub diag_warn: Vec<i32>,
pub brief_diagnostics: Option<bool>,
pub time: Option<&'a str>,
pub split_compile: Option<i32>,
pub device_syntax_only: bool,
pub minimal: bool,
pub device_stack_protector: Option<bool>,
pub device_time_trace: Option<&'a str>,
pub raw_options: Vec<&'a str>,
}Fields§
§gpu_architecture: Option<GpuArchitecture>§relocatable_device_code: Option<bool>§extensible_whole_program: bool§device_debug: bool§generate_line_info: bool§device_optimization: Option<bool>§fast_compile: Option<FastCompileLevel>§ptxas_options: Vec<&'a str>§max_register_count: Option<i32>§flush_to_zero: Option<bool>§precise_square_root: Option<bool>§precise_division: Option<bool>§fmad: Option<bool>§use_fast_math: bool§extra_device_vectorization: bool§modify_stack_limit: Option<bool>§dlink_time_optimization: bool§generate_optimized_lto: bool§optix_ir: bool§jump_table_density: Option<u8>§no_cache: bool§random_seed: Option<&'a str>§define_macros: Vec<MacroDefinition<'a>>§undefine_macros: Vec<&'a str>§include_paths: Vec<&'a str>§pre_include_headers: Vec<&'a str>§no_source_include: bool§cpp_dialect: Option<CppDialect>§builtin_move_forward: Option<bool>§builtin_initializer_list: Option<bool>§pch: bool§create_pch: Option<&'a str>§use_pch: Option<&'a str>§pch_dir: Option<&'a str>§pch_verbose: Option<bool>§pch_messages: Option<bool>§instantiate_templates_in_pch: Option<bool>§disable_warnings: bool§warning_as_error: Vec<WarningAsErrorKind>§restrict_pointers: bool§device_as_default_execution_space: bool§device_int128: bool§device_float128: bool§optimization_info: Vec<OptimizationInfoKind>§display_error_number: Option<bool>§diag_error: Vec<i32>§diag_suppress: Vec<i32>§diag_warn: Vec<i32>§brief_diagnostics: Option<bool>§time: Option<&'a str>§split_compile: Option<i32>§device_syntax_only: bool§minimal: bool§device_stack_protector: Option<bool>§device_time_trace: Option<&'a str>§raw_options: Vec<&'a str>Implementations§
Source§impl<'a> CompileOptions<'a>
impl<'a> CompileOptions<'a>
pub const fn new() -> Self
pub fn gpu_architecture(self, value: GpuArchitecture) -> Self
pub fn relocatable_device_code(self, value: bool) -> Self
pub fn extensible_whole_program(self, value: bool) -> Self
pub fn device_debug(self, value: bool) -> Self
pub fn generate_line_info(self, value: bool) -> Self
pub fn device_optimization(self, value: bool) -> Self
pub fn fast_compile(self, value: FastCompileLevel) -> Self
pub fn ptxas_option(self, value: &'a str) -> Self
pub fn max_register_count(self, value: i32) -> Self
pub fn flush_to_zero(self, value: bool) -> Self
pub fn precise_square_root(self, value: bool) -> Self
pub fn precise_division(self, value: bool) -> Self
pub fn fmad(self, value: bool) -> Self
pub fn use_fast_math(self, value: bool) -> Self
pub fn extra_device_vectorization(self, value: bool) -> Self
pub fn modify_stack_limit(self, value: bool) -> Self
pub fn dlink_time_optimization(self, value: bool) -> Self
pub fn generate_optimized_lto(self, value: bool) -> Self
pub fn optix_ir(self, value: bool) -> Self
pub fn jump_table_density(self, value: u8) -> Self
pub fn no_cache(self, value: bool) -> Self
pub fn random_seed(self, value: &'a str) -> Self
pub fn define_macro(self, value: MacroDefinition<'a>) -> Self
pub fn undefine_macro(self, value: &'a str) -> Self
pub fn include_path(self, value: &'a str) -> Self
pub fn pre_include_header(self, value: &'a str) -> Self
pub fn no_source_include(self, value: bool) -> Self
pub fn cpp_dialect(self, value: CppDialect) -> Self
pub fn builtin_move_forward(self, value: bool) -> Self
pub fn builtin_initializer_list(self, value: bool) -> Self
pub fn pch(self, value: bool) -> Self
pub fn create_pch(self, value: &'a str) -> Self
pub fn use_pch(self, value: &'a str) -> Self
pub fn pch_dir(self, value: &'a str) -> Self
pub fn pch_verbose(self, value: bool) -> Self
pub fn pch_messages(self, value: bool) -> Self
pub fn instantiate_templates_in_pch(self, value: bool) -> Self
pub fn disable_warnings(self, value: bool) -> Self
pub fn warning_as_error(self, value: WarningAsErrorKind) -> Self
pub fn restrict_pointers(self, value: bool) -> Self
pub fn device_as_default_execution_space(self, value: bool) -> Self
pub fn device_int128(self, value: bool) -> Self
pub fn device_float128(self, value: bool) -> Self
pub fn optimization_info(self, value: OptimizationInfoKind) -> Self
pub fn display_error_number(self, value: bool) -> Self
pub fn diag_error(self, value: i32) -> Self
pub fn diag_suppress(self, value: i32) -> Self
pub fn diag_warn(self, value: i32) -> Self
pub fn brief_diagnostics(self, value: bool) -> Self
pub fn time(self, value: &'a str) -> Self
pub fn split_compile(self, value: i32) -> Self
pub fn device_syntax_only(self, value: bool) -> Self
pub fn minimal(self, value: bool) -> Self
pub fn device_stack_protector(self, value: bool) -> Self
pub fn device_time_trace(self, value: &'a str) -> Self
pub fn raw_option(self, value: &'a str) -> Self
pub fn as_arguments(&self) -> Vec<String>
Trait Implementations§
Source§impl<'a> Clone for CompileOptions<'a>
impl<'a> Clone for CompileOptions<'a>
Source§fn clone(&self) -> CompileOptions<'a>
fn clone(&self) -> CompileOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CompileOptions<'a>
impl<'a> Debug for CompileOptions<'a>
Source§impl<'a> Default for CompileOptions<'a>
impl<'a> Default for CompileOptions<'a>
Source§fn default() -> CompileOptions<'a>
fn default() -> CompileOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for CompileOptions<'a>
impl<'a> RefUnwindSafe for CompileOptions<'a>
impl<'a> Send for CompileOptions<'a>
impl<'a> Sync for CompileOptions<'a>
impl<'a> Unpin for CompileOptions<'a>
impl<'a> UnsafeUnpin for CompileOptions<'a>
impl<'a> UnwindSafe for CompileOptions<'a>
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