summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/llvm.scm28
1 files changed, 20 insertions, 8 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 8742abce0b5..e7d9b18ea95 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1619,19 +1619,31 @@ AMDGPU code objects.")
1619 1619
1620 ;;(list "HIP_ROCCLR_HOME" '= (list #$rocm-hip-runtime)) 1620 ;;(list "HIP_ROCCLR_HOME" '= (list #$rocm-hip-runtime))
1621 1621
1622 ;; HACK: allow `rocm-hip-runtime' to wrap this program 1622 ;; HACK: allow other packages (eg: `rocm-hip-runtime' or
1623 ;; with its own `HIP_PATH'. 1623 ;; `rocm-toolchain') to wrap this program with its own
1624 ;; paths.
1624 (list "HIP_PATH" '= (list (string-append "${HIP_PATH:-" #$output "}"))) 1625 (list "HIP_PATH" '= (list (string-append "${HIP_PATH:-" #$output "}")))
1626 ;; XXX: `hipconfig' searches for `llc' which is provided
1627 ;; by `llvm-rocm', we cannot wrap that here since it
1628 ;; searches it from the `HIP_CLANG_PATH'. At this level
1629 ;; we don't have the complete `rocm-toolchain' which will
1630 ;; have the union of `llvm-rocm' and `clang-rocm', the
1631 ;; contents of both derivation outputs are expected to
1632 ;; live under `HIP_CLANG_PATH'.
1625 (list "HIP_CLANG_PATH" 1633 (list "HIP_CLANG_PATH"
1626 '= 1634 '=
1627 (list (string-append 1635 (list
1628 #$(this-package-input "clang-rocm") 1636 (string-append "${HIP_CLANG_PATH:-"
1629 "/bin"))) 1637 #$(file-append (this-package-input "clang-rocm")
1638 "/bin")
1639 "}")))
1630 (list "DEVICE_LIB_PATH" 1640 (list "DEVICE_LIB_PATH"
1631 '= 1641 '=
1632 (list (string-append 1642 (list
1633 #$(this-package-input "rocm-device-libs") 1643 (string-append "${DEVICE_LIB_PATH:-"
1634 "/amdgcn/bitcode"))) 1644 #$(file-append (this-package-input "rocm-device-libs")
1645 "/amdgcn/bitcode")
1646 "}")))
1635 1647
1636 ;; This is done in order to please check_config, which 1648 ;; This is done in order to please check_config, which
1637 ;; checks that HSA_PATH is in LD_LIBRARY_PATH 1649 ;; checks that HSA_PATH is in LD_LIBRARY_PATH