projectchrono / DEM-Engine

A dual-GPU DEM solver with complex grain geometry support
Other
67 stars 14 forks source link

can't run the demo examples #8

Open Jing-Lee-tj opened 3 months ago

Jing-Lee-tj commented 3 months ago

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

  1. Compile DEME with CUDA 12.0 and Visual Studio 2019.
  2. Run the demo examples in debug mode.
  3. Uncomment the line cudaStreamCreate(&new_stream);.
  4. 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

Environment

Additional Information

I am unsure if this error is due to incorrect code or insufficient device computing power.

Ruochun commented 3 months ago

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