2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-04-17 00:35:05 +00:00
|
|
|
, llvm_meta
|
2021-04-05 15:23:46 +00:00
|
|
|
, fetch
|
|
|
|
, cmake
|
|
|
|
, llvm
|
|
|
|
, perl
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openmp";
|
|
|
|
inherit version;
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
src = fetch pname "0z8n1wanby6aq3i7d91mgk72hb33zfl5blayk0a22cs7l8i706zb";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [ llvm ];
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
meta = llvm_meta // {
|
|
|
|
homepage = "https://openmp.llvm.org/";
|
|
|
|
description = "Support for the OpenMP language";
|
|
|
|
longDescription = ''
|
|
|
|
The OpenMP subproject of LLVM contains the components required to build an
|
|
|
|
executable OpenMP program that are outside the compiler itself.
|
|
|
|
Contains the code for the runtime library against which code compiled by
|
|
|
|
"clang -fopenmp" must be linked before it can run and the library that
|
|
|
|
supports offload to target devices.
|
|
|
|
'';
|
|
|
|
# "All of the code is dual licensed under the MIT license and the UIUC
|
|
|
|
# License (a BSD-like license)":
|
|
|
|
license = with lib.licenses; [ mit ncsa ];
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
}
|