Cannot find compiler 'cl.exe' in PATH

Hi

i’m trying to execute the example cuda “JCudaVectorAdd” but my issue is cl.exe.

Could not create .ptx file: nvcc fatal : Cannot find compiler ‘cl.exe’ in PATH.

I changed the path and always the message.
Microsoft Visual studio Express 10 is installed, can you help me please.
I’m trying too with mingw and -ccbin pathtogcc but it’s failure.

edit : i use eclipse

Hello

This has also been described in this thread: http://forum.byte-welt.de/showthread.php?t=3260 - Did you try out some of the possible approaches for solving this?

bye
Marco

paths is good.
my VS installation is 32-bits, maybe that the problem?
can i use mingw instead of cl.exe?

Hm… When you’re emphasiszing that it is 32bit: Do you have a 64bit System, and maybe a 64bit CUDA Toolkit/SDK? I don’t think that this should cause any problem, I’m just wondering…

There are other threads about this, for example, at the NVIDIA forum … although most of them remain unanswered -_- However, it should be possible to get the cl.exe running:

  • What happens when you try to call “cl.exe” from the console?

  • What happens when you manually call
    nvcc -ptx inputFile.cu
    from the console?

Using MinGW might be possible, but admittedly, I have never tried it. The NVCC is … “picky” concerning the underlying compiler. It supports VS and GCC, but I’m not sure whether it can cope with the latter when trying to launch it via MinGW…