-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update fmt (to 11.0.2) and spdlog (to 1.14.1) #689
Changes from all commits
ebffd45
a30760a
be0c3d1
d7671a3
e34bb8c
ad0e899
fb20976
d625120
5aac61e
9a68d69
326ca8a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/include/fmt/base.h b/include/fmt/base.h | ||
index 62764942..60f7483b 100644 | ||
--- a/include/fmt/base.h | ||
+++ b/include/fmt/base.h | ||
@@ -464,6 +464,9 @@ template <typename Char> FMT_CONSTEXPR auto length(const Char* s) -> size_t { | ||
return len; | ||
} | ||
|
||
+#if defined(__NVCC__) | ||
+#pragma nv_diag_suppress 128 | ||
+#endif | ||
template <typename Char> | ||
FMT_CONSTEXPR auto compare(const Char* s1, const Char* s2, std::size_t n) | ||
-> int { | ||
@@ -474,6 +477,9 @@ FMT_CONSTEXPR auto compare(const Char* s1, const Char* s2, std::size_t n) | ||
} | ||
return 0; | ||
} | ||
+#if defined(__NVCC__) | ||
+#pragma nv_diag_default 128 | ||
+#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This patch works around an issue we observed in
I'm not sure what the root cause is, but thought the cost "a bit of unreachable code is compiled in" was worth it in exchange for getting this upgrade done. Otherwise, I think we'd have to do one of these other higher-effort things:
NOTE: taking this patch means that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will need a strategy to upstream or fix this, so that we aren't carrying the patch indefinitely. Let's compose an issue to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't remember which nvcc versions were affected (just 12.5? also 11.8?) but that would be relevant to include in a bug report. I assume that this is a fmt bug and not an nvcc bug, but if you think it's an nvcc bug, let's discuss and file that internally as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, I'd love to get rid of the patch. I don't know the range of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put up #695 to track the work of trying to remove this patch. |
||
|
||
namespace adl { | ||
using namespace std; |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename this so it has the word "nvcc" in the filename. If that requires too much CI rerunning, don't bother.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think it's not worth the CI re-running. The patch has
#if defined(__NVCC__)
around its changes, so hopefully that's enough information for anyone looking at it that this is specific to nvcc.