The OpenD Programming Language

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.

struct compute {
CompileFor codeProduction;
}

Examples

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

Meta