2
Vote

Trouble running with VS2015 and cuda 8.0

description

My path is correct and the project builds without errors but when I run and hit simple_kernel I hit these errors
In the code the warning is treated as a fatal error and the nvcc fatal error is confusing since the env vars are correct

Running examples using GeForce GTX 660M

Chapter 3

hello_world
Hello, World!

simple_kernel
Cudafy.CudafyCompileException: Compilation error:
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecat
ed, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to s
uppress warning).
nvcc fatal : Cannot find compiler 'cl.exe' in PATH


Please add the Visual Studio VC bin directory to PATH in Environment Variables..

at Cudafy.CudafyModule.Compile(CompileProperties[] props)
at Cudafy.Translator.CudafyTranslator.Cudafy(IEnumerable`1 props, Type[] type
s)
at Cudafy.Translator.CudafyTranslator.Cudafy(CompileProperties prop, Type[] t
ypes)
at Cudafy.Translator.CudafyTranslator.Cudafy()
at CudafyByExample.simple_kernel.Execute() in E:\experimental\CudafyV1.29\Cud
afyByExample\chapter03\simple_kernel.cs:line 20
at CudafyByExample.Program.Main(String[] args) in E:\experimental\CudafyV1.29
\CudafyByExample\Program.cs:line 42

comments

ABSULT wrote Jan 2 at 9:14 PM

CUDAfy V1.29 only supports CUDA 7!

VS 2015 shouldn't be a problem - have it running on Win 10 with VS 2015 and Cuda 7.

If there is a cudafy Version for Cuda 8 I would be happy to get a hand on it.

ABSULT

wrote Jan 3 at 4:27 PM

jepperask wrote Mar 1 at 9:12 PM

I get this error as well, regardless of which 'cl.exe' i reference (VC\bin, amd64, amd64_arm, amd64_x86, ...), running CUDA 7.0.