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 compilation on torch 1.12.1 #80

Merged
merged 1 commit into from
Dec 12, 2022
Merged

Fix compilation on torch 1.12.1 #80

merged 1 commit into from
Dec 12, 2022

Conversation

rasaford
Copy link
Contributor

In pytorch==1.11.1 the <THC/THC.h> header was removed. Therefore, this extension would no longer compile under newer versions.

I searched around for a replacement and it seems like AT_CUDA_CHECK() is a drop in replacement according to this PR: CoinCheung/pytorch-loss#37

Confirmed as working on pytorch==1.12.1 .

@vacancy
Copy link
Owner

vacancy commented Dec 12, 2022

Thank you for looking into that. Thanks for the contribution.

@vacancy vacancy merged commit f75570a into vacancy:master Dec 12, 2022
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.

2 participants