rusty1s / pytorch_scatter

PyTorch Extension Library of Optimized Scatter Operations
https://pytorch-scatter.readthedocs.io
MIT License
1.54k stars 179 forks source link

Support for pytorch 2.4 #453

Open vaibhavnayel opened 1 month ago

vaibhavnayel commented 1 month ago

Hello

Are there plans to release binaries for pytorch 2.4?

Here is my pytorch + cuda version

$ python -c "import torch; print(torch.__version__)"
2.4.0+cu121

On conda install, I get the following error

$ conda install pytorch-scatter -c pyg
Retrieving notices: ...working... done
Channels:
 - pyg
 - defaults
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: - warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides cpuonly needed by pytorch-scatter-2.0.8-py36_torch_1.8.0_cpu

Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│  └─ python 3.11.* , which can be installed;
└─ pytorch-scatter is not installable because there are no viable options
   ├─ pytorch-scatter [2.0.8|2.0.9|2.1.0|2.1.1|2.1.2] would require
   │  └─ cpuonly, which does not exist (perhaps a missing channel);
   ├─ pytorch-scatter [2.0.8|2.0.9] would require
   │  └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   ├─ pytorch-scatter [2.0.8|2.0.9|2.1.0] would require
   │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ pytorch-scatter [2.0.8|2.0.9|2.1.0] would require
   │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
   ├─ pytorch-scatter [2.0.8|2.0.9|2.1.0] would require
   │  └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
   ├─ pytorch-scatter [2.0.9|2.1.0] would require
   │  └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
   ├─ pytorch-scatter [2.0.9|2.1.0] would require
   │  └─ pytorch-cuda 11.6.* , which does not exist (perhaps a missing channel);
   ├─ pytorch-scatter [2.0.9|2.1.0|2.1.1|2.1.2] would require
   │  └─ pytorch-cuda 11.7.* , which does not exist (perhaps a missing channel);
   ├─ pytorch-scatter [2.1.1|2.1.2] would require
   │  └─ pytorch-cuda 11.8.* , which does not exist (perhaps a missing channel);
   └─ pytorch-scatter 2.1.2 would require
      └─ pytorch-cuda 12.1.* , which does not exist (perhaps a missing channel).
rusty1s commented 1 month ago

Yes, will land (hopefully) early next week.

zzevol commented 1 month ago

looking forward to support for torch2.4

martinnormark commented 1 month ago

fwiw, adding -f in the requirements.txt seems to work:

torch==2.4.0
torch_geometric==2.5.3
torch_scatter==2.1.2
-f https://data.pyg.org/whl/torch-2.4.0+cpu.html