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

99封情书 提交于 2020-01-04 02:54:28

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/17199011/cudafymodule-km-cudafytranslator-cudafy-causing-an-error-cant-find-compil

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!