mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 14:21:02 +02:00
nvidia-cuda-sdk: bumped to 3.0, added gcc 4.4 patch
This commit is contained in:
parent
d4822ff22c
commit
46fe9d31d5
3 changed files with 116 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
AUX 99cudasdk 67 RMD160 fc48d3d14e4bf8d9931466fa9b93dbc0cd8e4990 SHA1 66f378316b2577681201f4cdad50b7c2186f8885 SHA256 d2312e36071b1fe63289a4632b62fab7ebe91f8a48eb4550c5170389ab6fc69f
|
||||
AUX nvidia-cuda-sdk-gcc44.patch 773 RMD160 d7a77700f9dec97129154de4567ffe7e70e166d1 SHA1 de38ac238d8c7ca65c10676b182b1d39c6d99b22 SHA256 5feaae82fdeebd9f67e9b8a1351b39b61d963956df0abce6903f9c4c91c68b90
|
||||
DIST cudasdk_2.2_linux.run 55951278 RMD160 68c05b95b2a1f9230b9a076f1d9cf150d877d8b6 SHA1 72a6877c649a7444a853260d21387ed8a80b98c8 SHA256 1962a0a0795a8d2aef7c4e113319bd0bb376a7bb553405d94d731e594ef316fb
|
||||
DIST cudasdk_2.3_linux.run 66005555 RMD160 e6995f190663ec5826f986420f2c02920a484444 SHA1 6411d962d251cede1fac0eb6eaee001e00c053f4 SHA256 26ec80755b124a8484c93a6481a3c19f4fa7fdae96b087fd889346981c463873
|
||||
DIST gpucomputingsdk_3.0_linux.run 100306703 RMD160 5850ac6e4c80d5b8f01dfb1f4b34500bc3264650 SHA1 5e1e32a8d27249ea1a427256eaffee7c1f885d21 SHA256 7a3afdd52023cfa49bc67182729ce498cc85fa370dcd4bd33c299fb75945ec5e
|
||||
EBUILD nvidia-cuda-sdk-2.2-r1.ebuild 2110 RMD160 0e5728db169991c704a6033e5a3672406c6739ff SHA1 dfc39971e802af8154ed04d551cc322c1eb4be42 SHA256 01739d47178bc351b62257c2b4b065f59d834a559920df4a5b53870a3ac4004a
|
||||
EBUILD nvidia-cuda-sdk-2.3-r1.ebuild 2076 RMD160 3af209d0d3035bd176f3d71ec20dc589efe3382c SHA1 8f346d7b022f5f898c3d8bed302963b1a090756d SHA256 cb924578fdb59779cdb99d228f31493d735624530ce0436f6d42c1d713603ca5
|
||||
EBUILD nvidia-cuda-sdk-3.0-r1.ebuild 1705 RMD160 4eb001648159d0c71a5be4d6c2c6071849a02587 SHA1 e3d8cec0a40b76e5223daf5ffbd12c5af322c267 SHA256 b9ad5f81097fca407da713d7fa712a9bb812788e0f6407ce1036d980ba5edcda
|
||||
|
|
|
|||
20
dev-util/nvidia-cuda-sdk/files/nvidia-cuda-sdk-gcc44.patch
Normal file
20
dev-util/nvidia-cuda-sdk/files/nvidia-cuda-sdk-gcc44.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
diff -Nru a/sdk/C/common/common.mk b/sdk/C/common/common.mk
|
||||
--- a/sdk/C/common/common.mk 2010-03-03 14:14:46.000000000 +0100
|
||||
+++ b/sdk/C/common/common.mk 2010-06-16 18:50:21.126984135 +0200
|
||||
@@ -160,12 +160,12 @@
|
||||
BINSUBDIR := debug
|
||||
LIBSUFFIX := D
|
||||
else
|
||||
- COMMONFLAGS += -O2
|
||||
+ COMMONFLAGS +=
|
||||
BINSUBDIR := release
|
||||
LIBSUFFIX :=
|
||||
- NVCCFLAGS += --compiler-options -fno-strict-aliasing
|
||||
- CXXFLAGS += -fno-strict-aliasing
|
||||
- CFLAGS += -fno-strict-aliasing
|
||||
+ NVCCFLAGS += --compiler-options -fno-strict-aliasing --compiler-options -fno-inline -Xcompiler -D__builtin_stdarg_start=__builtin_va_start
|
||||
+ CXXFLAGS += -O2 -fno-strict-aliasing -fno-inline
|
||||
+ CFLAGS += -O2 -fno-strict-aliasing -fno-inline
|
||||
endif
|
||||
|
||||
# architecture flag for cubin build
|
||||
93
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.0-r1.ebuild
Normal file
93
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.0-r1.ebuild
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-3.0.ebuild,v 1.1 2010/03/21 13:52:56 spock Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="NVIDIA CUDA Software Development Kit"
|
||||
HOMEPAGE="http://developer.nvidia.com/cuda"
|
||||
|
||||
CUDA_V=${PV//_/-}
|
||||
DIR_V=${CUDA_V//./_}
|
||||
DIR_V=${DIR_V//beta/Beta}
|
||||
|
||||
SRC_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/sdk/gpucomputingsdk_${CUDA_V}_linux.run"
|
||||
LICENSE="CUDPP"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug +doc emulation +examples opencl +cuda"
|
||||
|
||||
RDEPEND=">=dev-util/nvidia-cuda-toolkit-3.0_beta1
|
||||
examples? ( !emulation? ( >=x11-drivers/nvidia-drivers-195.30 ) )
|
||||
virtual/glut"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
RESTRICT="binchecks"
|
||||
|
||||
src_unpack() {
|
||||
unpack_makeself
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/$PN-gcc44.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use examples; then
|
||||
return
|
||||
fi
|
||||
local myopts=""
|
||||
|
||||
if use emulation; then
|
||||
myopts="emu=1"
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
myopts="${myopts} dbg=1"
|
||||
fi
|
||||
|
||||
cd "${S}/sdk"
|
||||
|
||||
if use cuda; then
|
||||
cd C
|
||||
emake cuda-install=/opt/cuda ${myopts} || die
|
||||
cd ..
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
cd OpenCL
|
||||
emake || die
|
||||
cd ..
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}/sdk"
|
||||
|
||||
if ! use doc; then
|
||||
rm -rf doc ReleaseNotes.htm releaseNotesData
|
||||
fi
|
||||
|
||||
if ! use examples; then
|
||||
rm -rf bin tools
|
||||
fi
|
||||
|
||||
for f in $(find .); do
|
||||
local t="$(dirname ${f})"
|
||||
if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ -x "${f}" && ! -d "${f}" ]]; then
|
||||
exeinto "/opt/cuda/sdk/${t}"
|
||||
doexe "${f}"
|
||||
else
|
||||
insinto "/opt/cuda/sdk/${t}"
|
||||
doins "${f}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
Loading…
Reference in a new issue