From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0A1E4138A1C for ; Wed, 19 Nov 2014 08:30:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2544EE089D; Wed, 19 Nov 2014 08:30:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 96DAEE089D for ; Wed, 19 Nov 2014 08:30:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5097834042E for ; Wed, 19 Nov 2014 08:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC0FCA72C for ; Wed, 19 Nov 2014 08:30:48 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1416313003.e757802cb8a7292e98da694ff4943eb315e7ee9a.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: licenses/, dev-util/nvidia-cuda-gdk/, dev-util/nvidia-cuda-gdk/files/ X-VCS-Repository: proj/sci X-VCS-Files: dev-util/nvidia-cuda-gdk/ChangeLog dev-util/nvidia-cuda-gdk/files/nvidia-healthmon dev-util/nvidia-cuda-gdk/metadata.xml dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild licenses/NVIDIA-gdk X-VCS-Directories: licenses/ dev-util/nvidia-cuda-gdk/ dev-util/nvidia-cuda-gdk/files/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: e757802cb8a7292e98da694ff4943eb315e7ee9a X-VCS-Branch: master Date: Wed, 19 Nov 2014 08:30:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 44297c59-2f7b-4f4e-b428-97f0b18e3ca4 X-Archives-Hash: c0999e01fbefc5093ec359bf249ebf8a commit: e757802cb8a7292e98da694ff4943eb315e7ee9a Author: Marius Brehler linux sungazer de> AuthorDate: Tue Nov 18 12:16:43 2014 +0000 Commit: Justin Lecher gentoo org> CommitDate: Tue Nov 18 12:16:43 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e757802c New ebuild: nvidia-cuda-gdk --- dev-util/nvidia-cuda-gdk/ChangeLog | 9 ++ dev-util/nvidia-cuda-gdk/files/nvidia-healthmon | 9 ++ dev-util/nvidia-cuda-gdk/metadata.xml | 17 ++++ .../nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild | 113 +++++++++++++++++++++ licenses/NVIDIA-gdk | 32 ++++++ 5 files changed, 180 insertions(+) diff --git a/dev-util/nvidia-cuda-gdk/ChangeLog b/dev-util/nvidia-cuda-gdk/ChangeLog new file mode 100644 index 0000000..6e289bb --- /dev/null +++ b/dev-util/nvidia-cuda-gdk/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-util/nvidia-cuda-gdk +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*nvidia-cuda-gdk-340.29 (18 Nov 2014) + + 18 Nov 2014; Marius Brehler + +files/nvidia-healthmon, +metadata.xml, +nvidia-cuda-gdk-340.29.ebuild: + Inital commit. diff --git a/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon b/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon new file mode 100644 index 0000000..007c9dc --- /dev/null +++ b/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon @@ -0,0 +1,9 @@ +#!/bin/bash + +while getopts "c" opt +do + case $opt in + c) exec /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon "$@";; + *) exec /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon -c /etc/nvidia-healtmon/nvidia-healtmon.conf "$@";; + esac +done \ No newline at end of file diff --git a/dev-util/nvidia-cuda-gdk/metadata.xml b/dev-util/nvidia-cuda-gdk/metadata.xml new file mode 100644 index 0000000..d8e7e3d --- /dev/null +++ b/dev-util/nvidia-cuda-gdk/metadata.xml @@ -0,0 +1,17 @@ + + + + sci + + marbre@linux.sungazer.de + Marius Brehler + + + + Install nvidia-healthmon. + + + Install the NVIDIA Managment Library. + + + diff --git a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild new file mode 100644 index 0000000..f5f50f8 --- /dev/null +++ b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils toolchain-funcs portability unpacker versionator + +MYD=$(get_version_component_range 1)_$(get_version_component_range 2) + +DESCRIPTION="NVIDIA GPU Deployment Kit" +HOMEPAGE="https://developer.nvidia.com/gpu-deployment-kit" +CURI="http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers" +SRC_URI=" + amd64? ( ${CURI}/cuda_${MYD}_gdk_linux_64.run ) + x86? ( ${CURI}/cuda_${MYD}_gdk_linux_32.run )" + +LICENSE="NVIDIA-gdk" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+healthmon +nvml +doc examples" + +RDEPEND=" +>=dev-util/nvidia-cuda-toolkit-6.5 +examples? ( >=x11-drivers/nvidia-drivers-340.32[uvm] ) +media-libs/freeglut +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/payload" + +RESTRICT="binchecks" + +src_unpack() { + unpacker +} + +src_compile() { + use examples || return + cd "${S}"/nvml/example + emake || die +} + +src_install() { + cd "${S}/" + + local i j f t + + if use doc; then + if use healthmon ; then + ebegin "Installing healthmon docs..." + doman nvidia-healthmon/docs/man/man8/nvidia-healthmon.8 + cd "${S}/nvidia-healthmon/nvidia-healthmon-amd64-${PV}" + treecopy $(find -type f \( -name README.txt -name COPYING.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ + docompress -x $(find "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ -type f -name readme.txt | sed -e "s:${ED}::") + cd "${S}/" + eend + fi + + if use healthmon ; then + ebegin "Installing nvml docs..." + doman nvml/doc/man/man3/*.3 + cd "${S}/nvml/" + treecopy $(find -type f \( -name README.txt -name COPYRIGHT.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/nvml/ + docompress -x $(find "${ED}"/usr/share/doc/${PF}/nvml/ -type f -name readme.txt | sed -e "s:${ED}::") + cd "${S}/" + eend + fi + fi + + ebegin "Cleaning before installation..." + find -type f \( -name "*.o" -o -name "*.pdf" -o -name "*.txt" -o -name "*.3" \) -delete || die + eend + + if use healthmon; then + ebegin "Installing nvidia-healthmon" + exeinto "/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/" + doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/gpu_rdma_bw + doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/ibv_rdma_bw + doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/rdma_test.sh + exeinto "/opt/cuda/gdk/nvidia-healthmon/" + doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}"/nvidia-healthmon + insinto "/etc/nvidia-healthmon/" + doins "nvidia-healthmon/nvidia-healthmon-amd64-${PV}"/nvidia-healthmon.conf + + # install launch script + exeinto /opt/bin + doexe "${FILESDIR}"/nvidia-healthmon + fi + + if use nvml; then + ebegin "Installing nvml" + cd "${S}/nvml" + for f in $(find .); do + local t="$(dirname ${f})" + if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then + continue + fi + + if [[ ! -d "${f}" ]]; then + if [[ -x "${f}" ]]; then + exeinto "/opt/cuda/gdk/nvml/${t}" + doexe "${f}" + else + insinto "/opt/cuda/gdk/nvml/${t}" + doins "${f}" + fi + fi + done + cd "${S}/" + fi + +} diff --git a/licenses/NVIDIA-gdk b/licenses/NVIDIA-gdk new file mode 100644 index 0000000..769c505 --- /dev/null +++ b/licenses/NVIDIA-gdk @@ -0,0 +1,32 @@ +Copyright 1993-2014 NVIDIA Corporation. All rights reserved. + +NOTICE TO USER: + +This source code is subject to NVIDIA ownership rights under U.S. and +international Copyright laws. Users and possessors of this source code +are hereby granted a nonexclusive, royalty-free license to use this code +in individual and commercial software. + +NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE +CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR +IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. +IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, +OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE +OR PERFORMANCE OF THIS SOURCE CODE. + +U.S. Government End Users. This source code is a "commercial item" as +that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of +"commercial computer software" and "commercial computer software +documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) +and is provided to the U.S. Government only as a commercial end item. +Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through +227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the +source code with only those rights set forth herein. + +Any use of this source code in individual and commercial software must +include, in the user documentation and internal comments to the code, +the above Disclaimer and U.S. Government End Users Notice.