VisualStudio muestra un error al agregar el atributo GpuManaged
yo obtengoFody/Alea: TODO Transform: ILLabel
error en VS, al intentar compilar el siguiente código:
static void Main(string[] args)
{
var gpu = Gpu.Default;
gpu.For(0, 100, idx => Do(idx));
Console.ReadKey();
}
[GpuManaged]
public static void Do(int idx)
{
bool isTrue = false;
bool one = true;
bool two = true;
for (int i = 0; i < 10; i++)
{
if (isTrue)
{
if (one)
continue;
isTrue = false;
}
else
{
if (two)
continue;
isTrue = true;
}
}
}
El problema solo es reproducible al poner el[GpuManaged]
atributo. También he notado que si quitasif (one) continue;
yif (two) continue;
entonces el error desaparece. ¿Cómo lo soluciono?
El código se simplificó mucho de mi solución real, pero esto debería ser suficiente para ver el problema.
ganar 10 x64alea 3.0.4alea.fody 3.0.4fsharp.core 4.3.4geforce GT 710