Skip to main content

CompileOptions

Struct CompileOptions 

Source
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>

Source

pub const fn new() -> Self

Source

pub fn gpu_architecture(self, value: GpuArchitecture) -> Self

Source

pub fn relocatable_device_code(self, value: bool) -> Self

Source

pub fn extensible_whole_program(self, value: bool) -> Self

Source

pub fn device_debug(self, value: bool) -> Self

Source

pub fn generate_line_info(self, value: bool) -> Self

Source

pub fn device_optimization(self, value: bool) -> Self

Source

pub fn fast_compile(self, value: FastCompileLevel) -> Self

Source

pub fn ptxas_option(self, value: &'a str) -> Self

Source

pub fn max_register_count(self, value: i32) -> Self

Source

pub fn flush_to_zero(self, value: bool) -> Self

Source

pub fn precise_square_root(self, value: bool) -> Self

Source

pub fn precise_division(self, value: bool) -> Self

Source

pub fn fmad(self, value: bool) -> Self

Source

pub fn use_fast_math(self, value: bool) -> Self

Source

pub fn extra_device_vectorization(self, value: bool) -> Self

Source

pub fn modify_stack_limit(self, value: bool) -> Self

Source

pub fn generate_optimized_lto(self, value: bool) -> Self

Source

pub fn optix_ir(self, value: bool) -> Self

Source

pub fn jump_table_density(self, value: u8) -> Self

Source

pub fn no_cache(self, value: bool) -> Self

Source

pub fn random_seed(self, value: &'a str) -> Self

Source

pub fn define_macro(self, value: MacroDefinition<'a>) -> Self

Source

pub fn undefine_macro(self, value: &'a str) -> Self

Source

pub fn include_path(self, value: &'a str) -> Self

Source

pub fn pre_include_header(self, value: &'a str) -> Self

Source

pub fn no_source_include(self, value: bool) -> Self

Source

pub fn cpp_dialect(self, value: CppDialect) -> Self

Source

pub fn builtin_move_forward(self, value: bool) -> Self

Source

pub fn builtin_initializer_list(self, value: bool) -> Self

Source

pub fn pch(self, value: bool) -> Self

Source

pub fn create_pch(self, value: &'a str) -> Self

Source

pub fn use_pch(self, value: &'a str) -> Self

Source

pub fn pch_dir(self, value: &'a str) -> Self

Source

pub fn pch_verbose(self, value: bool) -> Self

Source

pub fn pch_messages(self, value: bool) -> Self

Source

pub fn instantiate_templates_in_pch(self, value: bool) -> Self

Source

pub fn disable_warnings(self, value: bool) -> Self

Source

pub fn warning_as_error(self, value: WarningAsErrorKind) -> Self

Source

pub fn restrict_pointers(self, value: bool) -> Self

Source

pub fn device_as_default_execution_space(self, value: bool) -> Self

Source

pub fn device_int128(self, value: bool) -> Self

Source

pub fn device_float128(self, value: bool) -> Self

Source

pub fn optimization_info(self, value: OptimizationInfoKind) -> Self

Source

pub fn display_error_number(self, value: bool) -> Self

Source

pub fn diag_error(self, value: i32) -> Self

Source

pub fn diag_suppress(self, value: i32) -> Self

Source

pub fn diag_warn(self, value: i32) -> Self

Source

pub fn brief_diagnostics(self, value: bool) -> Self

Source

pub fn time(self, value: &'a str) -> Self

Source

pub fn split_compile(self, value: i32) -> Self

Source

pub fn device_syntax_only(self, value: bool) -> Self

Source

pub fn minimal(self, value: bool) -> Self

Source

pub fn device_stack_protector(self, value: bool) -> Self

Source

pub fn device_time_trace(self, value: &'a str) -> Self

Source

pub fn raw_option(self, value: &'a str) -> Self

Source

pub fn as_arguments(&self) -> Vec<String>

Trait Implementations§

Source§

impl<'a> Clone for CompileOptions<'a>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for CompileOptions<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for CompileOptions<'a>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.