Open
Description
Description
I am compiling DEME with CUDA 12.0 and Visual Studio 2019, and I am trying to run the demo examples in debug mode. Initially, I encountered a runtime error:
The variable 'new_stream' is being used without being initialized
I uncommented the following line where the error occurred:
cudaStreamCreate(&new_stream);
When I ran the program again, I encountered another error:
Unhandled exception at 0x00007FFEF9A632CF (nvcuda64.dll) (in DEMdemo_BallDrop2D.exe): 0xC0000006: An error in the page (status code 0x0000000900960118) occurred while reading at position 0x0000000900960118.
Steps to Reproduce
- Compile DEME with CUDA 12.0 and Visual Studio 2019.
- Run the demo examples in debug mode.
- Uncomment the line
cudaStreamCreate(&new_stream);
. - Run the program again.
Expected Behavior
The demo should run without causing runtime errors or exceptions.
Actual Behavior
An unhandled exception occurs at runtime, specifically in nvcuda64.dll
.
Error Messages
- Initial error:
The variable 'new_stream' is being used without being initialized
- After uncommenting
cudaStreamCreate(&new_stream);
:Unhandled exception at 0x00007FFEF9A632CF (nvcuda64.dll) (in DEMdemo_BallDrop2D.exe): 0xC0000006: An error in the page (status code 0x0000000900960118) occurred while reading at position 0x0000000900960118.
Environment
- CUDA Version: 12.0
- Visual Studio Version: 2019
- Operating System: [Windows]
- GPU: [GTX 1650 Ti]
Additional Information
I am unsure if this error is due to incorrect code or insufficient device computing power.
Metadata
Metadata
Assignees
Labels
No labels