This is the contents of CudaSample.cu, which was heavily borrowed from Ingemar Ragnemalm. That’s it! Not too bad, really, it would just be nice if all of that had been written down in one place before I started. > Remove extra backslash ( \ ) from ‘Path’ variable I had to delete the extra backslash to fix a run-time problem. When it updated this for me, it put an extra backslash (‘\’) in one of the Cuda paths (something like ‘\\bin’. As part of the Cuda toolkit installation, it updates your Windows ‘Path’ variable. This is a step I needed to take that may not be necessary for you if the Cuda toolkit installation is fixed. > Add ‘cudart.lib’ to ‘Additional Dependencies’ > Add ‘$(CUDA_LIB_PATH)’ to ‘Additional Library Directories’ Right click the project under ‘Solution Explorer’
0 Comments
Leave a Reply. |