Package Details: opencl-amd-dev 1:7.2.3-1

Git Clone URL: https://aur.archlinux.org/opencl-amd-dev.git (read-only, click to copy)
Package Base: opencl-amd-dev
Description: ROCm extra runtime and developer packages. This package needs 16.45GB of disk space.
Upstream URL: http://www.amd.com
Licenses: custom:AMD
Conflicts: composable-kernel, hip-doc, hip-samples, hipblas, hipblas-common, hipblaslt, hipcc, hipcub, hipfft, hipfort, hipify-clang, hiprand, hipsolver, hipsparse, hipsparselt, hiptensor, migraphx, miopen, miopen-hip, mivisionx, openmp-extras-dev, rccl, rocal, rocalution, rocblas, rocdecode, rocfft, rocjpeg, rocm-developer-tools, rocm-hip-libraries, rocm-hip-sdk, rocm-llvm, rocm-ml-libraries, rocm-ml-sdk, rocm-opencl-sdk, rocprim, rocprofiler-compute, rocprofiler-debug, rocprofiler-sdk, rocprofiler-sdk-rocpd, rocprofiler-sdk-roctx, rocprofiler-systems, rocpydecode, rocrand, rocshmem, rocsolver, rocsparse, rocthrust, rocwmma, rpp
Provides: composable-kernel, half, hip-doc, hip-samples, hipblas, hipblas-common, hipblaslt, hipcc, hipcub, hipfft, hipfort, hipify-clang, hiprand, hipsolver, hipsparse, hipsparselt, hiptensor, migraphx, miopen, miopen-hip, mivisionx, openmp-extras-dev, rccl, rocal, rocalution, rocblas, rocdecode, rocfft, rocjpeg, rocm-developer-tools, rocm-hip-libraries, rocm-hip-sdk, rocm-llvm, rocm-ml-libraries, rocm-ml-sdk, rocm-opencl-sdk, rocprim, rocprofiler-compute, rocprofiler-debug, rocprofiler-sdk, rocprofiler-sdk-rocpd, rocprofiler-sdk-roctx, rocprofiler-systems, rocpydecode, rocrand, rocshmem, rocsolver, rocsparse, rocthrust, rocwmma, rpp
Submitter: luciddream
Maintainer: luciddream
Last Packager: luciddream
Votes: 13
Popularity: 0.158894
First Submitted: 2021-12-26 15:01 (UTC)
Last Updated: 2026-05-07 20:14 (UTC)

Required by (173)

Sources (71)

Pinned Comments

luciddream commented on 2025-12-13 09:14 (UTC) (edited on 2026-05-16 12:50 (UTC) by luciddream)

I have created new packages for the ROCm technology preview release stream - currently ROCm 7.13.0. I assume with time they will be able (and forced) to replace the current opencl-amd-dev PKGBUILD.

luciddream commented on 2022-01-12 16:47 (UTC) (edited on 2026-03-26 20:33 (UTC) by luciddream)

Latest release: 7.2.1. It uses 16.38GB of disk.

Issues with current release:

  • libxml2-legacy is required by LLVM compiler.
  • libamdpython.so is missing. Needs manual intervention for rocgdb to function.
  • ROCm needs OpenCV libraries. Possible solution is install opencv then create symbolic links to the Arch Linux libraries.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 Next › Last »

BishopWolf commented on 2022-12-10 14:14 (UTC)

I'm trying my solution manually and it is working to remove hip and miopen from pytorch requirements, but now it is asking for other packages

pamac install python-pytorch-opt-rocm
Warning: python-pytorch-opt-rocm is only available from AUR
Preparing...
Checking python-pytorch-opt-rocm dependencies...
Checking roctracer dependencies...
Checking rocprofiler dependencies...
Checking hsa-amd-aqlprofile-bin dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (4):
  hsa-amd-aqlprofile-bin   5.3.3-1                                              AUR
  rocprofiler              5.3.0-1                                              AUR
  roctracer                5.3.0-1                                              AUR
  python-pytorch-opt-rocm  1.12.1-4                                             AUR
To remove (1):
  python-pytorch           1.13.0-3  (Conflicts With: python-pytorch-opt-rocm)  community

Total removed size: 505.8 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] 

Transaction cancelled.

To remove those dependencies (that are already installed) I simply added this to opencl-amd PKGBUILD

provides=('opencl-driver' 'rocm-core' 'hip' 'hip-dev' 'hip-doc' 'hip-samples' 'hsakmt-roct-dev' 'hsa-rocr' 'hsa-rocr-dev' 'hsa-amd-aqlprofile-bin' 'rocminfo' 'hip-runtime-amd' 'rocm-device-libs' 'rocm-language-runtime' 'rocm-hip-runtime' 'rocm-ocl-icd' 'rocm-opencl' 'rocm-opencl-dev' 'rocm-opencl-runtime' 'rocm-clang-ocl' 'openmp-extras-runtime' 'rocm-cmake' 'rocm-utils' 'rocm-smi-lib' 'rocprofiler' 'roctracer')

voilà, no more required dependencies

pamac install python-pytorch-opt-rocm
Warning: python-pytorch-opt-rocm is only available from AUR
Preparing...
Checking python-pytorch-opt-rocm dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  python-pytorch-opt-rocm  1.12.1-4                                             AUR
To remove (1):
  python-pytorch           1.13.0-3  (Conflicts With: python-pytorch-opt-rocm)  community

Total removed size: 505.8 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] y

Cloning python-pytorch-rocm build files...
Generating python-pytorch-rocm information...

Building python-pytorch-rocm...

pytorch is building now

luciddream commented on 2022-12-09 13:48 (UTC)

Hey @BishopWolf, no, I didn't misunderstood, in fact after more thought I think it will be fine to add both hip and miopen to the packages. But it's not something that is urgent at the moment. I will add them on the next official ROCm release.

BishopWolf commented on 2022-12-09 10:30 (UTC)

Hello @luciddream: I think you misunderstood, hip-runtime-amd already provides hip and miopen-hip already provides miopen. But in the system they are not declared explicitly. In the example, python-pytorch-opt-rocm is asking explicitly for a provider of both packages that are already installed in the system, but no provider has been declared. Hence, you need to modify the provides section here as

+ provides(...   'miopen-hip' *'miopen'* 'miopen-hip-dev' ...)

the same for opencl-amd

+ provides(...   'hip-dev' *'hip'* 'hip-doc' ...)

That's all

luciddream commented on 2022-12-03 16:29 (UTC) (edited on 2022-12-03 16:30 (UTC) by luciddream)

@BishopWolf thanks, your comment reminded me there is more to these packages than the Ubuntu Installer wants you to believe. I will have to keep a better eye on every release.

I think that the easiest way for now is for you (and everyone else that wants to install a software) to manually change the dependencies of the package you are trying to install, and build it without an AUR helper.

I will probably add hip and miopen in a future release but I don't see it as necessary or urgent. Currently opencl-amd and -dev only provide hip-runtime-amd and miopen-hip, so the package is fine as it is.

BishopWolf commented on 2022-12-03 14:51 (UTC) (edited on 2022-12-03 15:01 (UTC) by BishopWolf)

Hi, when installing packages they do something like this

Choose a provider for hip:
1:  hip-runtime-amd     5.3.3-1  AUR
2:  hip-runtime-nvidia  5.3.0-3  AUR

Enter a number (default=1): ^C  

Choose a provider for miopen:
1:  miopen-hip     5.3.0-1  AUR
2:  miopen-opencl  5.3.0-1  AUR

Enter a number (default=1): ^Z
[1]+  Stopped                 pamac build python-pytorch-opt-rocm

These two packages are included, but are not declared in the "provides" section. I think this will be the solution.

EDIT: You have to add "hip" to the provides section in "opencl-amd"; and "miopen" here

luciddream commented on 2022-11-25 20:51 (UTC) (edited on 2022-11-25 21:44 (UTC) by luciddream)

@BishopWolf sorry for late reply, I've been pretty busy as always in weekdays.

Both opencl-amd and opencl-amd-dev are part of the same Ubuntu package, the only reason I've separated them is so people can use opencl and rocm runtime without having to install 10+GB of files, and this strategy is working fine so far (I think). To be honest, opencl-amd-dev is a failed name for this package, it should be opencl-amd-sdk. So it has nothing to do with header files or binary files.

Roctracer if I'm not mistaken is being used by clinfo so it makes sense to include it in opencl-amd package. But that doesn't mean it should not work for people that have also installed opencl-amd-dev package. If you have trouble with compiling something that needs roctracer, please provide logs or the software you are trying to compile so I can check as well.

edit: More specifically, this is how the ROCtracer works so it makes sense to keep it with runtime libraries, and these are present inside opencl-amd

The only problem is I'm still on 16GB of RAM and I can't seem to decide on my next RAM upgrade yet. Every RAM kit I find is either too slow or too expensive. So I might not be able to compile everything yet.

BishopWolf commented on 2022-11-24 11:33 (UTC) (edited on 2022-11-24 18:15 (UTC) by BishopWolf)

Missing roctracer, we are closer to full functionality, thanks

Edit: in opencl-amd there is the roctracer-dev, but there are no binaries.

Seems odd that there is a rocm-dev section there. Have you considered putting all binaries there and all headers here?

luciddream commented on 2022-11-20 21:25 (UTC)

@BishopWolf thanks for reporting. I just pushed an update that hopefully fixes this.

I also plan to automate a large part of this procedure so we don't have any more issues like this. Until then, patience :)

BishopWolf commented on 2022-11-20 14:53 (UTC)

Missing hipsolver

ERROR: hipsolver version file not found in ['hipsolver/include/hipsolver-version.h', 'hipsolver/include/internal/hipsolver-version.h']

Although hipsolver is declared here, it is not installed anywhere

BishopWolf commented on 2022-11-13 15:45 (UTC)

OK the error is gone now. Thanks so much for this package, it is a life saver