aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2013-06-28 00:11:43 +0200
committerAndreas Schäfer <gentryx@gmx.de>2013-06-28 00:11:43 +0200
commitac241c3a4b07ed1a92f12f076379d891de51a9f4 (patch)
tree2c386a96c462c5e01bb49cd66ae3423b335d2030
parentintegrate AMD OpenCL libs into Gentoo infrastructure (diff)
downloadsci-ac241c3a4b07ed1a92f12f076379d891de51a9f4.tar.gz
sci-ac241c3a4b07ed1a92f12f076379d891de51a9f4.tar.bz2
sci-ac241c3a4b07ed1a92f12f076379d891de51a9f4.zip
added ebuild for Intel OpenCL SDK 3.0.67279
-rw-r--r--dev-util/intel-ocl-sdk/Manifest1
-rw-r--r--dev-util/intel-ocl-sdk/intel-ocl-sdk-3.0.67279.ebuild59
-rw-r--r--dev-util/intel-ocl-sdk/metadata.xml14
3 files changed, 74 insertions, 0 deletions
diff --git a/dev-util/intel-ocl-sdk/Manifest b/dev-util/intel-ocl-sdk/Manifest
new file mode 100644
index 000000000..9f6de0566
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/Manifest
@@ -0,0 +1 @@
+DIST intel_sdk_for_ocl_applications_2013_xe_sdk_3.0.67279_x64.tgz 46570772 SHA256 72c84a29b36f55b0cf356b70d3530830360c1e49206ecec62aee665f8d4954f5 SHA512 5e569c16e23e21818549f87247a3de88f65c077e40113dd0e6eda445a56a7fa8e4bf08a2bb32e1087b9bb09af4b04f9fe63e383571b97e4ea50f2b1b165299ea WHIRLPOOL 4207135dfd83d0a2ab0a38f4eb133319ca7b9361722102ea0b2bf9e0650aeef86eb803b4cc841161a403d34babb1807d670f97d7f6b826a1a6be7c7c705665c3
diff --git a/dev-util/intel-ocl-sdk/intel-ocl-sdk-3.0.67279.ebuild b/dev-util/intel-ocl-sdk/intel-ocl-sdk-3.0.67279.ebuild
new file mode 100644
index 000000000..69f86f02b
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/intel-ocl-sdk-3.0.67279.ebuild
@@ -0,0 +1,59 @@
+# Copyright 2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit rpm multilib
+
+INTEL_CL=usr/$(get_libdir)/OpenCL/vendors/intel/
+
+DESCRIPTION="Intel's implementation of the OpenCL standard optimized for Intel processors"
+HOMEPAGE="http://software.intel.com/en-us/articles/opencl-sdk/"
+SRC_URI="http://registrationcenter.intel.com/irc_nas/3142/intel_sdk_for_ocl_applications_2013_xe_sdk_${PV}_x64.tgz"
+
+LICENSE="Intel-SDP"
+SLOT="0"
+IUSE="mic"
+KEYWORDS="~amd64"
+
+RDEPEND="app-admin/eselect-opencl
+ sys-process/numactl"
+
+RESTRICT="mirror strip"
+
+QA_EXECSTACK="
+ /opt/intel/opencl-1.2-${PV}/bin/KernelBuilder64.bin
+"
+QA_PREBUILT="
+ /opt/intel/opencl-1.2-${PV}/bin/KernelBuilder64.bin
+ /opt/intel/opencl-1.2-${PV}/bin/ioc64.bin
+ /opt/intel/opencl-1.2-${PV}/lib64/libcl_logger.so
+ /opt/intel/opencl-1.2-${PV}/lib64/libclang_compiler.so
+ /opt/intel/opencl-1.2-${PV}/lib64/libintelocl.so
+ /opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so.1.2
+ /opt/intel/opencl-1.2-${PV}/lib64/libtask_executor.so
+ /opt/intel/opencl-1.2-${PV}/lib64/libcpu_device.so
+"
+
+S="${WORKDIR}/intel_sdk_for_ocl_applications_2013_xe_sdk_${PV}_x64"
+
+src_unpack() {
+ default
+ cd "${S}"
+ rpm_unpack "./opencl-1.2-base-${PV}-1.x86_64.rpm" "./opencl-1.2-devel-${PV}-1.x86_64.rpm" "./opencl-1.2-intel-cpu-${PV}-1.x86_64.rpm" "./opencl-1.2-intel-devel-${PV}-1.x86_64.rpm"
+ use mic && rpm_unpack "./opencl-1.2-intel-mic-${PV}-1.x86_64.rpm"
+}
+
+src_install() {
+ doins -r etc
+ doins -r opt
+
+ dodir "${INTEL_CL}"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so" "${INTEL_CL}"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so.1" "${INTEL_CL}"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so.1.2" "${INTEL_CL}"
+
+ dodir "/etc/OpenCL/vendors"
+ dosym "/opt/intel/opencl-1.2-${PV}/etc/intel64.icd" /etc/OpenCL/vendors
+}
diff --git a/dev-util/intel-ocl-sdk/metadata.xml b/dev-util/intel-ocl-sdk/metadata.xml
new file mode 100644
index 000000000..1803fb535
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cluster</herd>
+ <longdescription>
+ Intel SDKs for OpenCL applications provide development environments including code samples, build and debug tools, and optimization tools for OpenCL on Intel architecture. Supports both Intel processors and Intel Xeon Phi coprocessors.
+ </longdescription>
+ <maintainer>
+ <email>gentryx@gmx.de</email>
+ </maintainer>
+ <use>
+ <flag name='mic'>Installs the OpenCL libraries for Xeon Phi (a.k.a. MIC)</flag>
+ </use>
+</pkgmetadata>