mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-02 19:50:51 +02:00
nvidia-cuda-sdk: disable parallel make, add stub for 4.2
This commit is contained in:
parent
70a191b6f6
commit
9a47a928ed
3 changed files with 97 additions and 3 deletions
|
|
@ -1,2 +1,4 @@
|
|||
DIST gpucomputingsdk_4.1.28_linux.run 155378846 RMD160 e2ddaec1f75d6620013ad8f076436f171d25df45 SHA1 3f533bf68fd72dd915c0f7cb115992a4dca67eb1 SHA256 1d6c6b6b25ae70d7a725cb89a06644b7101a63c1508bce69daacd32b32b0f6f9
|
||||
EBUILD nvidia-cuda-sdk-4.1.ebuild 1973 RMD160 09d59e40b13e9f96ded79b57381f0ebd293c6459 SHA1 3434c25bc1c76f1c6d5e7a812569977689760abc SHA256 9821d4f27522b01ab4e50160011733bc330682aed6171cf15bf09839e69450b2
|
||||
DIST gpucomputingsdk_4.2.9_linux.run 152436489 RMD160 7b0cbe3565d0abbb29bdd3d1f5fe49c273d46f4f SHA1 ba39a23a43dca4a64f07c7bfe574e9c3398abd83 SHA256 b6a53afcf8f8422b5075aa37cec6730b0b9896d50867ee9105da05d62e95b8bb
|
||||
EBUILD nvidia-cuda-sdk-4.1.ebuild 1981 RMD160 8501b809e20ed8650c77fd3f4e3fae99f22b09cb SHA1 d9bd1c551efa19fdcf17b6f16c44b2cdca77d502 SHA256 2f471042c79f9287c21f98a3783ea76c1715277ad49d1622ca2d95c33e44560a
|
||||
EBUILD nvidia-cuda-sdk-4.2.ebuild 1963 RMD160 9150b27d1c83d9518f5c86a7e0b885b91703d315 SHA1 f1f36c3d6b90d88603362dc754d1017c6bef7323 SHA256 17330ed5948ab5a5caaa54c123782c0e0a3dd0674104a13949d1d02f9a7462aa
|
||||
|
|
|
|||
|
|
@ -51,13 +51,13 @@ src_compile() {
|
|||
|
||||
if use cuda; then
|
||||
cd C
|
||||
emake cuda-install=/opt/cuda ${myopts} || die
|
||||
emake -j1 cuda-install=/opt/cuda ${myopts} || die
|
||||
cd ..
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
cd OpenCL
|
||||
emake || die
|
||||
emake -j1 || die
|
||||
cd ..
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
92
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild
Normal file
92
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
# Copyright 1999-2012 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-4.1.ebuild,v 1.3 2012/02/05 16:39:02 spock Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit unpacker 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}/rel/sdk/gpucomputingsdk_${CUDA_V}.9_linux.run"
|
||||
LICENSE="CUDPP"
|
||||
SLOT="0"
|
||||
KEYWORDS="-*"
|
||||
IUSE="debug +doc +examples opencl pentoo +cuda"
|
||||
|
||||
RDEPEND=">=dev-util/nvidia-cuda-toolkit-4.1
|
||||
examples? ( >=x11-drivers/nvidia-drivers-260.19.21 )
|
||||
media-libs/freeglut"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
RESTRICT="binchecks"
|
||||
|
||||
pkg_setup() {
|
||||
if use cuda || use opencl && [ $(gcc-major-version) -lt 4 -o $(gcc-minor-version) -lt 5 ]; then
|
||||
eerror "This package requires >=sys-devel/gcc-4.5 to build sucessfully."
|
||||
eerror "Please use gcc-config to switch to a compatible GCC version."
|
||||
die ">=sys-devel/gcc-4.4 required"
|
||||
fi
|
||||
echo $(gcc-major-version) $(gcc-minor-version)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use examples && ! use pentoo ; then
|
||||
return
|
||||
fi
|
||||
local myopts=""
|
||||
|
||||
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 *.txt doc */doc */Samples.htm */releaseNotesData
|
||||
fi
|
||||
|
||||
if ! use examples; then
|
||||
rm -rf bin */bin */tools
|
||||
fi
|
||||
|
||||
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/sdk/${t}"
|
||||
doexe "${f}"
|
||||
else
|
||||
insinto "/opt/cuda/sdk/${t}"
|
||||
doins "${f}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
Loading…
Reference in a new issue