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

Merge branch 'bf/typo' into 'master'

RF: Set -std=c++14 for nvcc-compiled code - CUDA 11.0 is the earliest to support c++17

See merge request !33
parents f7fa4ef1 d2c0a7de
No related branches found
No related tags found
1 merge request!33RF: Set -std=c++14 for nvcc-compiled code - CUDA 11.0 is the earliest to support c++17
Pipeline #11544 passed
# FSL base project changelog # FSL base project changelog
## 2111.5 (Friday 19th November 2021)
* Set `-std=c++14` for `nvcc`-compiled code, as CUDA 11.0 is the first version
to support `-std=c++17`, and we are targeting older CUDA versions.
## 2111.4 (Wednesday 17th November 2021) ## 2111.4 (Wednesday 17th November 2021)
* The default C++ language standard is now `-std=c++17`. * The default C++ language standard is now `-std=c++17`.
......
...@@ -65,7 +65,7 @@ ARCHLIBS = ...@@ -65,7 +65,7 @@ ARCHLIBS =
# armadillo structures may have different byte-alignment # armadillo structures may have different byte-alignment
# to equivalent g++-compiled structures (see # to equivalent g++-compiled structures (see
# include/armadillo_bits/compiler_setup.hpp) # include/armadillo_bits/compiler_setup.hpp)
ARCHNVCCFLAGS = -DARMA_ALLOW_FAKE_GCC ARCHNVCCFLAGS = -DARMA_ALLOW_FAKE_GCC -std=c++14
# Linker flags for CUDA projects. # Linker flags for CUDA projects.
ARCHNVCCLDFLAGS = ARCHNVCCLDFLAGS =
......
...@@ -119,11 +119,16 @@ CXXFLAGS += ${CPPFLAGS} ${ARCHCXXFLAGS} ${USRCXXFLAGS} ${INCFLAGS} ...@@ -119,11 +119,16 @@ CXXFLAGS += ${CPPFLAGS} ${ARCHCXXFLAGS} ${USRCXXFLAGS} ${INCFLAGS}
LDFLAGS += ${ARCHLDFLAGS} ${USRLDFLAGS} \ LDFLAGS += ${ARCHLDFLAGS} ${USRLDFLAGS} \
-L. -L${DEVLIBDIR} -L${LIBDIR} \ -L. -L${DEVLIBDIR} -L${LIBDIR} \
${LIBS} ${ARCHLIBS} ${LIBS} ${ARCHLIBS}
NVCCFLAGS += --compiler-options "${CPPFLAGS}" \ # Remove any -std=c++ options, as we are already setting
${ARCHNVCCFLAGS} \ # -std in ARCHNVCCFLAGS (seee buildSettings.mk), and
--compiler-options "${ARCHCXXFLAGS}" \ # passing another one via --compiler-options will confuse
${USRNVCCFLAGS} \ # nvcc. We assume that project Makefile has not added
--compiler-options "${USRCXXFLASG}" \ # -std to USRCXXFLAGGS/USRCPPFLAGS.
NVCCFLAGS += --compiler-options "${CPPFLAGS}" \
${ARCHNVCCFLAGS} \
--compiler-options "$(patsubst -std=c++%,,${ARCHCXXFLAGS})" \
${USRNVCCFLAGS} \
--compiler-options "${USRCXXFLAGS}" \
${INCFLAGS} ${INCFLAGS}
NVCCLDFLAGS += ${ARCHNVCCLDFLAGS} \ NVCCLDFLAGS += ${ARCHNVCCLDFLAGS} \
--compiler-options "${ARCHLDFLAGS}" \ --compiler-options "${ARCHLDFLAGS}" \
......
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