Skip to content

Getting Started

Nicholas Wilson edited this page Feb 27, 2017 · 4 revisions

To use DCompute you need DCompute (obviously) and a modified ldc (available here). If you wish to target OpenCL, in addition to its normal dependencies when you build ldc you'll need to use A SPIRV capable LLVM (available here) and in the cmake settings tick advanced and select LDC_WITH_DCOMPUTE_SPIRV.

If at any point you think ldc is doing something funky (or are just curious): use the -output-ll (output llvm ir) switch of ldc2 in combination with the -vv (enable logging) flag to see whats going on. grep is also useful as -vv produces a lot of output.

Clone this wiki locally