Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Conversation

@gevtushenko
Copy link
Collaborator

@gevtushenko gevtushenko commented Feb 28, 2023

Clang has a builtin called __is_signed. Unfortunately, libstdc++ headers use this name as an identifier. Clang has a workaround for that, it checks if __is_signed is const static bool as in libstdc++ headers and if so, disables the intrinsic for the rest of the TU. For some reason, when clang is used as host compiler in nvcc, this workaround doesn't work. It's likely that some implicitly included headers affect first use of __is_signed.

@gevtushenko
Copy link
Collaborator Author

run tests

@jrhemstad
Copy link
Collaborator

@senior-zero for posterity, can you update the PR description with a summary of what we're doing here and why?

@gevtushenko
Copy link
Collaborator Author

run tests

@gevtushenko
Copy link
Collaborator Author

run tests

@gevtushenko
Copy link
Collaborator Author

run tests

2 similar comments
@gevtushenko
Copy link
Collaborator Author

run tests

@gevtushenko
Copy link
Collaborator Author

run tests

@gevtushenko gevtushenko merged commit 70ff353 into NVIDIA:main Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants