Skip to content

Commit

Permalink
cuda.eclass: Use debug-print-function everywhere
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Jan 28, 2016
1 parent 97d4f92 commit 6a61da1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eclass/cuda.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ if [[ -z ${_CUDA_ECLASS} ]]; then
# -> --compiler-bindir="/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3"
# @CODE
cuda_gccdir() {
debug-print-function ${FUNCNAME} "$@"

local gcc_bindir ver args="" flag ret

# Currently we only support the gnu compiler suite
Expand Down Expand Up @@ -98,6 +100,8 @@ cuda_gccdir() {
# Correct NVCCFLAGS by adding the necessary reference to gcc bindir and
# passing CXXFLAGS to underlying compiler without disturbing nvcc.
cuda_sanitize() {
debug-print-function ${FUNCNAME} "$@"

local rawldflags=$(raw-ldflags)
# Be verbose if wanted
[[ "${CUDA_VERBOSE}" == true ]] && NVCCFLAGS+=" -v"
Expand All @@ -116,13 +120,17 @@ cuda_sanitize() {
# @DESCRIPTION:
# Call cuda_src_prepare for EAPIs not supporting src_prepare
cuda_pkg_setup() {
debug-print-function ${FUNCNAME} "$@"

cuda_src_prepare
}

# @FUNCTION: cuda_src_prepare
# @DESCRIPTION:
# Sanitise and export NVCCFLAGS by default
cuda_src_prepare() {
debug-print-function ${FUNCNAME} "$@"

cuda_sanitize
}

Expand Down

0 comments on commit 6a61da1

Please sign in to comment.