Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run the demo examples #8

Open
Jing-Lee-tj opened this issue Jun 14, 2024 · 1 comment
Open

can't run the demo examples #8

Jing-Lee-tj opened this issue Jun 14, 2024 · 1 comment

Comments

@Jing-Lee-tj
Copy link

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

  • 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.

@Ruochun
Copy link
Collaborator

Ruochun commented Jun 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants