Package Details: opencl-amd 1:6.3.2-1

Git Clone URL: https://aur.archlinux.org/opencl-amd.git (read-only, click to copy)
Package Base: opencl-amd
Description: ROCm components repackaged from AMD's Ubuntu releases (ROCr runtime, ROCm runtime, HIP runtime) - This package is intended to work along with the free amdgpu stack.
Upstream URL: http://www.amd.com
Keywords: amd amdgpu computing gpgpu opencl radeon
Licenses: custom:AMD
Conflicts: amd-smi-lib, comgr, hip, hip-dev, hip-doc, hip-runtime-amd, hip-samples, hipcc, hsa-amd-aqlprofile, hsa-rocr, hsa-rocr-dev, libdrm-amdgpu-amdgpu1, openmp-extras-runtime, rocdecode, rocdecode-dev, rocjpeg, rocjpeg-dev, rocm-cmake, rocm-core, rocm-dbgapi, rocm-debug-agent, rocm-device-libs, rocm-gdb, rocm-hip-runtime, rocm-language-runtime, rocm-ocl-icd, rocm-opencl, rocm-opencl-dev, rocm-opencl-icd-loader, rocm-opencl-runtime, rocm-smi-lib, rocm-utils, rocminfo, rocprofiler, rocprofiler-dev, rocprofiler-plugins, rocprofiler-register, roctracer, roctracer-dev
Provides: amd-smi-lib, comgr, hip, hip-dev, hip-doc, hip-runtime-amd, hip-samples, hipcc, hsa-amd-aqlprofile, hsa-rocr, hsa-rocr-dev, libdrm-amdgpu-amdgpu1, opencl-driver, openmp-extras-runtime, rocdecode, rocdecode-dev, rocjpeg, rocjpeg-dev, rocm-cmake, rocm-core, rocm-dbgapi, rocm-debug-agent, rocm-device-libs, rocm-gdb, rocm-hip-runtime, rocm-language-runtime, rocm-ocl-icd, rocm-opencl, rocm-opencl-dev, rocm-opencl-icd-loader, rocm-opencl-runtime, rocm-smi-lib, rocm-utils, rocminfo, rocprofiler, rocprofiler-dev, rocprofiler-plugins, rocprofiler-register, roctracer, roctracer-dev
Submitter: grmat
Maintainer: sperg512 (luciddream)
Last Packager: luciddream
Votes: 132
Popularity: 0.21
First Submitted: 2016-12-01 03:45 (UTC)
Last Updated: 2025-01-29 20:12 (UTC)

Required by (128)

Sources (38)

Pinned Comments

nho1ix commented on 2023-12-29 08:43 (UTC) (edited on 2024-02-10 07:13 (UTC) by nho1ix)

Note for anyone who has a Polaris GPU (Radeon RX 5xx) debugging issues with this package; Packages that use OpenCL like clinfo or davinci-resolve-studio will need you to downgrade opencl-amd to 1:5.7.1-1 as well as amdgpu-pro-oglp to 23.10_1620044-1 to avoid coredumps & segfaults.

DVR would not open unless these 2 packages were downgraded (along with their dependencies). Had to figure it out the hard way after hours using valgrind and rebooting over and over. Hopefully someone else will not have to pull their hair out trying to resolve their issue.

luciddream commented on 2021-12-26 15:14 (UTC) (edited on 2025-01-29 20:13 (UTC) by luciddream)

Current release is for ROCm 6.3.2 opencl-amd package includes only OpenCL / HIP runtime. You also need to use opencl-amd-dev package for ROCm LLVM compiler, OpenCL and HIP SDK. Please relog / reboot after installing so your PATH gets updated

There are now official packages available: rocm-opencl-sdk for OpenCL and rocm-hip-sdk for HIP - You might have better luck with these packages depending on your GPU.

Latest Comments

« First ‹ Previous 1 .. 24 25 26 27 28 29 30 31 32 33 34 .. 79 Next › Last »

luciddream commented on 2022-01-11 07:39 (UTC)

@srahman5317

Can you try to download https://repo.radeon.com/amdgpu/21.40.2/ubuntu/pool/proprietary/c/clinfo-amdgpu-pro/clinfo-amdgpu-pro_21.40.2-1350682_amd64.deb

extract the package, and see if that clinfo works for you ?

You can also try to strace /usr/bin/clinfo 2> strace.txt and attach the output, maybe we can find out what is wrong.

srahman5317 commented on 2022-01-11 03:59 (UTC)

Don't know if this is super relevent but clinfo command crashes on Ryzen 4000. I get the same behavior on direct ROCm drivers. However, tasks / benchmarks that makes use of opencl seem to be working. They don't work without this package so I appreciate it.

trougnouf commented on 2021-12-31 09:37 (UTC)

Thank you @luciddream :) I tried building python-pytorch-rocm but it has (miopen rocm rocm-libs rccl) listed as incompatible dependencies. I tried building after removing them in the PKGBUILD and ended up with an error. I don't know if it's related to a missing component from these dependencies, the error is not verbose. Below is the last line before build failure:

[4983/5943] /usr/bin/c++ -DADD_BREAKPAD_SIGNAL_HANDLER -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DGFLAGS_IS_A_DLL=0 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNNP_CONVOLUTION_ONLY=0 -DNNP_INFERENCE_ONLY=0 -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -DUSE_C10D_GLOO -DUSE_C10D_MPI -DUSE_DISTRIBUTED -DUSE_EXTERNAL_MZCRC -DUSE_RPC -DUSE_TENSORPIPE -D_FILE_OFFSET_BITS=64 -Dtorch_cpu_EXPORTS -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/aten/src -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/aten/src -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/cmake/../third_party/benchmark/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/caffe2/contrib/aten -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/onnx -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/third_party/onnx -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/foxi -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/third_party/foxi -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/torch/csrc/api -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/torch/csrc/api/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/caffe2/aten/src/TH -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/caffe2/aten/src/TH -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/caffe2/aten/src -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/caffe2/../third_party -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/caffe2/../third_party/breakpad/src -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/caffe2/../aten/src -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/caffe2/../aten/src/ATen -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/torch/csrc -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/miniz-2.0.8 -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/kineto/libkineto/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/kineto/libkineto/src -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/torch/csrc/distributed -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/aten/src/TH -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/aten/../third_party/catch/single_include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/aten/src/ATen/.. -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/caffe2/aten/src/ATen -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/caffe2/core/nomnigraph/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/FXdiv/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/c10/.. -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/third_party/ideep/mkl-dnn/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/ideep/mkl-dnn/src/../include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/pthreadpool/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/cpuinfo/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/QNNPACK/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/aten/src/ATen/native/quantized/cpu/qnnpack/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/aten/src/ATen/native/quantized/cpu/qnnpack/src -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/cpuinfo/deps/clog/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/NNPACK/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/fbgemm/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/fbgemm -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/fbgemm/third_party/asmjit/src -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/FP16/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/tensorpipe -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/third_party/tensorpipe -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/tensorpipe/third_party/libnop/include -I/orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/fmt/include -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/third_party/gloo -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/cmake/../third_party/gloo -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/cmake/../third_party/googletest/googlemock/include -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/cmake/../third_party/googletest/googletest/include -isystem /opt/intel/mkl/include -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/gemmlowp -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/neon2sse -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/XNNPACK/include -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party -isystem /usr/include/opencv4 -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/cmake/../third_party/eigen -isystem /usr/include/python3.10 -isystem /usr/lib/python3.10/site-packages/numpy/core/include -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/cmake/../third_party/pybind11/include -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/ideep/mkl-dnn/include -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/third_party/ideep/include -isystem /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/build/include -march=native -O3 -pipe -fstack-protector-strong -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG -fPIC   -march=haswell -DCAFFE2_USE_GLOO -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-missing-braces -Wno-maybe-uninitialized -fvisibility=hidden -O2 -fopenmp -DCAFFE2_BUILD_MAIN_LIB -pthread -DASMJIT_STATIC -std=gnu++14 -MD -MT caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/autograd/generated/TraceType_2.cpp.o -MF caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/autograd/generated/TraceType_2.cpp.o.d -o caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/autograd/generated/TraceType_2.cpp.o -c /orb/tmp/Downloads/python-pytorch-rocm/src/pytorch-1.10.0-rocm/torch/csrc/autograd/generated/TraceType_2.cpp
ninja: build stopped: subcommand failed.

luciddream commented on 2021-12-30 13:24 (UTC) (edited on 2021-12-30 13:28 (UTC) by luciddream)

@trougnouf With opencl-amd and opencl-amd-dev you should be covered (in theory) to do that.

You can find rocm-smi and more tools installed at /opt/rocm/bin - and some on /opt/rocm/hip/bin. I've not included them in PATH yet, but they will be included in the next release. You should be able to run pytorch-rocm if your GPU supports it. If it does work for you, please comment it here so we know this package is actually useful :)

trougnouf commented on 2021-12-30 13:15 (UTC) (edited on 2021-12-30 13:18 (UTC) by trougnouf)

@luciddream I have no idea. I think they've been lingering in my system since the early days of ROCm-based OpenCL.

rocm-smi was useful to check the load and eventually I would like to use pytorch-rocm, but I don't know whether these packages have any relevance.

luciddream commented on 2021-12-30 13:12 (UTC) (edited on 2021-12-30 13:15 (UTC) by luciddream)

@trougnouf opencl-amd is in conflict with these packages, although this is not defined in the PKBUILD yet.

Why are you trying to install opencl-amd if you already have these installed? Maybe there is a use case we need to consider that is not covered by the current package.

edit: nvm, I didn't see your edit :D

trougnouf commented on 2021-12-30 11:12 (UTC) (edited on 2021-12-30 11:13 (UTC) by trougnouf)

I currently get the following error:

error: failed to commit transaction (conflicting files)
opencl-amd: /opt/rocm exists in filesystem

It looks like this package makes /opt/rocm/ a link to the specific version, but other packages are using /opt/rocm/:

[trougnouf@d]: ~>$ pacman -Qo /opt/rocm
/opt/rocm/ is owned by hsakmt-roct 4.5.2-1
/opt/rocm/ is owned by miopengemm 4.5.2-1
/opt/rocm/ is owned by rocm-cmake 4.5.2-1
/opt/rocm/ is owned by rocm-smi-lib64 4.5.2-1

edit: I removed these packages, I guess they are not necessary.

luciddream commented on 2021-12-28 07:32 (UTC) (edited on 2021-12-28 07:33 (UTC) by luciddream)

It seems that the AUR people decided to delete my opencl-amd-ncurses5 package. I don't have any plans to add ncurses5-compat-libs as a dependency again because I have no plans of using it, so I guess it will stay as optional (as far as I'm co-maintaining the package)

luciddream commented on 2021-12-27 10:13 (UTC) (edited on 2021-12-27 18:39 (UTC) by luciddream)

You are welcome @apaz. I know that this package is basically just copying files from one place to another but it needs a lot more effort than it (probably) looks. I hope at least it's useful for people.

For Pytorch, what I did was install python39, then download Pytorch with ROCM backend support from: https://pytorch.org/get-started/locally/ - The command to do that is something like: python3.9 -m pip3 install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/rocm4.2/torch_nightly.html

Then you can try to run the python sample

But since we have the same GPU I assume you will get the same error that our GPU is not supported :)

I also tried to download the rocm tensorflow docker image, but it's 7GB and I got bored at about 3GB and cancelled it. Maybe someone else with more patience can give it a try.

apaz commented on 2021-12-27 09:27 (UTC)

I tried to install opencl-amd-dev and everything is OK: "Clinfo" reports no errors; "geekbench --compute" gives the values it has always given; "DaVinci Resolve" works.

I have no programming knowledge; I tried to install PyTorch and then run the script found in: https://en.wikipedia.org/wiki/PyTorch It seems to work and I have no error messages (maybe it doesn't involve the GPU; can you provide me with a script to test it?) I use Arch KDE with AMD RX 5700XT (which is not officially supported by ROCm). Thanks for the great work you are doing.