Not strictly related to CL the OS, but more of a question of building a package on CL.
I understand there is a pytorch bundle, but AFAIK there is no CUDA support and it is not packaged standalone, and not along side anaconda.
I have tried building Pytorch from source, backed with Anaconda.
The specific steps I followed:
- Installed the Nvidia drivers using the provided guide, I added
~/.profile, and also verified that
- Installed the
c-extras-gcc8bundle, and modified my anaconda activate.d and deactivate.d, such that the appropriate gcc/g++ would be used, following the CUDA guide from clear linux
- Installed CUDA from the nvidia website, after which I added
~/.profile, and added
conda install -c pytorch magma-cuda102to enable linalg support on the GPU
- Successfully built pytorch from tag
v1.4.0after applying patch https://bugs.archlinux.org/task/65202
- Fails at GPU tensor with
THCudaCheck FAIL file=../aten/src/THC/THCGeneral.cpp line=50 error=999 : unknown error
This was puzzling, as I had managed to build and import Pytorch v1.4.0 on CentOS 7 just the past week. So my guess is that something in clear linux is causing this breakage.
Full details that I filed in the pytorch forums: https://github.com/pytorch/pytorch/issues/34431