We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Compiling with Clang 9 in CUDA mode results in the following compilation errors during its device code pass:
.../fmt-master/include/fmt/format-inl.h:50:8: error: expected identifier std::abort(); ^ .../fmt-master/include/fmt/format-inl.h:50:3: error: unexpected namespace name 'std': expected expression std::abort(); ^
One possible fix is to use std::terminate instead:
std::terminate
FMT_FUNC void assert_fail(const char* file, int line, const char* message) { print(stderr, "{}:{}: assertion failed: {}", file, line, message); #if defined(__clang__) && defined(__CUDA__) && defined(__CUDA_ARCH__) std::terminate(); #else std::abort(); #endif }
The text was updated successfully, but these errors were encountered:
{fmt} generally requires a C++ compiler but I'm open to a PR to workaround this issue in CUDA.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Compiling with Clang 9 in CUDA mode results in the following compilation errors during its device code pass:
One possible fix is to use
std::terminate
instead:The text was updated successfully, but these errors were encountered: