Mercurial > minori
comparison dep/fmt/test/cuda-test/cpp14.cc @ 343:1faa72660932
*: transfer back to cmake from autotools
autotools just made lots of things more complicated than
they should have and many things broke (i.e. translations)
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Thu, 20 Jun 2024 05:56:06 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 342:adb79bdde329 | 343:1faa72660932 |
|---|---|
| 1 #include <fmt/core.h> | |
| 2 | |
| 3 // The purpose of this part is to ensure NVCC's host compiler also supports | |
| 4 // the standard version. See 'cuda-cpp14.cu'. | |
| 5 // | |
| 6 // https://en.cppreference.com/w/cpp/preprocessor/replace#Predefined_macros | |
| 7 static_assert(__cplusplus >= 201402L, "expect C++ 2014 for host compiler"); | |
| 8 | |
| 9 auto make_message_cpp() -> std::string { | |
| 10 return fmt::format("host compiler \t: __cplusplus == {}", __cplusplus); | |
| 11 } |
