Skip to content
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

Avoid half-precision includes and functionality when CUDA_NO_HALF is defined #437

Closed
eyalroz opened this issue Nov 12, 2022 · 0 comments
Closed

Comments

@eyalroz
Copy link
Owner

eyalroz commented Nov 12, 2022

Sometimes, the half type defined in CUDA library conflicts with the one defined in other libraries. The CUDA_NO_HALF preprocessor define allows users of the CUDA APIs to circumvent this. In our code, however, we rely on cuda_fp16.hpp and on the half type being defined. Let's only have that reliance when CUDA_NO_HALF is undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant