pytorch 1.7是否正式启用cuda 10.0?

Is pytorch 1.7 officially enabled for cuda 10.0?

我不得不继续使用 CUDA 10.0 进行个人项目。

我没有安装适用于 CUDA 10.0 的 Pytorch 版本,而是不小心安装了 CUDA 10.1 支持的 Pytorch 1.7。特别是,我安装了

pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

令人惊讶的是,尽管 CUDA 版本不匹配,但到目前为止一切正常。

为了验证我的安装,我运行 collect_env.py 中给出的代码没有问题。

我只是想知道一些事情。

  1. Pytorch 团队是否正式评论 Pytorch 1.7 与 CUDA 10.0 兼容?
  2. 是否有更严格的方法来验证我的 Pytorch 安装?

Pytorch Previous Version Log 提供 CUDA 版本 9.2、10.1、10.2 和 11 的安装。因此,CUDA 10 可能不受官方支持。

Surprisingly, everything works fine so far although the CUDA versions do not match.

次要版本之间的更改应该有效(像这样的不匹配在我的情况下有效),尽管在 10.x 版本中没有兼容性承诺(source), only since 11.x there will be binary compatibility.

Did Pytorch team officially commented Pytorch 1.7 is compatible with CUDA 10.0?

据我所知,但listed wheels 不包括 10.0 CUDA 和 PyTorch 1.7.0(最新 10.0支持好像是1.4.0).

Would there be more rigorous way to verify my Pytorch installation?

如上所述,可能克隆 PyTorch 的 github 存储库,恢复到标记发布和 运行 测试(文件夹 here, one of cuda test files here),但对于个人项目来说可能过多。