summaryrefslogtreecommitdiff
path: root/gnu/packages/machine-learning.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r--gnu/packages/machine-learning.scm17
1 files changed, 12 insertions, 5 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 7ad25e80c6..b2ce0a39e0 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -4823,7 +4823,6 @@ the tensors contained therein.")
(build-system cmake-build-system)
(arguments
(list
- #:test-target "cpptest"
#:configure-flags
#~(list "-DUSE_OPENCL=ON"
"-DUSE_VULKAN=ON"
@@ -4843,11 +4842,11 @@ the tensors contained therein.")
#:phases
#~(modify-phases %standard-phases
(replace 'check
- (lambda* (#:key source test-target tests? #:allow-other-keys)
+ (lambda* (#:key source tests? #:allow-other-keys)
(when tests?
(begin
(invoke "make" "-j"
- (number->string (parallel-job-count)) test-target)
+ (number->string (parallel-job-count)) "cpptest")
;; Disable below the actual run of the tests because
;; several fail due to platform variations (for example,
;; fp16 tests fail because not supported on CPUs).
@@ -6315,7 +6314,6 @@ Jax, PyTorch and TensorFlow — with a seamless integration between them.")
(build-system cmake-build-system)
(arguments
(list
- #:test-target "ctranslate2_test"
;; XXX: mkl and openblas seem incompatible.
#:configure-flags `(list "-DBUILD_TESTS=ON"
"-DWITH_ACCELERATE=OFF"
@@ -6324,7 +6322,16 @@ Jax, PyTorch and TensorFlow — with a seamless integration between them.")
"-DWITH_CUDA=OFF"
"-DWITH_CUDNN=OFF"
"-DWITH_MKL=OFF"
- "-DWITH_OPENBLAS=ON")))
+ "-DWITH_OPENBLAS=ON")
+ #:modules '((guix build cmake-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:rest args)
+ (apply (assoc-ref gnu:%standard-phases 'check)
+ #:test-target "ctranslate2_test" args))))))
(native-inputs (list libomp
cxxopts
spdlog