-
Notifications
You must be signed in to change notification settings - Fork 28
Getting Started
thewilsonator edited this page Jul 17, 2016
·
4 revisions
To use DCompute you need DCompute (obviously) and a modified ldc (available here). In addition to its normal dependencies, to build the modified ldc you'll need Khronos's SPIRV-LLVM (available here. To build ldc follow its build guide, but note that you may need to force the linking of libLLVMSPIRVLib.a by modifying the makefile by inserting -L-lLLVMSPIRVLib
into the (l|g)dmd invocation around line 140 of build.make. Adapt the previous to your favourite build environment/OS.
If at any point you think ldc is doing something funky: use the -output-ll
(output llvm ir) switch in combination with the -vv
(enable logging) flag to see whats going on. grep
is also useful a -vv
produces a lot of output.