openforis / sepal

Geographical Data Processing in the Cloud
https://sepal.io/
MIT License
205 stars 46 forks source link

LD_LIBRARY_PATH env variable is missing #177

Closed 12rambau closed 2 years ago

12rambau commented 2 years ago

description

in the test env, the LD_LIBRARY_PATH env variable is missing. It seems to be a standard env variable for CUDA based libs.

simply open a g4 and start a cupy python import and you'll get the folowing error:

import cupy
================================================================
Failed to import CuPy.

If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.

On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
On Windows, try setting CUDA_PATH environment variable.

Check the Installation Guide for details:
  https://docs.cupy.dev/en/latest/install.html

Original error:
  ImportError: /home/prambaud/.local/lib/python3.8/site-packages/cupy_backends/cuda/api/runtime.cpython-38-x86_64-linux-gnu.so: undefined symbol: cudaDeviceSetMemPool, version libcudart.so.11.0
================================================================
cdanielw commented 2 years ago

We don't want to export LD_LIBRARY_PATH globally. I did manage to sort this out without though.

12rambau commented 2 years ago

Awesome! I was afraid it could become an issue for CUDA based workflows