This project is read-only.

Windows Forms app and nvcc

Dec 21, 2013 at 4:29 AM
Hello everybody,

I'm working on my first Windows Forms application using Cudafy. When I run the .exe file created by Visual Studio, it launches an nvcc window for a few seconds. Is it normal? I mean not only at the time of compilation, but even if I run the .exe file separately from Visual Studio. It is quite annoying for end user, isn't it?

I use CudafyOld(), because Cudafy() doesn't work for me.
CudafyModule km = CudafyTranslator.CudafyOld(ePlatform.x86, eArchitecture.sm_30, null, true, typeof(_myClass));
Cudafy() throws exception "The system cannot find the file specified" but doesn't tell which file.

The same happens in all Cudafy example projects. CUDA examples work fine.

So, could you help me with these two problems:
  1. nvcc window launches every time I run the .exe file.
  2. CudafyOld() works, Cudafy() doesn't.
Thank you in advance,
Andrei
Dec 22, 2013 at 4:20 PM
Edited Dec 22, 2013 at 4:21 PM
Ok, I managed to resolve the first problem using Serialize() / TryDeserialize()
var km = CudafyModule.TryDeserialize("_myClass.cdfy");
if (km == null || !km.TryVerifyChecksums())
{
    km = CudafyTranslator.CudafyOld(ePlatform.x86, eArchitecture.sm_30, null, true, typeof(_myClass));
    km.Serialize();
}
but it only works if I specify the file name. TryDeserialize() without arguments doesn't work.

Cudafy() still doesn't work for me. CudafyOld() does.