ok, I now try all of the recommendations from many different sites and this does not really work.
I now made a very simple stand alone cmake scrip that generate a DLL
2>cuSortBodyAabbCells.obj
2>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 11.7.targets(879,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe" -dlink -o ndSolverCuda_1.dir\Debug\ndSolverCuda_1.device-link.obj -Xcompiler "/EHsc /W4 /nologo /Od /FdndSolverCuda_1.dir\Debug\vc143.pdb /Zi /RTC1 /MDd /GR" -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin/crt" -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\lib\x64" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\lib\Win32\cudadevrt.lib" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\lib\Win32\cudart_static.lib" cudadevrt.lib cudart_static.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib -forward-unknown-to-host-compiler -Wno-deprecated-gpu-targets -gencode=arch=compute_52,code=sm_52 -G --machine 64 ndSolverCuda_1.dir\Debug\cuSortBodyAabbCells.obj" exited with code 1.
2>Done building project "ndSolverCuda_1.vcxproj" -- FAILED.
3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
3>Building Custom Rule C:/tmp/dCudaTest/CMakeLists.txt
4>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------
4>Project not selected to build for this solution configuration
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
now it does call the nvidia linker, but that's just to go to a new set of new problems.
and this time the error do not even say what failed.
I read over the NVidia site and there are ton of people with the same problem and so far I see no one has gotten a solution to the problems.
I put the archive in a google share drive, but I do not know how to make public,
or of anyone know a public file share system so that I can put it there and maybe someone can tell me what do to make that with. that will be great.
if I cannot get pass this point, this seem again a death blow to this project. just like is was 12 yeat agon where nvidia refuse to put atomics.
I am not spending more time on this, because it just seem an accumulation of error over error, and spending time on work around more that making actual progress.