pub struct Config { /* fields omitted */ }
Extra configuration to be passed to ISPC
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.
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)
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.
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)