I am using Anaconda and want to use CUDA to accelerate the computation.
system information:
3.6.2 |Anaconda custom (64-bit)| (default, Aug 15 2017, 11:34:02) [MSC v.1900 64 bit (AMD64)]
cuda 8.0.61
visual studio 2015
pycuda-2017.1.1+cuda8061-cp36-cp36m-win_amd64.whl
After I installed everything and finish modify some files mentioned on the instruction online.
I can import pycuda in conda spyder, but I cannot make it work.
import pycuda.autoinit
import pycuda.driver as drv
from pycuda.compiler import SourceModule
mod = SourceModule("""
__global__ void multiply_them(float *dest, float *a, float *b)
{
const int i = threadIdx.x;
dest[i] = a[i] * b[i];
}
""")
I run this demo code and always get error.
CompileError: nvcc compilation of C:\Users\billi\AppData\Local\Temp\tmpn5pzk97h\kernel.cu failed