Skip to content

Commit

Permalink
Fix f8f8bf16 function signature when cuda disabled (#2605)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #2605

Since D57442310 changed f8f8bf16 function signature, changing the function signature back fixes the issue

Reviewed By: yuguo68

Differential Revision: D57529592

fbshipit-source-id: afabd1c8de60d4797dd1688863bea0650f14b8fa
  • Loading branch information
jiawenliu64 authored and facebook-github-bot committed May 19, 2024
1 parent 79aba2c commit 06e78e1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,14 @@ at::Tensor f8f8bf16_cublas(
"CUDA version is older than 12.0"); // requires CUDA>=12
}
at::Tensor f8f8bf16(
at::Tensor XQ, // FP8
at::Tensor WQ, // FP8
at::Tensor scale,
bool use_fast_accum) {
throw std::runtime_error(
"CUDA version is older than 12.0"); // requires CUDA>=12
}
at::Tensor f8f8bf16_tensorwise(
at::Tensor XQ, // FP8
at::Tensor WQ, // FP8
double scale,
Expand Down

0 comments on commit 06e78e1

Please sign in to comment.