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

Fix build issues with newer pytorch #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shi-yan
Copy link

@shi-yan shi-yan commented May 9, 2023

The build issues are due to the deprecation of the THC lib,

This migration is based on the suggestions from

pytorch/pytorch#72807 (comment)

The torch extension infra seems to enforce no_half_operators, this results in an issue with the atomicAdd function which does accept c10::Half

The workaround is based on this discussion

https://forums.developer.nvidia.com/t/atomicadd-not-overloaded-for-c10-half/

Tested compiling on pytorch/pytorch:1.13.1-cuda11.6-cudnn8-devel

The build issues are due to the deprecation of the THC lib,

This migration is based on the suggestions from

 pytorch/pytorch#72807 (comment)

The torch extension infra seems to enforce no_half_operators, this
results in an issue with the atomicAdd function which does accept
c10::Half

The workaround is based on this discussion

 https://forums.developer.nvidia.com/t/atomicadd-not-overloaded-for-c10-half/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant