I got the FastAI example from the readme running on cpu, so now tried to move to gpu after installing ROCm 5.7.1. It still reverted to CPU:
fitonecycle!(learner, 1)
┌ Info: The GPU function is being called but the GPU is not accessible.
└ Defaulting back to the CPU. (No action is required if you want to run on the CPU).
It appears to be recognized but fails the MIOpen test:
julia> using AMDGPU
julia> AMDGPU.device()
GPU-048e90c172fc1a8a [AMD Radeon VII (gfx906)]
julia> AMDGPU.functional()
true
julia> AMDGPU.functional(:MIOpen)
false
https://fluxml.ai/Flux.jl/stable/gpu/
The hip backend is installed according to apt:
miopen-hip-dev/jammy,now 2.20.0.50701-98~22.04 amd64 [installed,automatic]
miopen-hip/jammy,now 2.20.0.50701-98~22.04 amd64 [installed]
From here I see there is also an OpenCL version:
MIOpen can be installed on Ubuntu using
apt-get
.For OpenCL backend:
apt-get install miopen-opencl
For HIP backend:
apt-get install miopen-hip
Currently both the backends cannot be installed on the same system simultaneously. If a different backend other than what currently exists on the system is desired, please uninstall the existing backend completely and then install the new backend.
Build and Install Instructions — MIOpen: AMD's deep learning library
But (after uninstalling miopen-hip) that version is not found:
sudo apt-get install miopen-opencl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package miopen-opencl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'miopen-opencl' has no installation candidate
Do I need to install miopen-opencl from somewhere else? How could I figure out why I am getting this error?