Atomic Functions

Hi. Why I cannot use atomic functions

Impossible to say. Wild guess: Maybe you are not compiling for the correct GPU architecture (see -arch flag of nvcc), or maybe you are trying to compile CUDA code with a C or C++ compiler. Now might be a good time to familiarize yourself with the concept of an MCVE. See, for example: [url]http://stackoverflow.com/help/mcve[/url]

Yes, I use C++. Better compile my program in cmd?

I think what njuffa meant was, can you please post some source code showing what you’re trying to do? Can you show us how you’re trying to compile your code?

You can not compile your CUDA code using C++ compiler. Instead, use NVCC (NVIDIA’s CUDA Compiler).