ESA-PhiLab / PyRawS

Python for Raw Sentinel-2 data (PyRawS) is an open-source software providing utilities to open and process Sentinel 2 RAW data, which corresponds to a decompressed version of Level-0 data with additional metadata. The software is demonstrated on the first Sentinel-2 dataset containing raw data for warm temperature hotspots detection/classification.
https://esa-philab.github.io/PyRawS/
Apache License 2.0
70 stars 7 forks source link

Cuda not available after isntalling the environment #28

Closed CristopherUbotica closed 5 months ago

CristopherUbotica commented 8 months ago

Hello,

I installed the environment from the .yaml file following the procedure described in the readme, and in my case cuda was not available. Is it problem of the environment? Or am I missing something?

Thank you in advance for your time and consideration.

Kind regards,

Cristopher

sirbastiano commented 8 months ago

Hi Cris, could you detail the OS, and the steps you have done so we can replicate your bug?

CristopherUbotica commented 8 months ago

Hi Roberto,

I am using Ubuntu 22.04. I run the the 'pyraws_install.sh' shell script to set up the environment. After that, I activated the environment and tried torch.cuda.is_available() on Python.

Can the problem be that the cuda version that I have installed in my OS is not compatible with the environment version? Or should the environment be enough to run cuda in pytorch? In that case, the problem wouldn't be part of the repo.

Thank you in advance!

sirbastiano commented 8 months ago

Seems to me an error related to your cuda version. Can you try to install NVIDIA drivers compatible with CUDA 10.2 or 11.3. Another easy solution is use the dockerized application.

sirbastiano commented 8 months ago

@CristopherUbotica, I uploaded a docker-compose, a devcontainer.json, and updated the installation routines. The project has been tested up to cudatoolkit 11.3 and pytorch 1.12.0.

Let me know if that was useful.