Visual Studio 2017 'no instance of overloaded function "atomicAdd" matches the argument list' (for doubles)

As you may know , this is a recurring problem with VS versions throughout the years.
Before opening this topic I did some research and followed the instructions of this

but unfortunately neither of those solutions worked for me.

My system specs : GTX 1060 6GB so ensured compute capability 6.1
VS Enterprise 2017 15.9.5 , with CUDA 10.0

Finally the compilation command and error output :

C:\Users\Tyr\source\repos\Test2\Test2>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -gencode=arch=compute_61,code=“sm_61,compute_61” --use-local-env -ccbin
“C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\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 -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Fdx64\Debug\vc141.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\ “C:\Users\Tyr\source\repos\Test2\Test2\”

1>C:/Users/Tyr/source/repos/Test2/Test2/ error : no instance of overloaded function “atomicAdd” matches the argument list

Have you read answer #6 by Robert Crovella? I’ve tried it before and it worked fine and I had the same setup as you except my cuda is 9.1.

I did try them both , edited the mex files from the corresponding matlab 2018a files , plus the other method which gives me an “already declared function” error.

I wouldn’t say that this has been a recurring problem with VS through the years but not going to argue that.

If you want help, I suggest showing your code.

If you get types wrong, you can get this error.

I made that comment in light of other posts with the same problem. Anyway same code the next morning after maybe the restart process? was ok. No longer seeing this error.