I’ve been using IDE running CUDA samples and modifying them, thus I have no idea what it is like using nvcc. Is it all through command line, requiring makefile?
If I need to specify some nvcc custom build parameter for compiling (like -arch sm_11), can I set it somewhere in Visual Studio?
I’m asking these originally because I can’t use atomic functions. Even though I included <sm_11_atomic_functions.h> which defines all the atomic functions, the compiler of VS still reports “identifier ‘atomicAdd’ is undefined”. What should I do?
If you’re using VS IDE and you right-click on your .cu file in your project and choose Properties you’ll be able to look at the custom build command, command line (if one exists already, otherwise you’ll need to add one) For example: