Attribute [GpuManaged] throws exception during runtime

157 Views Asked by At

I am getting Found more than one basic block without predecessors exception:

enter image description here

When trying to execute following code:

    static void Main(string[] args)
    {
        var gpu = Gpu.Default;
        gpu.For(0, 100, idx => Do(idx)); // on this line

        Console.ReadKey();
    }

    [GpuManaged]
    public static void Do(int idx)
    {
        bool isTrue = false;
    }

What could be the issue? No exception is thrown when [GpuManaged] is not used

  • win 10 x64
  • alea 3.0.4
  • alea.fody 3.0.4
  • fsharp.core 4.3.4
  • geforce GT 710
0

There are 0 best solutions below