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

Do not fuse gelu into FP8 cublasLT matmul on CUDA versions less than 12.4. #64245

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Mar 22, 2024

Do not fuse gelu into FP8 cublasLT matmul on CUDA versions less than 12.4.

This causes cublas LT to give an error in certain cases. Specially, it always causes an error on Ada and causes an error when fast accumulation is disabled on Hopper, at least in the cases I've tried. I am just disabling it in general for older CUDA versions in case there are other scenarios where it fails.

The issue actually only occurs on CUDA versions less than 12.3.2, but there is no good way of checking the patch version of CUDA, so I'm disabling it on CUDA versions less than 12.4. There is a CUBLAS_VER_PATCH with the patch version of cublas but this is undocumented so I'd rather not use it.

Thank you @philipphack and @Artem-B for helping me debug this.

@copybara-service copybara-service bot force-pushed the exported_pr_618005881 branch 2 times, most recently from 3131134 to 7d7f73e Compare March 22, 2024 11:21
…12.4.

This causes cublas LT to give an error in certain cases. Specially, it always causes an error on Ada and causes an error when fast accumulation is disabled on Hopper, at least in the cases I've tried. I am just disabling it in general for older CUDA versions in case there are other scenarios where it fails.

The issue actually only occurs on CUDA versions less than 12.3.2, but there is no good way of checking the patch version of CUDA, so I'm disabling it on CUDA versions less than 12.4. There is a CUBLAS_VER_PATCH with the patch version of cublas but this is undocumented so I'd rather not use it.

Thank you @philipphack and @Artem-B for helping me debug this.

PiperOrigin-RevId: 618135629
@copybara-service copybara-service bot merged commit 0a28fc9 into master Mar 22, 2024
@copybara-service copybara-service bot deleted the exported_pr_618005881 branch March 22, 2024 11:47
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