Tell nvcc to use the correct MPICXX binary
There was a bug related to https://gcc.gnu.org/pipermail/gcc-help/2021-June/140490.html where nvcc was getting other versions of the gcc compiler and the libstd++ version were mismatched, resulting in linking errors.
This commit is contained in:
parent
a263c0c933
commit
4092f968b7
@ -52,11 +52,13 @@ namespace atrip {
|
|||||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
template <typename T>
|
template <typename T>
|
||||||
std::string pretty_print(T&& value) {
|
std::string pretty_print(T&& value) {
|
||||||
std::stringstream stream;
|
|
||||||
#if ATRIP_DEBUG > 2
|
#if ATRIP_DEBUG > 2
|
||||||
|
std::stringstream stream;
|
||||||
dbg::pretty_print(stream, std::forward<T>(value));
|
dbg::pretty_print(stream, std::forward<T>(value));
|
||||||
#endif
|
|
||||||
return stream.str();
|
return stream.str();
|
||||||
|
#else
|
||||||
|
return "";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
// Pretty printing:1 ends here
|
// Pretty printing:1 ends here
|
||||||
|
|||||||
@ -16,7 +16,7 @@ libatrip_a_CPPFLAGS += $(CUDA_CXXFLAGS)
|
|||||||
libatrip_a_DEPENDENCIES = $(NVCC_OBJS)
|
libatrip_a_DEPENDENCIES = $(NVCC_OBJS)
|
||||||
libatrip_a_LIBADD = $(NVCC_OBJS)
|
libatrip_a_LIBADD = $(NVCC_OBJS)
|
||||||
%.nvcc.o: %.cxx
|
%.nvcc.o: %.cxx
|
||||||
$(NVCC) -c -x cu -I../ $(CPPFLAGS) $(CTF_CPPFLAGS) $(DEFS) $(libatrip_a_CPPFLAGS) $< -o $@
|
$(NVCC) -c -x cu -ccbin="${MPICXX}" -I../ $(CPPFLAGS) $(CTF_CPPFLAGS) $(DEFS) $(libatrip_a_CPPFLAGS) $< -o $@
|
||||||
|
|
||||||
#./atrip/Equations.o: ./atrip/Equations.cxx
|
#./atrip/Equations.o: ./atrip/Equations.cxx
|
||||||
# $(NVCC) -c -I../ $(CPPFLAGS) $(libatrip_a_CPPFLAGS) $< -o $@
|
# $(NVCC) -c -I../ $(CPPFLAGS) $(libatrip_a_CPPFLAGS) $< -o $@
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user