diff --git a/Dockerfile b/Dockerfile index 1e06d90..d97bd98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -94,6 +94,15 @@ RUN apt-get -y install \ x264 \ x265 +# ROCm (AMD Radeon OpenCL) +# The gdb packages is necessary for opencl to work (why?) +COPY rocm.gpg /etc/apt/trusted.gpg.d/ +RUN echo 'deb http://repo.radeon.com/rocm/apt/debian/ xenial main' > /etc/apt/sources.list.d/rocm.list \ + && apt-get update \ + && apt-get -y install rocm-opencl rocm-gdb \ + && rm /etc/OpenCL/vendors/amdocl64* \ + && echo /opt/rocm-*/opencl/lib/libamdocl64.so > /etc/OpenCL/vendors/amdocl64.icd + # models are at wrong location (whyever the package installs it there) RUN cp -r /usr/share/vapoursynth-waifu2x-models/ /usr/lib/x86_64-linux-gnu/vapoursynth/models/ diff --git a/rocm.gpg b/rocm.gpg new file mode 100644 index 0000000..d2d1cfc Binary files /dev/null and b/rocm.gpg differ