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

SofaCUDA can't call nvidia rtx 4060! #4423

Open
q1221sr opened this issue Jan 10, 2024 · 2 comments
Open

SofaCUDA can't call nvidia rtx 4060! #4423

q1221sr opened this issue Jan 10, 2024 · 2 comments
Labels
issue: bug (minor) Bug affecting only some users or with no major impact on the framework

Comments

@q1221sr
Copy link

q1221sr commented Jan 10, 2024

i use sofa 22.12 by vs2022
cmake 3.27.2
Selecting Windows SDK version 10.0.20348.0 to target Windows 10.0.19045.
just use option SOFACUDA_THRUST in plugin_sofacuda
and
i use rtx 4060, nvidia driver 546.12, cuda 11.8, cudnn 8.9.6

I successfully compiled plugin_sofacuda, ran liver-CUDA.scn using runsofa, and I noticed that only the GPU0(Intel(R) UHD Graphics) were used in the performance probe instead of the GPU1(GeForce RTX 4060 Laptop GPU) (just 0%!)

how to use 4060 to Accelerating my sofa simulation?

@q1221sr q1221sr added the issue: bug (minor) Bug affecting only some users or with no major impact on the framework label Jan 10, 2024
@alxbilger
Copy link
Contributor

Hi, I just discovered that you can select the device using the CUDA_DEVICE environment variable. I've never tried it though.

Normally, you should have a console print looking like CUDA: Using device DEVICE_ID : DEVICE_NAME at the initialization of the CUDA module.

@alxbilger
Copy link
Contributor

Thinking about it again, Intel(R) UHD Graphics is not a cuda capable device, so it will not be used for computation (rendering maybe?).

What's the content of DEVICE_ID and DEVICE_NAME in the log message CUDA: Using device DEVICE_ID : DEVICE_NAME?
What do you use to measure the performances?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug (minor) Bug affecting only some users or with no major impact on the framework
Projects
None yet
Development

No branches or pull requests

2 participants