Hello I face some issues when loading torch-sparse:
I run with sbatch the following
#!/bin/bash
#SBATCH --job-name=ad_svm_QCD_WPRIME
#SBATCH --ntasks=10
#SBATCH --cpus-per-task=1
#SBATCH --time=0-00:01:00
#SBATCH --mail-user=dimitrios.proios@unige.ch
#SBATCH --mail-type=FAIL
#SBATCH --partition=private-teodoro-gpu
#SBATCH --output=end_to_end_%j.out
# # SBATCH --workdir="/Users/dproios/work/create_EHR_gra"
#SBATCH --mem=20000
module load CUDA/11.3.1
module load GCC/7.3.0-2.30 OpenMPI/3.1.1
module load PyTables/3.3.0-Python-2.7.11
module load CUDA/11.3.1
module load GCC/10.3.0
module load OpenMPI/4.1.1
module load PyTorch/1.11.0-CUDA-11.3.1
module load scikit-image/0.18.1-Python-3.9.5
pip install torch -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
pip install torch_geometric
pip install pyg-lib torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
python -c "import torch_sparse"
python -c "import torch_geometric"
#!/bin/bash
#SBATCH --job-name=ad_svm_QCD_WPRIME
#SBATCH --ntasks=10
#SBATCH --cpus-per-task=1
#SBATCH --time=0-00:01:00
#SBATCH --mail-user=dimitrios.proios@unige.ch
#SBATCH --mail-type=FAIL
#SBATCH --partition=private-teodoro-gpu
#SBATCH --output=end_to_end_%j.out
# # SBATCH --workdir="/Users/dproios/work/create_EHR_gra"
#SBATCH --mem=20000
module load CUDA/11.3.1
module load GCC/7.3.0-2.30 OpenMPI/3.1.1
module load PyTables/3.3.0-Python-2.7.11
module load CUDA/11.3.1
module load GCC/10.3.0
module load OpenMPI/4.1.1
module load PyTorch/1.11.0-CUDA-11.3.1
module load scikit-image/0.18.1-Python-3.9.5
pip install torch -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
pip install torch_geometric
pip install pyg-lib torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
python -c "import torch_sparse"
python -c "import torch_geometric"
And I get this error in the returned result
File "/opt/ebsofts/PyTorch/1.11.0-foss-2021a-CUDA-11.3.1/lib/python3.9/site-packages/torch/_ops.py", line 220, in load_library
ctypes.CDLL(path)
File "/opt/ebsofts/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /home/users/p/proios/.local/lib/python3.9/site-packages/torch_sparse/_version_cuda.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs