Pytorch
Facebook open-source and free framework based on the Torch library. - Home
see also
- PyTorch 2.0 - Get Started
Install
with ROCm as prerequesite.
Docker images
Verify installation
Using python repl: run python3
, and copy past code below.
=> should output a tensor
Additionally, to check if your GPU driver and CUDA/ROCm is enabled and accessible by PyTorch, run the following commands to return whether or not the GPU driver is enabled (the ROCm build of PyTorch uses the same semantics at the python API level)
=> should be True / 1 / 0 / ‘AMD Radeon RX 580 Series’
If crashing with “hipErrorNoBinaryForGpu: Unable to find code object for all current devices!” then export HSA_OVERRIDE_GFX_VERSION=10.3.0
Benchmarking
Monitoring on one console with watch -n 1 rocm-smi
and htop
in an other
Written on January 29, 2023, Last update on February 16, 2024
NN
amd