Closed AmosEgel closed 2 months ago
hi @AmosEgel.
The internal compiler exception should have an InnerException
property with more detailed information, including other helpful things such as line number.
Please have a look, and let us know what the inner exception says.
Thanks @MoFtZ.
The inner exception has an inner exception which says:
"The function 'SinF' does not have an intrinsic implementation for this backend. 'EnableAlgorithms' from the Algorithms library not invoked?"
OK, so you will need to add the ILGPU.Algorithms nuget package (matching the same version number as your ILGPU nuget package). And call EnableAlgortihms when creating the context.
Some sample code can be found here: https://github.com/m4rs-mt/ILGPU/blob/master/Samples/AlgorithmsMath/Program.cs
Nice, that worked. Thank you so much @MoFtZ !
Question
I am running a very simple kernel, but it throws an internal compiler error. The kernel reads:
Any idea what I can check to narrow down the problem?
Environment
Additional context
My laptop has two GPUs, the other one is an Intel(R) UHD Graphics 620 and does correctly process the kernel. The Intel GPU also does the display of my laptop.
Error message:
The following kernels run fine:
I use the following method to call the kernel: