From 4bbe57cebf0db8ec9fe6c2f57d3d068cf1465f19 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Tue, 14 Jan 2020 11:50:57 -0700 Subject: [PATCH] Work-around for nvcc The nvcc compiler (at least up to 9.2) defines `__SIZEOF_INT128__`, but doesn't support 128-bit integers on device code: ``` error: "fmt::v6::format_arg_store>, char>, const char *, int, const char *>" contains a 128-bit integer, which is not supported in device code ``` --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 44cc3d95..c2f997f7 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -266,7 +266,7 @@ template struct std_string_view {}; #ifdef FMT_USE_INT128 // Do nothing. -#elif defined(__SIZEOF_INT128__) +#elif defined(__SIZEOF_INT128__) && !FMT_NVCC # define FMT_USE_INT128 1 using int128_t = __int128_t; using uint128_t = __uint128_t;