-
Notifications
You must be signed in to change notification settings - Fork 2
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
Enable triton sparse gemm only for CUDA #27
base: rocm-jaxlib-v0.4.28-qa
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2921,10 +2921,12 @@ absl::StatusOr<llvm::Value*> ElementalIrEmitter::EmitElementalDot( | |
"Algorithm not supported by the ElementalIrEmitter: %s", | ||
PrecisionConfig::Algorithm_Name(hlo->precision_config().algorithm()))); | ||
} | ||
#ifdef GOOGLE_CUDA | ||
const HloDotInstruction* dot = Cast<HloDotInstruction>(hlo); | ||
if (dot->sparse_operands()) { | ||
return Unimplemented("Sparse dot is supported by Triton emitter only."); | ||
} | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIUC, sparse dot will require AddGemmFusionAutotuningPasses and that not only requires triton auotune, but also cudnn fusion front as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is to unblock JAX to use sparse dot operation. https://github.com/ROCm/frameworks-internal/issues/8118 |
||
|
||
auto lhs_generator = operand_to_generator.at(hlo->operand(0)); | ||
auto rhs_generator = operand_to_generator.at(hlo->operand(1)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hsharsha @i-chaochen
I believe better is to use something like ->
and also ->