Re: Need importing dcompute.lib into my project

2017-10-13 Thread jmh530 via Digitalmars-d-learn
On Sunday, 8 October 2017 at 07:51:12 UTC, Nicholas Wilson wrote: You are using an old DCompute: that message was changed in https://github.com/libmir/dcompute/commit/cf1420d5377c48f9132f1a9a0f8f06ebb46a6433#diff-b0637c2cde07f2ec8f77f9e3d379fff7 I'm not quite sure how the dub version specs wo

Re: Need importing dcompute.lib into my project

2017-10-13 Thread kerdemdemir via Digitalmars-d-learn
On Friday, 13 October 2017 at 16:36:06 UTC, Ali Çehreli wrote: On 10/13/2017 08:47 AM, kerdemdemir wrote: > I changed my dependency setting in dub file to "dcompute": "~>0.0.0" but > still getting the same error message. By the way I am sure my LDC > version is good because I can build DCompute

Re: Need importing dcompute.lib into my project

2017-10-13 Thread Ali Çehreli via Digitalmars-d-learn
On 10/13/2017 08:47 AM, kerdemdemir wrote: > I changed my dependency setting in dub file to "dcompute": "~>0.0.0" but > still getting the same error message. By the way I am sure my LDC > version is good because I can build DCompute source code with same LDC > version. Could this be related to d

Re: Need importing dcompute.lib into my project

2017-10-13 Thread kerdemdemir via Digitalmars-d-learn
On Sunday, 8 October 2017 at 07:51:12 UTC, Nicholas Wilson wrote: On Saturday, 7 October 2017 at 10:34:15 UTC, kerdemdemir wrote: do you set "-mdcompute-targets=cuda-xxx" in the dflags for your dub.json for your project? I have added now after your comment. But it seems it didn't changed anyt

Re: Need importing dcompute.lib into my project

2017-10-08 Thread Nicholas Wilson via Digitalmars-d-learn
On Saturday, 7 October 2017 at 10:34:15 UTC, kerdemdemir wrote: do you set "-mdcompute-targets=cuda-xxx" in the dflags for your dub.json for your project? I have added now after your comment. But it seems it didn't changed anything. Here is the dub.json file I have: { "name": "dsharpe

Re: Need importing dcompute.lib into my project

2017-10-07 Thread kerdemdemir via Digitalmars-d-learn
On Saturday, 7 October 2017 at 12:12:10 UTC, kinke wrote: On Saturday, 7 October 2017 at 09:04:26 UTC, kerdemdemir wrote: Error: static assert "Need to use a DCompute enabled compiler" Are you using latest LDC 1.4? The CUDA backend wasn't enabled for earlier versions. Yes I am. Actually I

Re: Need importing dcompute.lib into my project

2017-10-07 Thread kinke via Digitalmars-d-learn
On Saturday, 7 October 2017 at 09:04:26 UTC, kerdemdemir wrote: Error: static assert "Need to use a DCompute enabled compiler" Are you using latest LDC 1.4? The CUDA backend wasn't enabled for earlier versions.

Re: Need importing dcompute.lib into my project

2017-10-07 Thread kerdemdemir via Digitalmars-d-learn
do you set "-mdcompute-targets=cuda-xxx" in the dflags for your dub.json for your project? I have added now after your comment. But it seems it didn't changed anything. Here is the dub.json file I have: { "name": "dsharpear", "authors": [ "Erdem" ],

Re: Need importing dcompute.lib into my project

2017-10-07 Thread Nicholas Wilson via Digitalmars-d-learn
On Saturday, 7 October 2017 at 09:04:26 UTC, kerdemdemir wrote: You should add DCompute as a DUB dependancy. Hi, I inited my project with Dub by unsing "dub init DSharpEar" and I added dependency "dcompute". Even I give extra parameters for using ldc. dub build --compiler=D:\LDCDownload\

Re: Need importing dcompute.lib into my project

2017-10-07 Thread kerdemdemir via Digitalmars-d-learn
You should add DCompute as a DUB dependancy. Hi, I inited my project with Dub by unsing "dub init DSharpEar" and I added dependency "dcompute". Even I give extra parameters for using ldc. dub build --compiler=D:\LDCDownload\bin\ldc2.exe --force I am getting : Error: static assert "Need

Re: Need importing dcompute.lib into my project

2017-10-06 Thread Nicholas Wilson via Digitalmars-d-learn
On Friday, 6 October 2017 at 18:12:43 UTC, kerdemdemir wrote: Hi, I have a cuda kernel already working in my cpp project(https://github.com/kerdemdemir/CUDABeamformer/blob/master/CudaBeamformer/kernel.cu) I am trying to convert this to D with using DCompute. I already compiled the DCompute s

Need importing dcompute.lib into my project

2017-10-06 Thread kerdemdemir via Digitalmars-d-learn
Hi, I have a cuda kernel already working in my cpp project(https://github.com/kerdemdemir/CUDABeamformer/blob/master/CudaBeamformer/kernel.cu) I am trying to convert this to D with using DCompute. I already compiled the DCompute source code and have dcompute.lib. But I am really not good wit