mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: tensile: Switch to pyproject.
* gnu/packages/rocm-libs.scm (tensile): [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Set them. <#:phases>: Drop 'check phase replacement. Change-Id: Ie80b85ae5d79098b964012a0daed65935ccd8337 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
92bdd089fd
commit
f6a71c2683
@@ -17,7 +17,7 @@
|
||||
|
||||
(define-module (gnu packages rocm-libs)
|
||||
#:use-module (guix build-system cmake)
|
||||
#:use-module (guix build-system python)
|
||||
#:use-module (guix build-system pyproject)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
@@ -273,9 +273,11 @@ configurations deterministically based on compute and memory latencies.")
|
||||
"1wff80vd1x1vcg3n56qlc9hdabk9svz6qk0sznycjwzbsmpfb0mr"))
|
||||
(patches
|
||||
(search-patches "tensile-copy-if-not-exist.patch"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "Tensile/Tests" "-m" "unit" "-k" "not test_prepAsm")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-rocm-directory
|
||||
@@ -295,12 +297,7 @@ configurations deterministically based on compute and memory latencies.")
|
||||
"availableArchs = ['"
|
||||
(string-join (current-amd-gpu-targets) "', '") "']")))
|
||||
(setenv "TENSILE_ROCM_ASSEMBLER_PATH"
|
||||
(string-append (which "clang")))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "pytest" "-vv" "Tensile/Tests" "-m" "unit"
|
||||
"-k" "not test_prepAsm")))))))
|
||||
(string-append (which "clang"))))))))
|
||||
(native-inputs
|
||||
(list python-filelock
|
||||
python-pandas
|
||||
|
||||
Reference in New Issue
Block a user