You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran across dcompute and thought I would give it a try. What is the combination of dcompute and ldc that is expected to work? I have tried ldc 1.4.0 thru 1.15 with dcompute 0.1.0 and master and have not found a combination that works when I try "dub test dcompute".
Depending upon the combination I get different errors including:
Unfortunately, I cannot get that to work either as it gets the 'enforcement failed error'.
(ldc-1.15.0-beta2)$ dub test dcompute --compiler=ldc2
Building package dcompute in /home/mneilly/.dub/packages/dcompute-master/dcompute/
Executable configuration "unittest" of package dcompute defines no main source file, this may cause certain build modes to fail. Add an explicit "mainSourceFile" to the package description to fix this.
Running custom 'unittest' configuration.
Performing "unittest" build using ldc2 for x86_64.
derelict-util 3.0.0-beta.2: building configuration "library"...
derelict-cl 3.2.0: building configuration "library"...
derelict-cuda 3.1.1: building configuration "library"...
taggedalgebraic 0.10.13: target for configuration "library" is up to date.
dcompute ~master: building configuration "unittest"...
To force a rebuild of up-to-date targets, run again with --force.
Running ../../../.dub/packages/dcompute-master/dcompute/dcompute
object.Exception@../../../.dub/packages/dcompute-master/dcompute/source/dcompute/tests/main.d(106): Enforcement failed
----------------
??:? [0x55b341cfea80]
??:? [0x55b341d08d3a]
??:? [0x55b341cf026d]
exception.d:516 [0x55b341cba4a0]
exception.d:436 [0x55b341ca9465]
main.d:106 [0x55b341ca8a79]
??:? [0x55b341cefeef]
??:? [0x55b341cefde7]
__entrypoint.d:8 [0x55b341caa5d4]
??:? __libc_start_main [0x7f78136f42e0]
??:? [0x55b341ca8219]
Program exited with code 1
You appear to be using OpenCL, which means that you need to figure out which device (if any) supports OpenCL 2.1 (for me that is the Intel experimental CPU) and adjust https://github.com/libmir/dcompute/blob/master/source/dcompute/tests/main.d#L24 to match whatever index that device is. I insulated the Nvidia 1.2 before the intel ones so that is index zero, then the intel 1.2 one is index one and the experimental 2.1 device is index 2.
Thanks for the responses (and the creation of dcompute!). :)
I'm not intending to use CL. I see version = DComputeTestCUDA; at the top of ~/.dub/packages/dcompute-master/dcompute/source/dcompute/tests/ and I see that .dub/obj/kernels_cuda210_64.ptx was created...
If I comment out the enforce I see that res[] is all zero.
Activity
thewilsonator commentedon Mar 25, 2019
Try with the latest LDC beta.
mneilly commentedon Mar 25, 2019
Unfortunately, I cannot get that to work either as it gets the 'enforcement failed error'.
thewilsonator commentedon Mar 25, 2019
You appear to be using OpenCL, which means that you need to figure out which device (if any) supports OpenCL 2.1 (for me that is the Intel experimental CPU) and adjust https://github.com/libmir/dcompute/blob/master/source/dcompute/tests/main.d#L24 to match whatever index that device is. I insulated the Nvidia 1.2 before the intel ones so that is index zero, then the intel 1.2 one is index one and the experimental 2.1 device is index 2.
mneilly commentedon Mar 25, 2019
Thanks for the responses (and the creation of dcompute!). :)
I'm not intending to use CL. I see
version = DComputeTestCUDA;at the top of~/.dub/packages/dcompute-master/dcompute/source/dcompute/tests/and I see that .dub/obj/kernels_cuda210_64.ptx was created...If I comment out the enforce I see that
res[]is all zero.thewilsonator commentedon Mar 25, 2019
Hmm, I'll have to look into that then.
thewilsonator commentedon Dec 11, 2019
This may have been fixed by ldc-developers/ldc#3251