Struct ispc::Config

source · []
pub struct Config { /* private fields */ }
Expand description

Extra configuration to be passed to ISPC

Implementations

Add an ISPC file to be compiled

Set the output directory to override the default of env!("OUT_DIR")

Set whether debug symbols should be generated, symbols are generated by default if env!("DEBUG") == "true"

Set the optimization level to override the default of env!("OPT_LEVEL")

Set the target triple to compile for, overriding the default of env!("TARGET")

Add a define to be passed to the ISPC compiler, e.g. -DFOO or -DBAR=FOO if a value should also be set.

Select the 32 or 64 bit addressing calculations for addressing calculations in ISPC.

Set the math library used by ISPC code, defaults to the ISPC math library.

Set an optimization option.

Set the cpu target. This overrides the default choice of ISPC which is to target the host CPU.

Force ISPC memory allocations to be aligned to alignment.

Add an extra include path for the ispc compiler to search for files.

Disable frame pointer omission. It may be useful for profiling to disable omission.

Don’t make the ispc standard library available.

Don’t run the C preprocessor

Enable suppression of all ispc compiler output.

Enable treating warnings as errors.

Disable all warnings.

Don’t issue warnings related to performance issues

Emit instrumentation code for ISPC to gather performance data such as vector utilization.

Select the target ISA and vector width. If none is specified ispc will choose the host CPU ISA and vector width.

Select multiple target ISAs and vector widths. If none is specified ispc will choose the host CPU ISA and vector width. Note that certain options are not compatible with this use case, e.g. AVX1.1 will replace AVX1, Host should not be passed (just use the default)

Select the CPU architecture to target

Set whether Cargo metadata should be emitted to link to the compiled library

The library name should not have any prefix or suffix, e.g. instead of libexample.a or example.lib simply pass example

Get the ISPC compiler version.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.