can't run the demo examples
Opened this issue · 1 comments
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.
Jing-Lee-tj,
Thank you for the detailed message. Currently on Windows, DEME has an unresolved segfault and as indicated in the README document, DEME runs on Linux machine only. I tried and I cannot reproduce the problem on Linux (DEBUG mode). Please consider using DEME on Linux for now.
However, I suspect what you found is related to the Windows problem I mentioned, albeit not exactly the same. I'll keep this post open and try looking into it, to see if it helps in resolving the Windows issues all together. Thanks again.
Ruochun