Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion compiler/plugins/target/ROCM/ROCMTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct ROCMOptions {
GPU::kDataTilingEncodingLayoutResolverName;
bool slpVectorization = true;
bool globalISel = false;
bool specializeDispatches = false;
bool specializeDispatches = true;
bool enableTensorUKernels = false;
IREE::Codegen::DenormalFpMath denormalFpMathF32 =
IREE::Codegen::DenormalFpMath::None;
Expand Down Expand Up @@ -214,6 +214,11 @@ struct ROCMOptions {
<< feature << "'";
}
}
if (enableTensorUKernels && !specializeDispatches) {
return emitError(builder.getUnknownLoc())
<< "--iree-hip-enable-ukernels=true requires "
"--iree-hip-specialize-dispatches to be enabled as well";
}
return success();
}

Expand Down
Loading