Lab04_sln Ex1 Deprecation Warning
Closed this issue · 1 comments
Robadob commented
Deprecated cudaThreadSynchronize()
is used. It's also present in the lab src, will need to check the lab sheet.
1>Compiling CUDA source file exercise01_sln.cu...
1>
1>U:\COMCUDA_labs\Lab04_Exercise01>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\x64" -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\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\vc143.pdb /FS /Zi /RTC1 /MDd " -o U:\COMCUDA_labs\Lab04_Exercise01\x64\Debug\exercise01_sln.cu.obj "U:\COMCUDA_labs\Lab04_Exercise01\exercise01_sln.cu"
1>exercise01_sln.cu
1>U:\COMCUDA_labs\Lab04_Exercise01\exercise01_sln.cu(90): warning C4996: 'cudaThreadSynchronize': was declared deprecated
1>Done building project "Lab04_Exercise01.vcxproj".
1>Lab04_Exercise01.vcxproj -> U:\COMCUDA_labs\x64\Debug\Lab04_Exercise01.exe
Robadob commented
Replaced with cudaDeviceSynchronize()