mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: rocm: Update to 6.4.2.
This commit updates all of the ROCm packages, including llvm-for-rocm, to the latest version, 6.4.2. An exception is roct-thunk-interface which is deprecated upstream, but unclear what the replacement is. It does build from the last version, 6.2.4, which is what it is updated to here. Several packages are now in the same repository as the ROCm LLVM fork, so they share the same origin (repeated in (gnu packages rocm) from llvm-for-rocm in (gnu packages llvm) as using package-source did not resolve). * gnu/packages/llvm.scm (llvm-for-rocm): Update to 6.4.2. Inherit from llvm-19. [source]: Update URL. [arguments]: Correct spacing of configure-flags. * gnu/packages/patches/rocclr-5.6.0-enable-gfx800.patch, gnu/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch: Update. * gnu/packages/patches/rocm-bandwidth-test-5.5.0-fix-includes.patch, gnu/packages/patches/rocm-comgr-3.1.0-dependencies.patch: Remove files. * gnu/packages/rocm.scm (%rocm-version): Update to 6.4.2. (%rocm-llvm-origin): New variable. (rocm-cmake)[home-page]: Update. (rocm-device-libs)[source]: Use %rocm-llvm-origin. [arguments]: Add build-type. Add chdir phase. [home-page]: Update. (rocm-comgr)[source]: Use %rocm-llvm-origin. Remove patch. [arguments]: Add build-type. Rename chdir phase to prepare-to build, setting ROCM_PATH. [inputs]: Move llvm-for-rocm from here ... [native-inputs]: ... to here. Add python. [home-page]: Update. (roct-thunk-interface): Update to 6.2.4. [source, home-page]: Update URL. (rocr-runtime)[source]: Update URL. [arguments]: Add build-type. Update and simplify add-rocm-device-lib-path phase. [inputs]: Change libelf to libelf-shared. [home-page]: Update. (rocclr-src): Remove variable. (rocm-opencl-runtime)[home-page]: Update. [source]{patches}: Add patch (that was in rocclr-src before). [arguments]: Add build-type. Update configure-flags. Add no-os-release phase. (rocminfo)[source, home-page]: Update URL. (rocm-bandwidth-test)[source]: Update URL. Remove patch. [home-page]: Update. * gnu/local.mk (dist_patch_DATA): Remove patches. Change-Id: I2157255a9546110ac683c12c131a330402e2fd93 Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
parent
897590f99d
commit
d8dc8d856a
7 changed files with 126 additions and 255 deletions
|
@ -22,7 +22,7 @@
|
|||
;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
|
||||
;;; Copyright © 2021, 2022 Guillaume Le Vaillant <glv@posteo.net>
|
||||
;;; Copyright © 2022, 2024 Greg Hogan <code@greghogan.com>
|
||||
;;; Copyright © 2022, 2024 John Kehayias <john.kehayias@protonmail.com>
|
||||
;;; Copyright © 2022, 2024, 2025 John Kehayias <john.kehayias@protonmail.com>
|
||||
;;; Copyright © 2022 Clément Lassieur <clement@lassieur.org>
|
||||
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
|
||||
;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
|
||||
|
@ -1661,30 +1661,30 @@ Library.")
|
|||
|
||||
(define-public llvm-for-rocm
|
||||
(package
|
||||
;; Based on LLVM 14 as of v5.0.0
|
||||
(inherit llvm-14)
|
||||
;; Currently based on LLVM 19.
|
||||
(inherit llvm-19)
|
||||
(name "llvm-for-rocm")
|
||||
(version "5.6.0") ;this must match '%rocm-version'
|
||||
(version "6.4.2") ;this must match '%rocm-version'
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/RadeonOpenCompute/llvm-project.git")
|
||||
(url "https://github.com/ROCm/llvm-project.git")
|
||||
(commit (string-append "rocm-" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1kg6q6aqijjrwaznj0gr3nd01gykrnqqnk8vz8wyfifr18l9jrgx"))))
|
||||
"1j2cr362k7snsh5c1z38ikyihmjvy0088rj0f0dhng6cjwgysryp"))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments llvm-14)
|
||||
(substitute-keyword-arguments (package-arguments llvm-19)
|
||||
((#:configure-flags flags)
|
||||
#~(list"-DLLVM_ENABLE_PROJECTS=llvm;clang;lld"
|
||||
"-DLLVM_TARGETS_TO_BUILD=AMDGPU;X86"
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=FALSE"
|
||||
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
|
||||
"-DBUILD_SHARED_LIBS:BOOL=TRUE"
|
||||
"-DLLVM_VERSION_SUFFIX="))))
|
||||
#~(list "-DLLVM_ENABLE_PROJECTS=llvm;clang;lld"
|
||||
"-DLLVM_TARGETS_TO_BUILD=AMDGPU;X86"
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=FALSE"
|
||||
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
|
||||
"-DBUILD_SHARED_LIBS:BOOL=TRUE"
|
||||
"-DLLVM_VERSION_SUFFIX="))))
|
||||
(properties `((hidden? . #t)
|
||||
,@(package-properties llvm-14)))))
|
||||
,@(package-properties llvm-19)))))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue