me
/
guix
Archived
1
0
Fork 0

gnu: pocl: Update to 3.1

* gnu/packages/opencl.scm (pocl): Update to 3.1
[native-inputs]: Add python-3
[arguments]: Update RPATH. Skip failed tests on aarch64

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Andy Tai 2023-03-13 10:34:08 -07:00 committed by Ludovic Courtès
parent 210c929c26
commit 6a23ef814a
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 44 additions and 29 deletions

View File

@ -279,38 +279,53 @@ back-end for the LLVM compiler framework.")
(define-public pocl (define-public pocl
(package (package
(name "pocl") (name "pocl")
(version "1.4") (version "3.1")
(source (source (origin
(origin (method git-fetch)
(method git-fetch) (uri (git-reference
(uri (git-reference (url "https://github.com/pocl/pocl")
(url "https://github.com/pocl/pocl") (commit (string-append "v" version))))
(commit (string-append "v" version)))) (sha256
(sha256 (base32
(base32 "1c4y69zks6hkq5fqh9waxgb8g4ka7y6h3vacmsm720kba0h57g8a")) "1pw4q0hi5ynx34fvzryravz3jbh89f9cg60fkjj77sxh9xw8phdd"))
(file-name (git-file-name name version)))) (file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet
'(begin
;; "kernel/test_printf_vectors" and
;; "kernel/test_printf_vectors_ulongn"
;; fail on aarch5 and likely other platforms
;; as commented in CMakeLists.txt
;; thus disable the block in CMakeList.txt adding
;; these two tests
(substitute* "tests/kernel/CMakeLists.txt"
(("NOT ENABLE_POCL_FLOAT_CONVERSION") "false"))))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (native-inputs (list libltdl pkg-config python-3))
(list libltdl pkg-config)) (inputs (list clang-15 llvm-15
(inputs `(,hwloc-2 "lib") opencl-icd-loader))
(list clang-9 llvm-9 `(,hwloc-2 "lib") opencl-icd-loader))
(arguments (arguments
`(#:configure-flags `(#:configure-flags (let* ((libdir (string-append (assoc-ref %outputs
(list "-DENABLE_ICD=ON" "out")
"-DENABLE_TESTSUITES=ON" "/lib")))
;; We are not developers, don't run conformance suite. (list "-DENABLE_ICD=ON"
"-DENABLE_CONFORMANCE=OFF" "-DENABLE_TESTSUITES=ON"
(string-append "-DEXTRA_HOST_LD_FLAGS=-L" ;; We are not developers, don't run conformance suite.
(assoc-ref %build-inputs "libc") "/lib")) "-DENABLE_CONFORMANCE=OFF"
#:phases (string-append "-DEXTRA_HOST_LD_FLAGS=-L"
(modify-phases %standard-phases (assoc-ref %build-inputs
(add-before 'check 'set-HOME "libc") "/lib")
(lambda _ ;; We need both libdir and libdir/pocl in RUNPATH.
(setenv "HOME" "/tmp") (string-append "-DCMAKE_INSTALL_RPATH="
libdir ";" libdir "/pocl")))
#:phases (modify-phases %standard-phases
(add-before 'check 'set-HOME
(lambda _
(setenv "HOME" "/tmp")
;; Since 2.9.0, hwloc fails when /sys is missing, so provide a ;; Since 2.9.0, hwloc fails when /sys is missing, so provide a
;; fake topology. ;; fake topology.
(setenv "HWLOC_SYNTHETIC" "4")))))) (setenv "HWLOC_SYNTHETIC" "4"))))))
(home-page "http://portablecl.org/") (home-page "http://portablecl.org/")
(synopsis "Portable Computing Language (pocl), an OpenCL implementation") (synopsis "Portable Computing Language (pocl), an OpenCL implementation")
(description (description