kliment-olechnovic/ftdmp

CUDA compatibility

Closed this issue · 2 comments

merkys commented

I am trying to run ftdmp-qa-all on CUDA 12.2 on a conda environment as described in README.md, but it fails with the following:

Traceback (most recent call last):
  File "<stdin>", line 20, in <module>
  File "/home/andrius/miniconda3/envs/ftdmp/lib/python3.9/site-packages/torch/jit/_serialization.py", line 162, in load
    cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files, _restore_shapes)  # type: ignore[call-arg]
RuntimeError: 
Unknown builtin op: torch_sparse::ptr2ind.
Could not find any similar ops to torch_sparse::ptr2ind. This op may not exist or may not be currently supported in TorchScript.

I suppose this might be due to some CUDA incompatibility. Is there a way to work around it? It might be that PyTorch is not yet updated to use CUDA 12.

Hi,

According to the current PyTorch installation guide (https://pytorch.org/get-started/locally/), the stable PyTorch version does not support CUDA 12 yet. You can try PyTorch Nightly, which supports CUDA 12.1, but then I am not sure that PyTorch Geometric will work.

merkys commented

Thanks for the suggestion, I will try it out.