Replies: 1 comment
-
Setting the correct environment variable PHYSX_GPU_DEVICE in wsl2 system env. fixed my issue. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a fresh installed Physx 5.4.1 on a Win11/WSL2, Cuda 16.2, and RTX4060 Laptop. All snippets requiring GPU calls failed with the following message, eg:
SnippetDirectGPUAPIArticulation_64
/builds/omniverse/physics/physx/source/cudamanager/src/CudaContextManager.cpp (597) : warning : cuDeviceGet failed
Failed to initialize cuda context.
The direct GPU API feature is only supported on the GPU.
Note, other snippets such as HellowWorld runs OK. Docker run with Nvidia container and benchmark also runs OK, meaning GPU driver and cuda toolkit are probably working, eg:
sudo docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
Can someone please give some hint on the fix?
Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions