Gentoo Archives: gentoo-dev

From: "C. Bergström" <cbergstrom@×××××××××.com>
To: gentoo-dev@l.g.o
Cc: "Rick \\\"Zero_Chaos\\\" Farina" <zerochaos@g.o>
Subject: Re: [gentoo-dev] New eclass cuda.eclass
Date: Mon, 26 Nov 2012 00:28:52
Message-Id: 50B2B737.5020501@pathscale.com
In Reply to: Re: [gentoo-dev] New eclass cuda.eclass by "Rick \\\"Zero_Chaos\\\" Farina"
1 On 11/26/12 12:59 AM, Rick "Zero_Chaos" Farina wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA1
4 >
5 > On 11/25/2012 11:47 AM, Justin wrote:
6 >> Hi,
7 >>
8 >> I would like to introduce a new eclass for packages using the nvidia
9 >> cuda compiler suite. Currently the eclass simply sanitize the NVCCFLAGS.
10 >> May be extended in the future.
11 >>
12 >> Two problems come up with using nvcc:
13 >>
14 >> * Each version only supports a limited number of gcc versions. Therefore
15 >> we need to pass the path to a supported gcc bindir
16 >>
17 >> * nvcc calls CXX but doesn't pass CXXFLAGS on.
18 I don't know if this is helpful feedback, but it would be great if our
19 "CUDA" compiler was also detected in your eclass.
20
21 Notable differences : Probably a lot faster compilation times (needs
22 benchmarking), no external userland dependencies (gcc or nvidia), we
23 don't support nvcc flags and we have a driver just for the CUDA language
24
25 Example:
26 pathcu deadbeef.cu
27 ./a.out
28
29 (Unfortunately our recent nightly builds started to do a license check,
30 but any interested open source dev just ping me to get setup)
31
32 To validate simple things you could use an older nightly
33 http://c591116.r16.cf2.rackcdn.com/enzo/nightly/Linux/enzo-2012-11-18-installer.run
34
35 chmod +x enzo-2012-11-18-installer.run ; ./enzo-2012-11-18-installer.run
36 --mode unattended # --prefix /opt/foobar
37
38 ./C

Replies

Subject Author
Re: [gentoo-dev] New eclass cuda.eclass justin <jlec@g.o>