I’m using Visual Studio 2019 and cuda programming to compile and build my my app. in my code, I need to read from memory in a misaligned and uncoalesced way (so, there is not specific pattern). To improve the performance, i need to disable L1 cache. I know that in nvcc compiler, it can be done with "Xptxas -dlcm=cg ". However, i want to do it in visual stduio (i have many linked .cu files and visual studio compile them easier compared to using the command prompt). I have already put this command in the “properties”>“linker”> “command line”, but i get the following error:
if i put it on “properties”>“CUDA linker”> “command line”, nothing changes when I nvprof the app. So, please let me know how can i disable L1 cache.