View previous topic :: View next topic |
Author |
Message |
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Thu Nov 29, 2012 7:33 am Post subject: [SOLVED]: nVidia CUDA 5.0 |
|
|
Anyone has installed CUDA 5.0?
The ebuilds available up to date are for CUDA 4.2 at most.
What are the plans for CUDA 5.0? _________________ Achille Talon Hop!
Last edited by AchilleTalon on Tue Dec 11, 2012 10:34 pm; edited 1 time in total |
|
Back to top |
|
|
temporary_user n00b
Joined: 26 Aug 2012 Posts: 37
|
Posted: Thu Nov 29, 2012 11:39 pm Post subject: |
|
|
Hello!
You can get CUDA SDK 5.0 from a science overlay. |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Thu Dec 06, 2012 9:21 pm Post subject: |
|
|
I installed successfully the CUDA 5.0.35 environment using the science overlay. I also installed gcc 4.4.7 to comply with the requirements. Here is a test with nvcc which produce an error at link time. Any hints?
Code: | nvcc --compiler-bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.7 MP1.cu
/tmp/tmpxft_000028b0_00000000-14_MP1.o: In function `main':
tmpxft_000028b0_00000000-3_MP1.cudafe1.cpp:(.text+0xfc): undefined reference to `HelloWorld_kernel(int, char*)'
/opt/cuda/bin/../lib64/libcudart.so: undefined reference to `std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15'
/opt/cuda/bin/../lib64/libcudart.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
collect2: ld returned 1 exit status
|
Quote: | emerge --info gcc nvidia-cuda-toolkit
Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo-nvidia x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.5.7-gentoo-nvidia-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Fri, 30 Nov 2012 02:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.8 [disabled]
app-shells/bash: 4.2_p37
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.5.4-r4, 2.7.3-r2, 3.2.3
dev-util/ccache: 3.1.8
dev-util/cmake: 2.8.9
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.5
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.10.3, 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.4.7, 4.5.4
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo x-my science
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL AdobeFlash-10.3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.arcticnetwork.ca/ http://mirror.the-best-hosting.net http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.llarian.net/ http://mirror.iawnet.sandia.gov/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ ftp://mirrors.tera-byte.com/pub/gentoo ftp://gentoo.arcticnetwork.ca/pub/gentoo/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://ftp.lug.udel.edu/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ "
LANG="fr_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/my /usr/local/overlay/science"
SYNC="rsync://pauli.cids.ca/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 ao apache2 arj audiofile avahi berkdb blas bluetooth bonobo branding bsf bzip2 cairo caps cdaudio cdda cddax cddb cdparanoia cdr cgi cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cxx db2 dbi dbm dbus dbx derby dga directfb djvu dri dts dv dvd dvdr dvdread eds emacs encode enscript evo examples exif expat extras fam fastcgi fbcon festival ffmpeg fftw flac flatfile fltk fontconfig foomaticdb fortran ftp fuse g3dvl gb gcj gconf gd gdbm geant4 geoip ggi gif gimp ginac glitz glut gmp gnome gnome-keyring gnuplot gnutls gphoto2 gpm gps graphviz gsl gsm gssapi gstreamer gtk gtkhtml gzip hddtemp httpd i18n iconv icq icu id3tag idn ieee1394 imagemagick imap imlib inifile intel intl ios ipv6 ithreads jabber jack jadetex java java6 javascript jbig jikes jingle jpeg jpeg2k junit kerberos kpathsea lame lapack lash latex lcms ldap ldap-sasl leim libcaca libedit libgda libnotify libsamplerate libwww live lm_sensors lzma lzo mad maildir mailwrapper mbox mcal memlimit midi mikmod milter mime mmap mms mmx mng mod modplug modules mozilla mp3 mp4 mpeg mpi mplayer msn mtp mudflap mule multilib musepack musicbrainz nas nautilus ncurses networkmanager nls nntp nptl nsplugin nvidia ocaml ocr odbc ofx ogg oggvorbis openal openexr opengl openldap openmp openssl osc oscar pam pam_krb5 pam_ssh pcre pda pdf perl php pidgin plotutils png policykit portaudio posix postgres ppds pppd prefork pthreads pulseaudio python qt4 quicktime radius rar raw readline rss sane sasl scanner sdl sendmail servletapi session sha512 sharedext sharedmem slang slp smartcard smp sndfile snmp soap sockets sound sox speex spell sqlite sqlite3 sse sse2 ssl stream suexec svg swt symlink syslog sysvipc taglib tcl tcpd tetex theora threads tiff timidity tk tokenizer truetype udev unicode usb v4l v4l2 vaapi vcd vdpau vhosts vim-syntax vlm vnc vorbis wavpack wddx wmf x264 xattr xcb xcomposite xemacs xface xft xine xinerama xinetd xml xmlrpc xmp xmpp xosd xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps dmsquash-live livenet lvm mdraid nfs ssh-client syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fr" PHP_TARGETS="php5.3 php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="net epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau intel v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
=================================================================
Package Settings
=================================================================
sys-devel/gcc-4.4.7 was built with the following:
USE="cxx fortran gcj gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -graphite (-hardened) (-libssp) -multislot -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
sys-devel/gcc-4.5.4 was built with the following:
USE="cxx fortran gcj gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -graphite (-hardened) (-libssp) -lto -multislot -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
dev-util/nvidia-cuda-toolkit-5.0.35 was built with the following:
USE="eclipse -debugger -doc -profiler"
|
_________________ Achille Talon Hop! |
|
Back to top |
|
|
leo.the_zoo Apprentice
Joined: 04 Jul 2005 Posts: 160 Location: Poland
|
Posted: Sun Dec 09, 2012 11:28 am Post subject: |
|
|
I'm using 5.0 with gcc 4.6 and everything builds fine. |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Tue Dec 11, 2012 4:23 am Post subject: |
|
|
Thanks, that's what I suspected. I needed a confirmation from someone before going ahead.
I will upgrade gcc to 4.6. _________________ Achille Talon Hop! |
|
Back to top |
|
|
leo.the_zoo Apprentice
Joined: 04 Jul 2005 Posts: 160 Location: Poland
|
Posted: Tue Dec 11, 2012 2:54 pm Post subject: |
|
|
I used cuda 4.2 with gcc 4.5.x and had no problems. I migrated recently to gcc-4.6 since it offers a better support for my machine and the software I run performs better if compiled with this version. Also the bugs blocking gcc-4.6 stabilization concern some minor issues that often have been already solved, just some people seem to have forgotten to notice that (just my impression). The migration from 4.5.4 was a piece of cake and my laptop and workstation work fine without any "emerge -e world" or similar freaked commands. |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Tue Dec 11, 2012 10:34 pm Post subject: |
|
|
CUDA 5.0.35 and gcc 4.6.3 are working fine for me now. This is resolved.
However, I must say the ebuild for nvidia-cuda-toolkit-5.0.35 is misleading since it issues a message saying we must use gcc <= 4.4, while in fact we need to use gcc > 4.5. _________________ Achille Talon Hop! |
|
Back to top |
|
|
|