How to use math functions in dcompute?

Nicholas Wilson iamthewilsonator at hotmail.com
Tue Sep 18 01:26:40 UTC 2018


On Tuesday, 18 September 2018 at 00:25:33 UTC, Sobaya wrote:
> On Friday, 7 September 2018 at 10:53:25 UTC, Sobaya wrote:
>> On Friday, 7 September 2018 at 10:17:47 UTC, Nicholas Wilson 
>> wrote:
>>> On Friday, 7 September 2018 at 06:45:32 UTC, Sobaya wrote:
>>>>[...]
>>>
>>> You're missing an "m" in "nvvm", dunno if that will fix it.
>>>
>>>> [...]
>>>
>>> I'll be adding these to DCompute soon (probably Sunday), 
>>> LLVM7.0 has just been released and I've been waiting on that 
>>> to do testing.
>>
>> I understand about the release.
>>
>> But missing "m" is just my typo here. I wrote "llvm.nvvm.cos" 
>> correctly on my code, and error occurred.
>
> I'm waiting for the update. How's your progress?
>
> Still it doesn't work well in my environment.
>
> If you know temporary solution for use "cos" or "sin", I want 
> to try it.
>
> Thank you.

Sorry you need to add a size for the argument "llvm.nvvm.cos.f32" 
for float or copy what is done in ldc/intrinsics.di with a 
template for "llvm.nvvm.cos.f#"




More information about the Digitalmars-d-learn mailing list