I need some help regarding this
If you have any information on how to integrate C# and CUDA, please share with me.
In my first step I tried to write a CPP function which calculates Euclidean Distance
__shared__ float sum = 0;
__global__ void EuclideanDistance(float *a,int *b,int *c)
{
int i = threadIdx.x;
//c[i] = a[i] + b[i];
sum = sum + *(a + i);
}
This shows me error message as
Severity Code Description Project File Line Suppression State
Error MSB3721 The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -gencode=arch=compute_35,code="sm_35,compute_35" --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -DCODE_ANALYSIS -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Fdx64\Debug\vc141.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\pc\source\repos\firstexp\firstexp\kernel.cu”” exited with code 1. firstexp C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets 712
Please share your thoughts on this.
Also if you have any resources for this please share with me.
My current setup is
Windows 10 64 bit
Visual Studio community edition 2017
Nsight 6.0