pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/parallel



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Jun  9 15:11:46 UTC 2021

Modified Files:
        pkgsrc/parallel: Makefile
Added Files:
        pkgsrc/parallel/opencl-clang: DESCR Makefile PLIST buildlink3.mk
            distinfo

Log Message:
add parallel/opencl-clang

opencl-clang is a thin wrapper library around clang.

The library has a OpenCL-oriented API and is capable to compile OpenCL C
kernels to SPIR-V modules.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/parallel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/parallel/opencl-clang/DESCR \
    pkgsrc/parallel/opencl-clang/Makefile pkgsrc/parallel/opencl-clang/PLIST \
    pkgsrc/parallel/opencl-clang/buildlink3.mk \
    pkgsrc/parallel/opencl-clang/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/parallel/Makefile
diff -u pkgsrc/parallel/Makefile:1.30 pkgsrc/parallel/Makefile:1.31
--- pkgsrc/parallel/Makefile:1.30       Wed Jun  9 14:55:10 2021
+++ pkgsrc/parallel/Makefile    Wed Jun  9 15:11:46 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2021/06/09 14:55:10 nia Exp $
+# $NetBSD: Makefile,v 1.31 2021/06/09 15:11:46 nia Exp $
 #
 
 COMMENT=       Applications dealing with parallelism in computing
@@ -14,6 +14,7 @@ SUBDIR+=      hwloc
 SUBDIR+=       linda
 SUBDIR+=       lua-lanes
 SUBDIR+=       mpi-ch
+SUBDIR+=       opencl-clang
 SUBDIR+=       openmp
 SUBDIR+=       openmpi
 SUBDIR+=       openpa

Added files:

Index: pkgsrc/parallel/opencl-clang/DESCR
diff -u /dev/null pkgsrc/parallel/opencl-clang/DESCR:1.1
--- /dev/null   Wed Jun  9 15:11:46 2021
+++ pkgsrc/parallel/opencl-clang/DESCR  Wed Jun  9 15:11:46 2021
@@ -0,0 +1,4 @@
+opencl-clang is a thin wrapper library around clang.
+
+The library has a OpenCL-oriented API and is capable to compile OpenCL C
+kernels to SPIR-V modules.
Index: pkgsrc/parallel/opencl-clang/Makefile
diff -u /dev/null pkgsrc/parallel/opencl-clang/Makefile:1.1
--- /dev/null   Wed Jun  9 15:11:46 2021
+++ pkgsrc/parallel/opencl-clang/Makefile       Wed Jun  9 15:11:46 2021
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2021/06/09 15:11:46 nia Exp $
+
+DISTNAME=      opencl-clang-v10.0.0-1
+PKGNAME=       ${DISTNAME:S/-v/-/1:S/-1$/.1/g}
+CATEGORIES=    parallel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=intel/}
+GITHUB_PROJECT=        opencl-clang
+GITHUB_TAG=    ${DISTNAME:S/opencl-clang-//1}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/intel/opencl-clang
+COMMENT=       OpenCL-oriented wrapper library around clang
+LICENSE=       modified-bsd
+
+USE_CMAKE=     yes
+# there is a bug somewhere..
+# make[2]: Graph cycles through `cl_headers/module.modulemap'
+USE_TOOLS+=    gmake
+USE_LANGUAGES= c c++
+
+# C++14
+GCC_REQD+=     5
+
+.include "../../mk/bsd.prefs.mk"
+
+pre-configure:
+.if empty(PKGSRC_COMPILER:M*clang*)
+# XXX: When using GCC, pkgsrc provides 'clang' wrappers that are actually gcc.
+# XXX: This is copied from Firefox, which also needs this hack...
+       ${LN} -sf ${PREFIX}/bin/clang ${WRKDIR}/.cwrapper/bin/clang
+       ${LN} -sf ${PREFIX}/bin/clang++ ${WRKDIR}/.cwrapper/bin/clang++
+       ${LN} -sf ${PREFIX}/bin/clang-cpp ${WRKDIR}/.cwrapper/bin/clang-cpp
+.endif
+
+.include "../../parallel/spirv-llvm-translator/buildlink3.mk"
+.include "../../lang/clang/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/parallel/opencl-clang/PLIST
diff -u /dev/null pkgsrc/parallel/opencl-clang/PLIST:1.1
--- /dev/null   Wed Jun  9 15:11:46 2021
+++ pkgsrc/parallel/opencl-clang/PLIST  Wed Jun  9 15:11:46 2021
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2021/06/09 15:11:46 nia Exp $
+include/cclang/common_clang.h
+lib/libopencl-clang.so
+lib/libopencl-clang.so.10
Index: pkgsrc/parallel/opencl-clang/buildlink3.mk
diff -u /dev/null pkgsrc/parallel/opencl-clang/buildlink3.mk:1.1
--- /dev/null   Wed Jun  9 15:11:46 2021
+++ pkgsrc/parallel/opencl-clang/buildlink3.mk  Wed Jun  9 15:11:46 2021
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/06/09 15:11:46 nia Exp $
+
+BUILDLINK_TREE+=       opencl-clang
+
+.if !defined(OPENCL_CLANG_BUILDLINK3_MK)
+OPENCL_CLANG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.opencl-clang+=   opencl-clang>=10.0.0.1
+BUILDLINK_PKGSRCDIR.opencl-clang?=     ../../parallel/opencl-clang
+
+.include "../../parallel/spirv-llvm-translator/buildlink3.mk"
+.include "../../lang/clang/buildlink3.mk"
+.endif # OPENCL_CLANG_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -opencl-clang
Index: pkgsrc/parallel/opencl-clang/distinfo
diff -u /dev/null pkgsrc/parallel/opencl-clang/distinfo:1.1
--- /dev/null   Wed Jun  9 15:11:46 2021
+++ pkgsrc/parallel/opencl-clang/distinfo       Wed Jun  9 15:11:46 2021
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/06/09 15:11:46 nia Exp $
+
+SHA1 (opencl-clang-v10.0.0-1.tar.gz) = 7571470bd2248cf038cddec14c4e787066ac3254
+RMD160 (opencl-clang-v10.0.0-1.tar.gz) = 39f02ad0a788167e4ecd1f17d6588f08fb6b2927
+SHA512 (opencl-clang-v10.0.0-1.tar.gz) = 406e27d90ae26a2f8ade04172bf680f8786011c7e8357a40b15c8bbfd933d0f1c5e0c114e371036318439fcab999ec5f141dab2df4b498eb9d2548bf175f8502
+Size (opencl-clang-v10.0.0-1.tar.gz) = 23549 bytes



Home | Main Index | Thread Index | Old Index