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.
Search Criteria
Package Details: opencl-amd-dev 1:6.2.4-2
Package Actions
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-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, omniperf, omnitrace, 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-sdk, rocprofiler-sdk-roctx, rocrand, rocrand-dev, rocsolver, rocsolver-dev, rocsparse, rocsparse-dev, rocthrust, rocthrust-dev, rocwmma-dev, rpp, rpp-dev |
Provides: | composablekernel-dev, half, hipblas, 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, omniperf, omnitrace, 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-sdk, rocprofiler-sdk-roctx, 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: | 8 |
Popularity: | 0.47 |
First Submitted: | 2021-12-26 15:01 (UTC) |
Last Updated: | 2024-11-10 10:22 (UTC) |
Dependencies (5)
- blas (blis-cblas-openmpAUR, blis-cblasAUR, aocl-blis-aoccAUR, blas-gitAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, blis-gitAUR, blisAUR, openblas-lapackAUR, blas-mklAUR, aocl-blisAUR, blas-openblas)
- lapack (aocl-libflame-aoccAUR, lapack-gitAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, openblas-lapackAUR, blas-mklAUR, aocl-libflameAUR, blas-openblas)
- opencl-amdAUR (amdapp-sdkAUR)
- suitesparse
- wget (wget-gitAUR, wurlAUR) (make)
Required by (154)
- adaptivecpp (requires rocm-llvm) (make)
- adaptivecpp-common-git (requires rocm-llvm) (make)
- adaptivecpp-cpu-git (requires rocm-llvm) (make)
- adaptivecpp-git (requires rocm-llvm) (make)
- adaptivecpp-opencl-git (requires rocm-llvm) (make)
- adaptivecpp-rocm-git (requires rocm-llvm) (make)
- dsnote (requires rocblas) (optional, x86_64)
- ginkgo-hpc-cuda-git (requires hipsparse) (make)
- ginkgo-hpc-cuda-git (requires rocthrust) (make)
- ginkgo-hpc-cuda-git (requires hipblas) (make)
- ginkgo-hpc-cuda-git (requires hipfft) (make)
- ginkgo-hpc-cuda-git (requires hiprand) (make)
- ginkgo-hpc-docs-git (requires hipsparse) (make)
- ginkgo-hpc-docs-git (requires rocthrust) (make)
- ginkgo-hpc-docs-git (requires hipblas) (make)
- ginkgo-hpc-docs-git (requires hipfft) (make)
- ginkgo-hpc-docs-git (requires hiprand) (make)
- ginkgo-hpc-git (requires rocthrust) (make)
- ginkgo-hpc-git (requires hipblas) (make)
- ginkgo-hpc-git (requires hipfft) (make)
- Show 134 more...
Sources (54)
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/c/composablekernel-dev/composablekernel-dev_1.1.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/half/half_1.12.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipblas-dev/hipblas-dev_2.2.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipblas/hipblas_2.2.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipblaslt-dev/hipblaslt-dev_0.8.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipblaslt/hipblaslt_0.8.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipcub-dev/hipcub-dev_3.2.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipfft-dev/hipfft-dev_1.0.16.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipfft/hipfft_1.0.16.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipfort-dev/hipfort-dev_0.4.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipify-clang/hipify-clang_18.0.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hiprand-dev/hiprand-dev_2.11.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hiprand/hiprand_2.11.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipsolver-dev/hipsolver-dev_2.2.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipsolver/hipsolver_2.2.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipsparse-dev/hipsparse-dev_3.1.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipsparse/hipsparse_3.1.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipsparselt-dev/hipsparselt-dev_0.2.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hipsparselt/hipsparselt_0.2.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hiptensor-dev/hiptensor-dev_1.3.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/h/hiptensor/hiptensor_1.3.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/m/migraphx-dev/migraphx-dev_2.10.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/m/migraphx/migraphx_2.10.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/m/miopen-hip-dev/miopen-hip-dev_3.2.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/m/miopen-hip/miopen-hip_3.2.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/m/mivisionx-dev/mivisionx-dev_3.0.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/m/mivisionx/mivisionx_3.0.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/o/omniperf/omniperf_2.0.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/o/omnitrace/omnitrace_1.11.2.60204-139~22.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/o/openmp-extras-dev/openmp-extras-dev_18.62.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rccl-dev/rccl-dev_2.20.5.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rccl/rccl_2.20.5.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocalution-dev/rocalution-dev_3.2.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocalution/rocalution_3.2.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocblas-dev/rocblas-dev_4.2.4.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocblas/rocblas_4.2.4.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocfft-dev/rocfft-dev_1.0.30.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocfft/rocfft_1.0.30.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocm-hip-runtime-dev/rocm-hip-runtime-dev_6.2.4.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocm-llvm/rocm-llvm_18.0.0.24392.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocm-opencl-sdk/rocm-opencl-sdk_6.2.4.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocprim-dev/rocprim-dev_3.2.2.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocprofiler-sdk-roctx/rocprofiler-sdk-roctx_0.4.0-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocprofiler-sdk/rocprofiler-sdk_0.4.0-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocrand-dev/rocrand-dev_3.1.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocrand/rocrand_3.1.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocsolver-dev/rocsolver-dev_3.26.2.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocsolver/rocsolver_3.26.2.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocsparse-dev/rocsparse-dev_3.2.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocsparse/rocsparse_3.2.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocthrust-dev/rocthrust-dev_3.1.1.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rocwmma-dev/rocwmma-dev_1.5.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rpp-dev/rpp-dev_1.8.0.60204-139~24.04_amd64.deb
- https://repo.radeon.com/rocm/apt/6.2.4/pool/main/r/rpp/rpp_1.8.0.60204-139~24.04_amd64.deb
luciddream commented on 2022-02-19 18:18 (UTC) (edited on 2022-02-19 18:18 (UTC) by luciddream)
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.
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.
Pinned Comments
luciddream commented on 2022-01-12 16:47 (UTC) (edited on 2024-11-07 20:44 (UTC) by luciddream)
Latest release: 6.2.4. It uses 25.93GB of disk.