Skip to content

Commit

Permalink
fix: build without ck tile
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed Jun 20, 2024
1 parent 5d09ec9 commit 14d1a1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions onnxruntime/contrib_ops/rocm/bert/group_query_attention.cu
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ std::once_flag GroupQueryAttention<BFloat16>::arch_checking_{};

template <typename T>
Status GroupQueryAttention<T>::ComputeInternal(OpKernelContext* ctx) const {
#if USE_COMPOSABLE_KERNEL_CK_TILE
auto hip_stream = static_cast<hipStream_t>(ctx->GetComputeStream()->GetHandle());
const Tensor* query = ctx->Input<Tensor>(0);
const Tensor* key = ctx->Input<Tensor>(1);
Expand Down Expand Up @@ -512,6 +513,9 @@ Status GroupQueryAttention<T>::ComputeInternal(OpKernelContext* ctx) const {
HIP_RETURN_IF_ERROR(hipGetLastError());

return Status::OK();
#else
return ORT_MAKE_STATUS(ONNXRUNTIME, EP_FAIL, "GroupQueryAttention requires ck_tiles to be enabled");
#endif
}

} // namespace rocm
Expand Down

0 comments on commit 14d1a1a

Please sign in to comment.