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

Git Clone URL: https://aur.archlinux.org/opencl-amd-dev.git (read-only, click to copy)
Package Base: opencl-amd-dev
Description: OpenCL SDK / HIP SDK / ROCM Compiler. This package needs at least 20GB of disk space.
Upstream URL: http://www.amd.com
Licenses: custom:AMD
Conflicts: composablekernel-dev, hipblas, hipblas-common-dev, hipblas-dev, hipblaslt, hipblaslt-dev, hipcub, hipcub-dev, hipfft, hipfft-dev, hipfort, hipfort-dev, hipify-clang, hiprand, hiprand-dev, hipsolver, hipsolver-dev, hipsparse, hipsparse-dev, hipsparselt, hipsparselt-dev, hiptensor, hiptensor-dev, migraphx, migraphx-dev, miopen, miopen-hip, miopen-hip-dev, mivisionx, mivisionx-dev, openmp-extras-dev, rccl, rccl-dev, rocalution, rocalution-dev, rocblas, rocblas-dev, rocfft, rocfft-dev, rocm-developer-tools, rocm-hip-libraries, rocm-hip-runtime-dev, rocm-hip-sdk, rocm-llvm, rocm-ml-libraries, rocm-ml-sdk, rocm-opencl-sdk, rocprim, rocprim-dev, rocprofiler-compute, rocprofiler-sdk, rocprofiler-sdk-roctx, rocprofiler-systems, rocrand, rocrand-dev, rocsolver, rocsolver-dev, rocsparse, rocsparse-dev, rocthrust, rocthrust-dev, rocwmma-dev, rpp, rpp-dev
Provides: composablekernel-dev, half, hipblas, hipblas-common-dev, hipblas-dev, hipblaslt, hipblaslt-dev, hipcub, hipcub-dev, hipfft, hipfft-dev, hipfort, hipfort-dev, hipify-clang, hiprand, hiprand-dev, hipsolver, hipsolver-dev, hipsparse, hipsparse-dev, hipsparselt, hipsparselt-dev, hiptensor, hiptensor-dev, migraphx, migraphx-dev, miopen, miopen-hip, miopen-hip-dev, mivisionx, mivisionx-dev, openmp-extras-dev, rccl, rccl-dev, rocalution, rocalution-dev, rocblas, rocblas-dev, rocfft, rocfft-dev, rocm-developer-tools, rocm-hip-libraries, rocm-hip-runtime-dev, rocm-hip-sdk, rocm-llvm, rocm-ml-libraries, rocm-ml-sdk, rocm-opencl-sdk, rocprim, rocprim-dev, rocprofiler-compute, rocprofiler-sdk, rocprofiler-sdk-roctx, rocprofiler-systems, rocrand, rocrand-dev, rocsolver, rocsolver-dev, rocsparse, rocsparse-dev, rocthrust, rocthrust-dev, rocwmma-dev, rpp, rpp-dev
Submitter: luciddream
Maintainer: luciddream
Last Packager: luciddream
Votes: 9
Popularity: 0.26
First Submitted: 2021-12-26 15:01 (UTC)
Last Updated: 2025-04-11 22:54 (UTC)

Required by (153)

Sources (56)

Pinned Comments

luciddream commented on 2022-01-12 16:47 (UTC) (edited on 2025-04-11 22:57 (UTC) by luciddream)

Latest release: 6.4.0. It uses 12.67GB of disk.

Latest Comments

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

Nyan13 commented on 2022-02-18 01:50 (UTC) (edited on 2022-02-18 05:16 (UTC) by Nyan13)

I have problem with pytorch building and hiprand include dir. Pytorch searching for hiprand files in somethinginclude/hiprand/ But hiprand include dir does not listed under /opt/rocm-5.0.0/include/ for example. And also there is no symlinks for hiprand in /opt/rocm-5.0.0/lib/ dir.

Also I manage to build pytorch from git for gfx1030 architecture on this rocm5.0(opencl-amd-dev) installation with USE_KINETO=NO

Main pitfalls was libkineto and hiprand include dir. Last I solved by dirty copying include files: cp -r /opt/rocm-5.0.0/hiprand/include/* /usr/include/hiprand/

It will be nice to have more clean solution.

P.S.

Now when I tried to build pytorch with FFMPEG I again stumble on include problem. This time for some reason something wanting to see rocm_version.h file.

luciddream commented on 2022-02-16 01:01 (UTC) (edited on 2022-02-16 01:02 (UTC) by luciddream)

I found something. For some reason librocalution.so has been compiled with missing library paths, from what I understand. Manually setting LD_LIBRARY_PATH=/opt/rocm/lib:/opt/rocm/hip/lib will help some HIP software run.

For example Pytorch will run again when I set the path, and Julia AMDGPU will run fine after I set it. Most software won't show logs for these missing libraries. I will investigate it tomorrow since it's super late for me.

@drws I didn't have time to check it out yet but I think the output is normal. I will take another look when I have more time though.

drws commented on 2022-02-13 11:21 (UTC) (edited on 2022-02-13 11:23 (UTC) by drws)

After fresh installation I get:

warning: directory permissions differ on /opt/rocm-5.0.0/hip/bin/
filesystem: 775  package: 755

Which is trivial to fix with:

sudo chmod 755 /opt/rocm-5.0.0/hip/bin

But I'd still be better to be fixed in the PKGBUILD.

luciddream commented on 2022-02-11 18:00 (UTC)

@trougnouf I followed your advice. I don't have much experience with packaging so I'm not sure how to deal with conflicts / provides. I've added everything to provides for now.

@esistgut I've updated this package for ROCm 5.0 - However I don't have any luck with the recent versions of Pytorch. Maybe you have better luck :)

trougnouf commented on 2022-02-07 23:07 (UTC) (edited on 2022-02-07 23:08 (UTC) by trougnouf)

It's redundant to conflict with rocm-opencl-runtime because opencl-amd, its dependency, already has this conflict (and imo opencl-amd should provide rocm-opencl-runtime)

esistgut commented on 2022-01-24 18:53 (UTC)

@luciddream, just installed it: torch.cuda.is_available() returns False but as far as I can tell it doesn't seem to interact with opencl-amd-dev at all, removing it has no effect.

luciddream commented on 2022-01-24 09:52 (UTC)

@esistgut I noticed that there are some builds for Pytorch with Rocm 4.5.2 support now, maybe you want to give it a try?

I'm not on my PC now to test it but I think something like this might work

pip install --pre torch -f https://download.pytorch.org/whl/nightly/rocm4.5.2/torch_nightly.html

luciddream commented on 2022-01-12 16:47 (UTC) (edited on 2025-04-11 22:57 (UTC) by luciddream)

Latest release: 6.4.0. It uses 12.67GB of disk.

luciddream commented on 2022-01-12 11:40 (UTC)

@esistgut

The thing is that we have different issues. Pytorch already has support for gfx1030 and you have a gfx1030. So maybe all it's missing for you is to wait for [this pr] to be completed.

In any case I will push a new version of this package within the week to include missing math libraries etc.