[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: Add libomp.
From: |
guix-commits |
Subject: |
05/07: gnu: Add libomp. |
Date: |
Tue, 16 Apr 2019 11:33:16 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 698e91f0d09a7efb96ab0b7095d8c32868b4cdde
Author: Ludovic Courtès <address@hidden>
Date: Tue Apr 16 17:07:15 2019 +0200
gnu: Add libomp.
* gnu/packages/llvm.scm (libomp): New variable.
---
gnu/packages/llvm.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 3d46b02..53884da 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -40,7 +40,9 @@
#:use-module (gnu packages bootstrap) ;glibc-dynamic-linker
#:use-module (gnu packages compression)
#:use-module (gnu packages libffi)
+ #:use-module (gnu packages mpi)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages xml))
@@ -282,6 +284,43 @@ code analysis tools.")
use with Clang, targeting C++11, C++14 and above.")
(license license:expat)))
+(define-public libomp
+ (package
+ (name "libomp")
+ (version (package-version llvm))
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://releases.llvm.org/"
+ version "/openmp-" version
+ ".src.tar.xz"))
+ (sha256
+ (base32
+ "030dkg5cypd7j9hq0mcqb5gs31lxwmzfq52j81l7v9ldcy5bf5mz"))
+ (file-name (string-append "libomp-" version ".tar.xz"))))
+ (build-system cmake-build-system)
+ ;; XXX: Note this gets built with GCC because building with Clang itself
+ ;; fails (missing <atomic>, even when libcxx is added as an input.)
+ (arguments
+ '(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON"
+ "-DOPENMP_TEST_C_COMPILER=clang"
+ "-DOPENMP_TEST_CXX_COMPILER=clang++")
+ #:test-target "check-libomptarget"))
+ (native-inputs
+ `(("clang" ,clang)
+ ("llvm" ,llvm)
+ ("perl" ,perl)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("hwloc" ,hwloc "lib")))
+ (home-page "https://openmp.llvm.org")
+ (synopsis "OpenMP run-time support library")
+ (description
+ "This package provides the run-time support library developed by the LLVM
+project for the OpenMP multi-theaded programming extension. This package
+notably provides @file{libgomp.so}, which is has a binary interface compatible
+with that of libgomp, the GNU Offloading and Multi Processing Library.")
+ (license license:expat)))
+
(define-public clang-runtime
(clang-runtime-from-llvm
llvm
- branch master updated (b744862 -> b2c3640), guix-commits, 2019/04/16
- 02/07: derivations: Reduce 'valid-path?' RPCs in 'derivation-prerequisites-to-build'., guix-commits, 2019/04/16
- 03/07: store: Add "add-data-to-store-cache" profiling component., guix-commits, 2019/04/16
- 01/07: store: Memoize 'built-in-builders' call directly in <store-connection>., guix-commits, 2019/04/16
- 07/07: tests: Gracefully skip zlib test when zlib is missing., guix-commits, 2019/04/16
- 04/07: gnu: guile-charting: Install .go files in the right place., guix-commits, 2019/04/16
- 05/07: gnu: Add libomp.,
guix-commits <=
- 06/07: gnu: slurm: Configure with a "standard" syslogdir., guix-commits, 2019/04/16