NVIDIAGameWorks / FleX

Other
650 stars 100 forks source link

FleX build on Fedora 28 #54

Closed gaborpapp closed 5 years ago

gaborpapp commented 5 years ago

FleX compiles fine but I receive the following error while trying to run /bin/linux64/NvFlexDemoDebugCUDA_x64

Reshaping
Flex: Could not open CUDA driver, ensure you have the latest driver (nvcuda.dll) installed and an NVIDIA GPU present on the system - ./../../../src/cuda/util.cpp:145
Flex: Could not initialize CUDA driver - ../../../src/cuda/flex.cu:4624
Could not initialize Flex, exiting.

src/cuda/util.cpp does not exist, so I'm not sure how to find the issue. Any help would be appreciated.

Fedora 28, NVIDIA driver 396.54

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148

$ cuda-g++ --version
cuda-g++ (GCC) 7.3.0

$ ls /usr/lib64/libcuda.*
lrwxrwxrwx. 1 root root       17 Aug 28 17:18 /usr/lib64/libcuda.so -> libcuda.so.396.54
lrwxrwxrwx. 1 root root       17 Aug 28 17:18 /usr/lib64/libcuda.so.1 -> libcuda.so.396.54
-rwxr-xr-x. 1 root root 14074232 Aug 15 08:17 /usr/lib64/libcuda.so.396.54
gaborpapp commented 5 years ago

My bad, I tried to run it from a remote terminal with an exported display, but it runs fine from the desktop.