You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to figure out if mitsuba2 builds on WSL2 with CUDA11 support. Compilation stops with this error: [ 35%] Linking CXX shared library libmitsuba-core.so /usr/bin/ld: cannot find -lcuda collect2: error: ld returned 1 exit status
I am not 100% sure what the issue is, but it might be because libcuda is in /usr/lib/wsl/lib in WSL. I tried adding that path to $LD_LIBRARY_FLAGS without success.
I supplied nvcc path via CMAKE flag or CUDACXX env variable.
Steps to reproduce
On WSL2, CUDA-11.4, do mkdir build && cd build cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc .. cmake --build .
The text was updated successfully, but these errors were encountered:
Hi, getting it to compile is possible if you link the CUDA libs correctly but you won't be able to use the GPU variants anyway, since the NVIDIA driver that enables CUDA applications to run in WSL2 is lacking OptiX support as of now. Cheers.
Summary
Compilation stops on WSL2 with
/usr/bin/ld: cannot find -lcuda
System configuration
scalar_rgb
Description
I am trying to figure out if mitsuba2 builds on WSL2 with CUDA11 support. Compilation stops with this error:
[ 35%] Linking CXX shared library libmitsuba-core.so /usr/bin/ld: cannot find -lcuda collect2: error: ld returned 1 exit status
I am not 100% sure what the issue is, but it might be because
libcuda
is in/usr/lib/wsl/lib
in WSL. I tried adding that path to $LD_LIBRARY_FLAGS without success.I supplied nvcc path via CMAKE flag or
CUDACXX
env variable.Steps to reproduce
On WSL2, CUDA-11.4, do
mkdir build && cd build
cmake -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc ..
cmake --build .
The text was updated successfully, but these errors were encountered: