[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: ceres: Update to 2.0.0.
From: |
guix-commits |
Subject: |
08/08: gnu: ceres: Update to 2.0.0. |
Date: |
Tue, 11 Jan 2022 14:35:57 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit cd68fc1e42f3f233ba5ccfd1323e46509a970d6b
Author: Felix Gruber <felgru@posteo.net>
AuthorDate: Fri Jan 7 22:02:17 2022 +0000
gnu: ceres: Update to 2.0.0.
* gnu/packages/maths.scm (ceres): Update to 2.0.0.
[inputs]: Use simplified format.
(ceres-solver-benchmarks)[phases]: Add schur_eliminator_benchmark.
Replace autodiff_cost_function_benchmark with new autodiff_benchmarks.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/maths.scm | 41 ++++++++++++++++++++++-------------------
1 file changed, 22 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index f4dba92c11..ceafa4f7c8 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2437,7 +2437,7 @@ satisfiability checking (SAT).")
(define-public ceres
(package
(name "ceres-solver")
- (version "1.14.0")
+ (version "2.0.0")
(home-page "http://ceres-solver.org/")
(source (origin
(method url-fetch)
@@ -2445,7 +2445,7 @@ satisfiability checking (SAT).")
version ".tar.gz"))
(sha256
(base32
- "13lfxy8x58w8vprr0nkbzziaijlh0vvqshgahvcgw0mrqdgh0i27"))))
+ "00vng9vnmdb1qga01m0why90m0041w7bn6kxa2h4m26aflfqla8h"))))
(build-system cmake-build-system)
(arguments
;; TODO: Build HTML user documentation and install separately.
@@ -2464,11 +2464,11 @@ satisfiability checking (SAT).")
(propagated-inputs
(list glog)) ;for #include <glog/glog.h>
(inputs
- `(("eigen" ,eigen)
- ("blas" ,openblas)
- ("lapack" ,lapack)
- ("suitesparse" ,suitesparse)
- ("gflags" ,gflags)))
+ (list eigen
+ openblas
+ lapack
+ suitesparse
+ gflags))
(synopsis "C++ library for solving large optimization problems")
(description
"Ceres Solver is a C++ library for modeling and solving large,
@@ -2506,21 +2506,24 @@ can solve two kinds of problems:
"pkg-config" "eigen3"
"--cflags"))))
- (define (compile-file file)
- (let ((source (string-append file ".cc")))
- (format #t "building '~a'...~%" file)
- (apply invoke "c++" "-fopenmp" "-O2" "-g"
"-DNDEBUG"
- source "-lceres" "-lbenchmark" "-lglog"
- "-pthread"
- "-o" (string-append bin "/" file)
- "-I" ".." flags)))
+ (define (compile-file top-dir)
+ (lambda (file)
+ (let ((source (string-append file ".cc")))
+ (format #t "building '~a'...~%" file)
+ (apply invoke "c++" "-fopenmp" "-O2" "-g"
"-DNDEBUG"
+ source "-lceres" "-lbenchmark" "-lglog"
+ "-pthread"
+ "-o" (string-append bin "/" file)
+ "-I" top-dir flags))))
(mkdir-p bin)
(with-directory-excursion "internal/ceres"
- (for-each compile-file
- '("small_blas_gemm_benchmark"
- "small_blas_gemv_benchmark"
- "autodiff_cost_function_benchmark"))))))
+ (for-each (compile-file "..")
+ '("schur_eliminator_benchmark"
+ "small_blas_gemm_benchmark"
+ "small_blas_gemv_benchmark"))
+ (with-directory-excursion "autodiff_benchmarks"
+ ((compile-file "../..") "autodiff_benchmarks"))))))
(delete 'check)
(delete 'install))))
(inputs (modify-inputs (package-inputs ceres)
- branch master updated (10b2ad7dbf -> cd68fc1e42), guix-commits, 2022/01/11
- 01/08: doc: Fix typo in 'setuid-program' example., guix-commits, 2022/01/11
- 03/08: shell: Cache profiles even when using package specs., guix-commits, 2022/01/11
- 04/08: ui: 'package->recutils' can split the "system:" line., guix-commits, 2022/01/11
- 07/08: gnu: poetry: Fix package inputs., guix-commits, 2022/01/11
- 08/08: gnu: ceres: Update to 2.0.0.,
guix-commits <=
- 02/08: build-system: Pass #:make-dynamic-linker-cache? #f when cross-compiling., guix-commits, 2022/01/11
- 05/08: gnu: python-os-testr: Add python-testrepository to inputs., guix-commits, 2022/01/11
- 06/08: gnu: python-msgpack-transitional: Fix broken tests., guix-commits, 2022/01/11