Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
5

CUDA Plugin crashes in release mode on cuMemcpyDtoDAsync

New Here ,
Jun 18, 2023 Jun 18, 2023

Hi everyone, I have been working on a CUDA plugin for a while now and I have to make a release build to send it to my employer for testing, in the beggining I couldn't get it to even compile but it does compile now thankfully. The issue is now I am getting CUDA errors relating mostly to memory on release, I'm not sure why, the project is based off of SDK_Invert_Procamp from the 2022 SDK so the compile flags for the kernel are mostly identical with that except the MSVC version of course for cl.exe. I am getting issues even with things like cuMemcpyDtoDAsync and cuMemFreeHost with path emission.

 

 

2023-06-18_14-11.png

 

When I am testing other parts of the plugin, I again get an Illegal Memory Address 700 error after running the update kernel.

Said28412521dqh2_3-1687112621999.png

 

Or here, where I call cudaMemset on the screen tiles:

 

Said28412521dqh2_4-1687112659663.png

 


Should I move all the CUDA specific code to the .cu file? That might be the solution after all but I would rather not do that. The code works perfectly with no crashes in debug mode. just to be clear.

TOPICS
Crash , Error or problem , Freeze or hang , SDK
180
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 18, 2023 Jun 18, 2023
LATEST

I would like to add that the particles buffer is allocated using virtual memory with the low level CUDA allocation API.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines