ProjectPhysX / FluidX3D

The fastest and most memory efficient lattice Boltzmann CFD software, running on all GPUs via OpenCL. Free for non-commercial use.
https://youtube.com/@ProjectPhysX
Other
3.77k stars 300 forks source link

Graphics card not recognized or other error #105

Closed umbertones closed 1 year ago

umbertones commented 1 year ago

Hello,

I have a Dell business box with an i5-8xxx with 40 GB RAM running Kubuntu 22.04 and a Nvidia RTX2000 6GB graphics card.

nvidia-smi detects the card correctly. dave@HAL9000:/opt/FluidX3D/FluidX3D$ nvidia-smi Fri Aug 25 21:39:02 2023
+---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.104.05 Driver Version: 535.104.05 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+======================+======================| | 0 NVIDIA RTX A2000 Off | 00000000:01:00.0 Off | Off | | 30% 28C P8 5W / 70W | 2957MiB / 6138MiB | 0% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+

When I start the make.sh the first time after a reboot it threw a compile error -44. Google search did not turn up with a helpfuls answer

I can run the compile-command from make.sh interactively and it compiles with no error, but the FluidX3D binary says that.... | Error: There are no OpenCL devices available. Make sure that the OpenCL 1.2 | | Runtime for your device is installed. For GPUs it comes by default | | with the graphics driver, for CPUs it has to be installed | | separately.

I tried make.sh 0, no change.

Is this an incompatibility with the driver or am I missing something? Any hint is greatly appreciated. I'll try to provide further infos upon request.

Thanks and Regards

umbertones commented 1 year ago

Nevermind. After another reboot I first compiled the opencl-wrapper (had the same error there before) and then FluidX3D with success.