dcompute - Error: unrecognized `pragma(LDC_intrinsic)
HappyDance321 at gmail.com
Thu Feb 28 11:22:49 UTC 2019
On Thursday, 28 February 2019 at 10:37:22 UTC, Nicholas Wilson
> On Thursday, 28 February 2019 at 09:58:35 UTC, Michelle Long
>> I've included it in Visual D as di and it seems not to add it
>> to the include line...
>> Is it in any way possible that it being an di file would allow
>> that? Seems that it is an LDC issue though but LDC has some
>> usage of it I believe and it works fine.
>> Could it be a LDC version? Or do I need to include something
>> to make it work? Seems like it would be part of the compiler
> (I'm on cold and flu meds so apologies if this doesn't make
> It should be on the atuoimport path of LDC as that file had
> are part of LDC's druntime which should be imported by ldc's
> .conf file, it won't show up on the command line unless you do
> something (... brain not working properly...).
> Irrespective of all that, the error comes from
> which should never happen because this branch should be taken
> because that pragma is explicitly checked for here
Yeah, in the config it is
// default switches appended after all explicit command-line
post-switches = [
I've hard coded it and it still doesn't find them.
I've added -conf=
dcompute\driver\cuda\package.d(3): Error: module `dcompute` is in
file 'ldc\dcompute.d' which cannot be read
Of course if I manually include it then it gives more problems...
Seems ldc is not even reading the conf file or using it if it is?
If you are right then it seems you are suggesting it is an LDC
bug... but that this is highly unlikely...
I am using Visual D and maybe it is all setup for dub and dub
takes care of configuring something that Visual D does not?
Note that I've had to include the dcompute imports(downloaded
from git), rt(for xmalloc I think), and derelict modules.
I did those because when I added dcompute it would complain about
the missing modules so I had to hunt and peck to find them.
When I remove the ldc imports from Visual D,
then the error about missing ldc.dcompute is at
public import ldc.dcompute;
which, is in the ldc imports dir(which is why i manually included
them which solves it then gives the intrinsics error).
In any case, it seems like it is a very strange bug since
`pragma(LDC_intrinsic` should work fine. It's analogous to
`pragma(msg` not working in dmd...
Are you using the latest ldc? (1.14.0?)
More information about the Digitalmars-d-learn