2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, coreutils }:
|
2016-04-15 21:37:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-15 15:28:33 +01:00
|
|
|
pname = "berkeley_upc";
|
|
|
|
version = "2.22.0";
|
2016-04-15 21:37:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-15 15:28:33 +01:00
|
|
|
url = "http://upc.lbl.gov/download/release/berkeley_upc-${version}.tar.gz";
|
2016-04-15 21:37:17 +01:00
|
|
|
sha256 = "041l215x8z1cvjcx7kwjdgiaf9rl2d778k6kiv8q09bc68nwd44m";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Used during the configure phase
|
|
|
|
ENVCMD = "${coreutils}/bin/env";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ coreutils ];
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2016-04-15 21:37:17 +01:00
|
|
|
description = "A compiler for the Berkely Unified Parallel C language";
|
|
|
|
longDescription = ''
|
|
|
|
Unified Parallel C (UPC) is an extension of the C programming language
|
|
|
|
designed for high performance computing on large-scale parallel
|
|
|
|
machines.The language provides a uniform programming model for both
|
|
|
|
shared and distributed memory hardware. The programmer is presented with
|
|
|
|
a single shared, partitioned address space, where variables may be
|
|
|
|
directly read and written by any processor, but each variable is
|
|
|
|
physically associated with a single processor. UPC uses a Single Program
|
|
|
|
Multiple Data (SPMD) model of computation in which the amount of
|
|
|
|
parallelism is fixed at program startup time, typically with a single
|
|
|
|
thread of execution per processor.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://upc.lbl.gov/";
|
2016-04-15 21:37:17 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = with platforms; [ linux ];
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|