This project is read-only.

Not Found Base Class Methods!

May 2, 2012 at 1:10 PM

Hi,

I wrote ...

public class BaseGpu
{

    [Cudafy]
    public static void MainMethod()
    {
        //////
    }
}


public class GpuChild:BaseGpu
{
      [Cudafy]
      public static void SecondMethod()
      {
              MainMethod();
              //////
      }
}

But when compile it by nvcc an error is occurred that "Not found MainMethod"..

Thanks...

May 3, 2012 at 11:22 AM

Cudafy does not automatically parse base classes for methods with the Cudafy attribute.  You would need to pass both the derived and base class types to the Cudafy method when translating.