Package Details: opencl-amd-dev 22.20.3.50203-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 10GB of space.
Upstream URL: http://www.amd.com
Licenses: custom:AMD
Provides: hip-dev, hip-doc, hip-samples, hipblas, hipblas-dev, hipcub-dev, hipfft, hipfft-dev, hipify-clang, hipsparse, hipsparse-dev, miopen-hip, miopen-hip-dev, miopentensile, miopentensile-dev, rccl, rccl-dev, rocalution, rocalution-dev, rocblas, rocblas-dev, rocfft, rocfft-dev, rocm-clang-ocl, rocm-hip-libraries, rocm-hip-runtime-dev, rocm-hip-sdk, rocm-llvm, rocm-ml-libraries, rocprim-dev, rocrand, rocrand-dev, rocsolver, rocsolver-dev, rocsparse, rocsparse-dev, rocthrust-dev
Submitter: luciddream
Maintainer: luciddream
Last Packager: luciddream
Votes: 3
Popularity: 0.018804
First Submitted: 2021-12-26 15:01 (UTC)
Last Updated: 2022-08-20 18:41 (UTC)

Dependencies (2)

Required by (96)

Sources (32)

Pinned Comments

luciddream commented on 2022-01-12 16:47 (UTC) (edited on 2022-02-11 17:58 (UTC) by luciddream)

I've pushed all of the SDK (HIP/OpenCL/ROCM) dependencies and libraries for now on this package. It's 1.8GB download size and uses 10.8GB of disk. Any feedback welcome.

Latest Comments

1 2 3 4 Next › Last »

luciddream commented on 2022-04-12 22:48 (UTC) (edited on 2022-04-12 22:49 (UTC) by luciddream)

I've been trying to compile HIPRT today and I noticed that HIP is looking for the hsa header files in /opt/rocm/hsa/include directory. I will try to find a solution for next release.

p.s no luck with compiling HIPRT until now, I get some errors that I'm still trying to understand.

luciddream commented on 2022-02-23 11:11 (UTC)

@esistgut Did you try the latest docker pytorch? They say it should work with ROCm 5.0+

I tried to compile Pytorch myself but I only have 16GB ram and it's not enough. But for your GPU the docker image should work. I'm curious if our package is missing anything for it.

luciddream commented on 2022-02-19 18:18 (UTC) (edited on 2022-02-19 18:18 (UTC) by luciddream)

Hm, I tried to build from the rc tag as well but I got an error which I manually patched, and then I got the hiprand error you decribed earlier. I don't have experience with the C++ build systems but I have a feeling the problem lies with the hipification of the aten src code.

luciddream commented on 2022-02-18 22:50 (UTC) (edited on 2022-02-18 22:51 (UTC) by luciddream)

@Nyan13 I'm building from git too.

git clone --recursive https://github.com/pytorch/pytorch.git --depth=1 --shallow-submodules

The problem with this command though is that it will build from HEAD, so it fails for me at some point. I think to make this work you need to get it from the latest rc tag

p.s I also noticed that for some unknown reason I haven't added /opt/rocm/hip/lib to the ld.so.conf.d so I will make a new opencl-amd release soon to fix that.

Nyan13 commented on 2022-02-18 21:24 (UTC)

@luciddream

Can you tell what commands you using and how you acquire pytorch sources? I am building from git.

Perhaps my setup messed up badly, I will try to make clear install in vm and report back.

luciddream commented on 2022-02-18 19:22 (UTC) (edited on 2022-02-18 19:30 (UTC) by luciddream)

@Nyan13 I'm a bit confused, at what point Pytorch stops building for you? It works fine for me with just this package.

***** Library versions from cmake find_package *****

-- hip::amdhip64 is SHARED_LIBRARY
hip VERSION: 5.0.22042
hsa-runtime64 VERSION: 1.5.50000
amd_comgr VERSION: 2.4.0
rocrand VERSION: 2.10.9
hiprand VERSION: 2.10.9

Maybe you have an outdated pytorch directory?

luciddream commented on 2022-02-18 08:53 (UTC) (edited on 2022-02-18 09:09 (UTC) by luciddream)

Hi @Nyan13, I will have to check later tonight. I'm not at home to check anything right now, and I don't remember the ROCm directory structure, but from the rocrand repository I see:

Prior to ROCm version 5.0, this project included the hipRAND wrapper. As of version 5.0, this has been split into a separate library.

So while I'm not familiar with the C++ build systems, maybe it has something to do with that. To be able to use Pytorch with ROCm 5.0, maybe LoadHIP.cmake, and maybe more files need to be updated? I will take a look anyway later tonight.

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.

From what I see Pytorch is looking for this file to determine if you are using ROCm 5.0 or not. If it's not in the right directory maybe we can create a symlink to that file.

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.