I am trying to convert a recursive algorithm from CPU to GPU using ALEA Library. I get the following errors if I build the code :
"Fody/Alea.CUDA: AOTCompileServer exited unexpectly with exit code -1073741571"
public class GPUModule : ILGPUModule
{
public GPUModule (GPUModuleTarget target) : base(target)
{
}
[Kernel] //Same Error whether RecursionTest is another Kernel or not.
public void RecursionTest(deviceptr<int> a)
{
...
RecursionTest(a);
}
[Kernel]
public MyKernel(deviceptr<int> a, ...)
{
...
var a = __shared__.Array<int>(10);
RecursionTest(Intrinsic.__array_to_ptr<int>(a)); //Error here
}
...
}
I will appreciate if you provide any documentation or link for recursion examples in C# using ALEA Library.
Thanks in advance