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

Support half types when compiling CUDA generated from Slang #13

Merged
merged 3 commits into from
Jul 10, 2024

Conversation

saipraveenb25
Copy link
Contributor

@saipraveenb25 saipraveenb25 commented Jul 9, 2024

This patch fixes an issue with torch's plugin system disabling the half type in CUDA. These flags are unnecessary since our CUDA kernels do not use any torch library functions (only the .cpp component links against torch's library).

We fix this by simply 'unsetting' the flags that torch has set.

Fixes main repository issue (shader-slang/slang#4583)

@saipraveenb25 saipraveenb25 merged commit 17b5d37 into shader-slang:main Jul 10, 2024
1 check passed
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.

1 participant