1 |
commit: 5bfe56c98e18aa4b02e0d6b0bfb6a9110fc08338 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 10:29:04 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 10:29:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=5bfe56c9 |
7 |
|
8 |
dev-util/nvidia-cuda-toolkit: In main tree now |
9 |
|
10 |
dev-util/nvidia-cuda-toolkit/files/cuda-config.in | 28 ---- |
11 |
dev-util/nvidia-cuda-toolkit/metadata.xml | 17 --- |
12 |
.../nvidia-cuda-toolkit-8.0.27.ebuild | 153 --------------------- |
13 |
3 files changed, 198 deletions(-) |
14 |
|
15 |
diff --git a/dev-util/nvidia-cuda-toolkit/files/cuda-config.in b/dev-util/nvidia-cuda-toolkit/files/cuda-config.in |
16 |
deleted file mode 100644 |
17 |
index ca0d1d7..0000000 |
18 |
--- a/dev-util/nvidia-cuda-toolkit/files/cuda-config.in |
19 |
+++ /dev/null |
20 |
@@ -1,28 +0,0 @@ |
21 |
-#!/bin/bash |
22 |
- |
23 |
-SUPPORT_GCC_VERSIONS_BY_CUDA="CUDA_SUPPORTED_GCC" |
24 |
- |
25 |
-_print_help() { |
26 |
- cat <<- EOF |
27 |
- Usage: |
28 |
- $(basename $0) [options] |
29 |
- |
30 |
- -s | --supported Returns by current CUDA supported gcc versions |
31 |
- -h | --help Shows this help |
32 |
- EOF |
33 |
-} |
34 |
- |
35 |
-case ${1} in |
36 |
- -s|--supported) |
37 |
- echo "${SUPPORT_GCC_VERSIONS_BY_CUDA}" |
38 |
- exit 0 |
39 |
- ;; |
40 |
- -h|--help) |
41 |
- _print_help |
42 |
- exit -1 |
43 |
- ;; |
44 |
- *) |
45 |
- _print_help |
46 |
- exit 1 |
47 |
- ;; |
48 |
-esac |
49 |
|
50 |
diff --git a/dev-util/nvidia-cuda-toolkit/metadata.xml b/dev-util/nvidia-cuda-toolkit/metadata.xml |
51 |
deleted file mode 100644 |
52 |
index ad6a397..0000000 |
53 |
--- a/dev-util/nvidia-cuda-toolkit/metadata.xml |
54 |
+++ /dev/null |
55 |
@@ -1,17 +0,0 @@ |
56 |
-<?xml version="1.0" encoding="UTF-8"?> |
57 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
58 |
-<pkgmetadata> |
59 |
- <maintainer type="project"> |
60 |
- <email>sci@g.o</email> |
61 |
- <name>Gentoo Science Project</name> |
62 |
- </maintainer> |
63 |
- <use> |
64 |
- <flag name="profiler"> |
65 |
- Installs the NVIDIA CUDA visual profiler. |
66 |
- </flag> |
67 |
- <flag name="debugger"> |
68 |
- Installs the CUDA debugger. |
69 |
- </flag> |
70 |
- <flag name="eclipse">Install plugins for eclipse</flag> |
71 |
- </use> |
72 |
-</pkgmetadata> |
73 |
|
74 |
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.27.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.27.ebuild |
75 |
deleted file mode 100644 |
76 |
index 01bc627..0000000 |
77 |
--- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.27.ebuild |
78 |
+++ /dev/null |
79 |
@@ -1,153 +0,0 @@ |
80 |
-# Copyright 1999-2016 Gentoo Foundation |
81 |
-# Distributed under the terms of the GNU General Public License v2 |
82 |
-# $Id$ |
83 |
- |
84 |
-EAPI=6 |
85 |
- |
86 |
-inherit check-reqs cuda unpacker versionator |
87 |
- |
88 |
-MYD=$(get_version_component_range 1-2) |
89 |
- |
90 |
-DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)" |
91 |
-HOMEPAGE="https://developer.nvidia.com/cuda-downloads" |
92 |
-CURI="https://developer.nvidia.com/cuda-release-candidate-download" |
93 |
-SRC_URI="cuda_${PV}_linux.run" |
94 |
- |
95 |
-SLOT="0/${PV}" |
96 |
-LICENSE="NVIDIA-CUDA" |
97 |
-KEYWORDS="-* ~amd64 ~amd64-linux" |
98 |
-IUSE="debugger doc eclipse profiler" |
99 |
- |
100 |
-DEPEND="" |
101 |
-RDEPEND="${DEPEND} |
102 |
- >=sys-devel/gcc-4.7[cxx] |
103 |
- >=x11-drivers/nvidia-drivers-361.42[uvm] |
104 |
- debugger? ( |
105 |
- sys-libs/libtermcap-compat |
106 |
- sys-libs/ncurses[tinfo] |
107 |
- ) |
108 |
- eclipse? ( >=virtual/jre-1.6 ) |
109 |
- profiler? ( >=virtual/jre-1.6 )" |
110 |
-RESTRICT="fetch" |
111 |
- |
112 |
-pkg_nofetch() { |
113 |
- einfo "Please download the RHEL 7 \"runfile (local)\" installer" |
114 |
- einfo " - cuda_${P}_linux.run" |
115 |
- einfo "from ${CURI} and place it in ${DISTDIR}" |
116 |
-} |
117 |
- |
118 |
-S="${WORKDIR}" |
119 |
- |
120 |
-QA_PREBUILT="opt/cuda/*" |
121 |
- |
122 |
-CHECKREQS_DISK_BUILD="1500M" |
123 |
- |
124 |
-pkg_setup() { |
125 |
- # We don't like to run cuda_pkg_setup as it depends on us |
126 |
- check-reqs_pkg_setup |
127 |
-} |
128 |
- |
129 |
-src_unpack() { |
130 |
- unpacker |
131 |
- unpacker run_files/cuda-linux*.run |
132 |
-} |
133 |
- |
134 |
-src_prepare() { |
135 |
- local cuda_supported_gcc |
136 |
- |
137 |
- cuda_supported_gcc="4.7 4.8 4.9 5.3" |
138 |
- |
139 |
- sed \ |
140 |
- -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \ |
141 |
- "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die |
142 |
- |
143 |
- default |
144 |
-} |
145 |
- |
146 |
-src_install() { |
147 |
- local i j |
148 |
- local remove="doc jre run_files install-linux.pl " |
149 |
- local cudadir=/opt/cuda |
150 |
- local ecudadir="${EPREFIX}"${cudadir} |
151 |
- |
152 |
- # dodoc doc/*txt |
153 |
- if use doc; then |
154 |
- dodoc doc/pdf/* |
155 |
- dohtml -r doc/html/* |
156 |
- fi |
157 |
- |
158 |
- mv doc/man/man3/{,cuda-}deprecated.3 || die |
159 |
- doman doc/man/man*/* |
160 |
- |
161 |
- use debugger || remove+=" bin/cuda-gdb extras/Debugger extras/cuda-gdb-${PV}.src.tar.gz" |
162 |
- ( use profiler || use eclipse ) || remove+=" libnsight" |
163 |
- remove+=" cuda-installer.pl" |
164 |
- |
165 |
- if use profiler; then |
166 |
- # hack found in install-linux.pl |
167 |
- for j in nvvp nsight; do |
168 |
- cat > bin/${j} <<- EOF |
169 |
- #!${EPREFIX}/bin/sh |
170 |
- LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \ |
171 |
- UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \ |
172 |
- ${ecudadir}/lib${j}/${j} -vm ${EPREFIX}/usr/bin/java |
173 |
- EOF |
174 |
- chmod a+x bin/${j} |
175 |
- done |
176 |
- else |
177 |
- use eclipse || remove+=" libnvvp" |
178 |
- remove+=" extras/CUPTI" |
179 |
- fi |
180 |
- |
181 |
- for i in ${remove}; do |
182 |
- ebegin "Cleaning ${i}..." |
183 |
- if [[ -e ${i} ]]; then |
184 |
- find ${i} -delete || die |
185 |
- eend |
186 |
- else |
187 |
- eend $1 |
188 |
- fi |
189 |
- done |
190 |
- |
191 |
- ln -sf lib lib32 || die |
192 |
- |
193 |
- dodir ${cudadir} |
194 |
- mv * "${ED}"${cudadir} || die |
195 |
- |
196 |
- cat > "${T}"/99cuda <<- EOF |
197 |
- PATH=${ecudadir}/bin$(use profiler && echo ":${ecudadir}/libnvvp") |
198 |
- ROOTPATH=${ecudadir}/bin |
199 |
- LDPATH=${ecudadir}/lib64:${ecudadir}/lib:${ecudadir}/nvvm/lib64 |
200 |
- EOF |
201 |
- doenvd "${T}"/99cuda |
202 |
- |
203 |
- use profiler && \ |
204 |
- make_wrapper nvprof "${EPREFIX}"${cudadir}/bin/nvprof "." ${ecudadir}/lib64:${ecudadir}/lib |
205 |
- |
206 |
- dobin "${T}"/cuda-config |
207 |
-} |
208 |
- |
209 |
-pkg_postinst_check() { |
210 |
- local a b |
211 |
- a="$(version_sort $(cuda-config -s))"; a=( $a ) |
212 |
- # greatest supported version |
213 |
- b=${a[${#a[@]}-1]} |
214 |
- |
215 |
- # if gcc and if not gcc-version is at least greatesst supported |
216 |
- if [[ $(tc-getCC) == *gcc* ]] && \ |
217 |
- ! version_is_at_least $(gcc-version) ${b}; then |
218 |
- echo |
219 |
- ewarn "gcc >= ${b} will not work with CUDA" |
220 |
- ewarn "Make sure you set an earlier version of gcc with gcc-config" |
221 |
- ewarn "or append --compiler-bindir= pointing to a gcc bindir like" |
222 |
- ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}" |
223 |
- ewarn "to the nvcc compiler flags" |
224 |
- echo |
225 |
- fi |
226 |
-} |
227 |
- |
228 |
-pkg_postinst() { |
229 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
230 |
- pkg_postinst_check |
231 |
- fi |
232 |
-} |