mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu: fenics: Reduce build time.
* gnu/packages/simulation.scm (fenics)[phases]{check}: Don't run the test suite twice; run it once in parallel mode. Honor the number of jobs specified via --cores, capped to 3 for memory reasons. Do not check the demos.
This commit is contained in:
parent
8d7dfa1914
commit
3d7917f042
1 changed files with 7 additions and 11 deletions
|
@ -684,17 +684,13 @@ (define-public fenics
|
|||
(with-directory-excursion "test"
|
||||
;; Note: The test test_snes_set_from_options() in the file
|
||||
;; unit/nls/test_PETScSNES_solver.py fails and is ignored.
|
||||
(and (invoke "py.test" "unit" "--ignore"
|
||||
"unit/nls/test_PETScSNES_solver.py")
|
||||
(invoke "mpirun" "-np" "3" "python" "-B" "-m"
|
||||
"pytest" "unit" "--ignore"
|
||||
"unit/nls/test_PETScSNES_solver.py")))
|
||||
(with-directory-excursion "demo"
|
||||
;; Check demos.
|
||||
(invoke "python" "generate-demo-files.py")
|
||||
(and (invoke "python" "-m" "pytest" "-v" "test.py")
|
||||
(invoke "python" "-m" "pytest" "-v" "test.py"
|
||||
"--mpiexec=mpiexec" "--num-proc=3")))
|
||||
;; Limit the number of jobs to 3 as 500 MiB of memory is used
|
||||
;; per process.
|
||||
(invoke "mpirun" "-np" (number->string
|
||||
(min 3 (parallel-job-count)))
|
||||
"python" "-B" "-m"
|
||||
"pytest" "unit" "--ignore"
|
||||
"unit/nls/test_PETScSNES_solver.py"))
|
||||
#t))
|
||||
(add-after 'install 'install-demo-files
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue