I installed the latest version of physx (3.3.2) on Linux, and I would like to enable the GPU, but the program crash when calling the function “mCudaContextManager-> getGpuDispatcher ()”, because PxCudaContextManager not created.
Are there any examples or guidelines on how to enable physx GPU on linux?
The documentation refers to an “application GUID”, how can I get it?
Did you create an instance of the CUDA context manager? Object creation does not differ between the different versions of PhysX afaik, so I don’t see how the CUDA context manager creation would be different on Linux than say on Windows.
I have followed the user guide and I think I created the CUDA context manager but when I run “mCudaContextManager->getGpuDispatcher();” the program crash.
I tried to remove the CPUDispatcher and put it back but it does not change anything.
From first glance everything with the CUDA context manager seems ok. I would suggest putting a breakpoint in your code and checking to see if its actually created. Also what HW are you running on.
CUDA is Nvidia proprietary so if you are not using a Nvidia GPU, it will not work. Also what version of the drivera are you using?
Searching the net I read that GPU Physx 3.3.2 only works with gpu Fermi and higher …
Damn, my gpu is a Nvidia GTS250 and I think that is not supported (it’s a bit old) …
Yes, I think you will have to use a more recent card. However the function calls should be returning an error code that will indicate that the driver or GPU is not up to spec.