CudafyModule km = CudafyTranslator.Cudafy(); causing an error, can't find compiler

StackOverflow https://stackoverflow.com/questions/17199011

  •  01-06-2022
  •  | 
  •  

Question

I'm trying to run my 1st cudafy project but I'm getting the following error on the following line:

CudafyModule km = CudafyTranslator.Cudafy();

Below is a screenshot of the exact error message I'm getting.

I've run the example projects which come with Cudafy and they run fine so I don't understand why its saying it can't find the compiler. I've added the Cudafy.net to the references, see screenshot below, and all the info is exactly the same as the example projects, on the right hand side of the image, and that works.

Anyone have any ideas??

EDIT

It appears a similar issue has been answered on SO already but I don't understand where the path environment variable is that he is referring to.

Similar SO question

EDIT 2

Below are the following cl.exe I found. I'm not sure which one to use though. I'm running an Intel processor so I'm leaning towards the bottom one but that's just a guess.

Was it helpful?

Solution

Glad to hear it worked out for you. Here's the comments in answer form... The linked SO answer is referring to the system PATH. In Windows 7 you can set it through:

  1. Right-click on the My Computer icon
  2. Choose Properties from the context menu
  3. Click the Advanced tab
  4. Click the Environment Variables button
  5. Click on the variable called 'Path' and then click on Edit and enter the path for cl.exe

As for choosing the correct cl.exe, if you're on a non-itanium intel processor (i.e. x86) you'll want x86_amd64

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top