pytorch_sparse icon indicating copy to clipboard operation
pytorch_sparse copied to clipboard

problem loading the *_cpu.so file

Open Mollyx06 opened this issue 9 months ago • 0 comments

Hello, thanks for sharing your detailed tutorial, I don't have a GPU environment configured on my computer, so I'm trying to install the CPU version of torch and related dependency packages as follows /opt/software/python/bin/python3.8 -m pip install --upgrade pip pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-2.0.1+cpu.html pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-2.0.1+cpu.html pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-2.0.1+cpu.html pip install torch-geometric==2.0

But when importing they OSError: /opt/software/python/lib/python3.8/site-packages/torch_sparse/_sample_cpu.so: undefined symbol: _ZN2at4_ops11randint_low4callEllN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE

my pip version torch 2.3.0+cpu torch-cluster 1.6.3+pt20cpu torch_geometric 2.0.0 torch-scatter 2.1.2+pt20cpu torch-sparse 0.6.18+pt20cpu torchaudio 2.3.0+cpu torchvision 0.18.0+cpu

I'm wondering if there are any conflicts between these versions and how I can get it to recognise this cpu library?

Mollyx06 avatar May 11 '24 07:05 Mollyx06