Skip to content
Snippets Groups Projects
Commit c663fa56 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

MNT: Specify compiler to be used by nvcc

parent 6e7f408c
No related branches found
No related tags found
No related merge requests found
......@@ -111,10 +111,14 @@ ifneq ($(shell which nvcc), )
# - Do not use -pedantic, otherwise *every single line* of
# transpiled cuda code will trigger "warning: style of line
# directive is a GCC extension".
# - Specify the compiler to use with --compiler-bindir, as nvcc
# will otherwise naively call "gcc"
ARCHCUDACXXFLAGS = -I${CUDADIR}/include \
-maxrregcount=64 \
${GENCODE_FLAGS} \
-DARMA_ALLOW_FAKE_GCC \
--compiler-bindir \
$(shell which $(CC)) \
--compiler-options \
"$(filter-out -pedantic, ${ARCHCXXFLAGS})"
ARCHCUDALDFLAGS = -L${CUDADIR}/lib \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment