So I have 2 classes, both classes call CudafyTranslator.Cudafy and cudafy their appropriate methods. The resulting modules are then added to the GPU. Why does cudafy keep giving me a compile exception when I call one cudafied method from one class, from within a cudafied method of another class. I know I can call cudafied methods from other cudafied methods within the same class, so why doesn't this work?
//Class 1:
public class Class1
{
[Cudafy]
public static void method1()
{
//Do stuff.
}
}
//Class 2:
public class Class2
{
[Cudafy]
public static void method2()
{
Class1.method1();
}
}