I just tried again. I also reinstalled CUDA because I couldn’t find its samples directory earlier. I am now on CUDA 11. Compiling and running the CUDA sample “BlackScholes” did work, it did recognize my GPU (showed “GPU Device 0: “Pascal” with compute ability 6.1”).
Now to OptiX: I tried the OptiX 7 SDK and after changing “sm_30” in the CMakeLists.txt file to “sm_35” it did compile (Probably because of CUDA 11?). But running “./optixHello” gave me
Caught exception: OPTIX_ERROR_LIBRARY_NOT_FOUND: Optix call 'optixInit()' failed: /opt/optix7/NVIDIA-OptiX-SDK-7.0.0-linux64/SDK/optixHello/optixHello.cpp:125)
But I have not configured my system for X11 forwarding to Windows so maybe it just couldn’t display the window? Although the above was the only error message and it seems to be an OptiX problem.
Anyways, thanks for the quick reply!
./optixHello -f test gave me the same error message. So probably not a “opening a window” problem…
Edit2: Retried OptiX SDK optixHello with CUDA 10.2, still the same error.