Gentoo Development Guide

CUDA.ECLASS

Section: portage (5)
Updated: Sep 2014
Index Return to Main Contents
 

NAME

cuda.eclass - Common functions for cuda packages  

DESCRIPTION

This eclass contains functions to be used with cuda package. Currently it is setting and/or sanitizing NVCCFLAGS, the compiler flags for nvcc. This is automatically done and exported in src_prepare() or manually by calling cuda_sanatize.  

EXAMPLE

inherit cuda  

FUNCTIONS

cuda_gccdir [-f]
Helper for determination of the latest gcc bindir supported by then current nvidia cuda toolkit.

Example:

cuda_gccdir -f
-> --compiler-bindir="/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3"

Return value: gcc bindir compatible with current cuda, optionally (-f) prefixed with "--compiler-bindir="

cuda_sanitize
Correct NVCCFLAGS by adding the necessary reference to gcc bindir and passing CXXFLAGS to underlying compiler without disturbing nvcc.
cuda_pkg_setup
Call cuda_src_prepare for EAPIs not supporting src_prepare
cuda_src_prepare
Sanitise and export NVCCFLAGS by default
 

ECLASS VARIABLES

NVCCFLAGS ?= -O2
nvcc compiler flags (see nvcc --help), which should be used like CFLAGS for c compiler
CUDA_VERBOSE ?= true
Being verbose during compilation to see underlying commands
 

MAINTAINERS

Justin Lecher <jlec@gentoo.org>
 

REPORTING BUGS

Please report bugs via http://bugs.gentoo.org/  

FILES

/usr/portage/eclass/cuda.eclass  

SEE ALSO

ebuild(5)
http://sources.gentoo.org/eclass/cuda.eclass?view=log


 

Index

NAME
DESCRIPTION
EXAMPLE
FUNCTIONS
ECLASS VARIABLES
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:04 GMT, September 20, 2014