compute

When applied to a module, specifies that the module should be compiled for dcompute (-mdcompute-targets=<...>) using the NVPTX and/or SPIRV backends of LLVM.

Members

Variables

codeProduction
CompileFor codeProduction;
Undocumented in source.

Examples

@compute(CompileFor.deviceOnly) module foo;
import ldc.dcompute;

Meta