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

Enable MobileBert on GPU for the linalg on tensors path. #5180

Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions iree/compiler/Conversion/Common/Transforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,9 @@ LogicalResult defineWorkgroupCountRegion(
OpBuilder &builder, FuncOp funcOp,
WorkgroupCountRegionBuilder regionBuilder) {
IREE::HAL::ExecutableEntryPointOp entryPointOp = getEntryPoint(funcOp);
if (!entryPointOp)
if (!entryPointOp) {
return funcOp.emitOpError("unable to find corresponding entry point op");
if (entryPointOp.getBody())
return entryPointOp.emitOpError("cannot override workgroup_count_region");
}
Location loc = entryPointOp.getLoc();

OpBuilder::InsertionGuard guard(builder);
Expand Down
11 changes: 1 addition & 10 deletions iree/test/e2e/models/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,9 @@ iree_check_single_backend_test_suite(
target_backend = "vmla",
)

iree_check_single_backend_test_suite(
name = "check_vulkan-spirv_vulkan",
srcs = CHECK_FRAMEWORK_TESTS,
driver = "vulkan",
target_backend = "vulkan-spirv",
)

iree_check_single_backend_test_suite(
name = "check_linalg_on_tensors_vulkan-spirv_vulkan",
srcs = [
"mobilenetv2_fake_weights.mlir",
],
srcs = CHECK_FRAMEWORK_TESTS,
compiler_flags = [
"-iree-flow-dispatch-linalg-on-tensors",
"-iree-codegen-spirv-experimental-linalg-on-tensors",
Expand Down
13 changes: 1 addition & 12 deletions iree/test/e2e/models/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,11 @@ iree_check_single_backend_test_suite(
"vmla"
)

iree_check_single_backend_test_suite(
NAME
check_vulkan-spirv_vulkan
SRCS
"bert_encoder_unrolled_fake_weights.mlir"
"mobilenetv2_fake_weights.mlir"
TARGET_BACKEND
"vulkan-spirv"
DRIVER
"vulkan"
)

iree_check_single_backend_test_suite(
NAME
check_linalg_on_tensors_vulkan-spirv_vulkan
SRCS
"bert_encoder_unrolled_fake_weights.mlir"
"mobilenetv2_fake_weights.mlir"
TARGET_BACKEND
"vulkan-spirv"
Expand Down