1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Add cilkplus: A set of compiler extensions from Intel for parallel computing

PR:		212317
Submitted by:	pfg (maintainer)
This commit is contained in:
Thomas Zander 2016-09-12 05:50:03 +00:00
parent 5b6f129cc2
commit 4577f1aba0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421909
6 changed files with 99 additions and 0 deletions

View File

@ -30,6 +30,7 @@
SUBDIR += cfortran
SUBDIR += chibi-scheme
SUBDIR += chicken
SUBDIR += cilkplus
SUBDIR += cint
SUBDIR += cjs
SUBDIR += clang-devel

27
lang/cilkplus/Makefile Normal file
View File

@ -0,0 +1,27 @@
# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= cilkplus
PORTVERSION= 20160603
CATEGORIES= lang devel
MASTER_SITES= https://www.cilkplus.org/sites/default/files/runtime_source/
PKGNAMESUFFIX= -rtl
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${HG_REVISION}
MAINTAINER= pfg@FreeBSD.org
COMMENT= Intel Cilk Runtime
LICENSE= BSD3CLAUSE
HG_REVISION= 004467
USE_GCC= 4.9+
ONLY_FOR_ARCHS= i386 amd64 sparc64
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-src-${HG_REVISION}
USES= tar:tgz cmake
.include <bsd.port.mk>

3
lang/cilkplus/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1472758796
SHA256 (cilkplus-rtl-004467.tgz) = e3cc83e42afe34c03da7938b79cdebc3b7f3237d3734a4d45c9ad91d7abe475e
SIZE (cilkplus-rtl-004467.tgz) = 447080

View File

@ -0,0 +1,18 @@
--- runtime/declare-alloca.h.orig 2016-06-01 19:59:38 UTC
+++ runtime/declare-alloca.h
@@ -53,10 +53,14 @@
* be wrong. Here's a variant on what's recommended in the autoconf doc
*/
+#include <sys/param.h>
+
#if defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
-#elif defined HAVE_ALLOCA_H
+#elif defined BSD4_4
+# include <stdlib.h>
+#elif defined HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
# define alloca __builtin_alloca

24
lang/cilkplus/pkg-descr Normal file
View File

@ -0,0 +1,24 @@
Intel Cilk Plus is an extension to the C and C++ languages to support data
and task parallelism.
Primary Features
High Performance:
* An efficient work-stealing scheduler provides nearly optimal
scheduling of parallel tasks
* Vector support unlocks the performance that's been hiding in your
processors
* Powerful hyperobjects allow for lock-free programming
Easy to Learn:
* Only 3 new keywords to implement task parallelism
* Serial semantics make understanding and debugging the parallel
program easier
*Array Notations provide a natural way to express data parallelism
Easy to Use:
* Automatic load balancing provides good behavior in multi-programmed
environments
* Existing algorithms easily adapted for parallelism with minimal
modification
* Supports both C and C++ programmers
WWW: https://www.cilkplus.org/

26
lang/cilkplus/pkg-plist Normal file
View File

@ -0,0 +1,26 @@
include/cilk/cilk.h
include/cilk/cilk_api.h
include/cilk/cilk_api_linux.h
include/cilk/cilk_stub.h
include/cilk/cilk_undocumented.h
include/cilk/common.h
include/cilk/holder.h
include/cilk/hyperobject_base.h
include/cilk/metaprogramming.h
include/cilk/reducer.h
include/cilk/reducer_file.h
include/cilk/reducer_list.h
include/cilk/reducer_max.h
include/cilk/reducer_min.h
include/cilk/reducer_min_max.h
include/cilk/reducer_opadd.h
include/cilk/reducer_opand.h
include/cilk/reducer_opmul.h
include/cilk/reducer_opor.h
include/cilk/reducer_opxor.h
include/cilk/reducer_ostream.h
include/cilk/reducer_string.h
include/cilk/reducer_vector.h
lib/libcilkrts.a
lib/libcilkrts.so
lib/libcilkrts.so.5