Skip to content

Commit

Permalink
[ExecutionEngine] Modify the way we pass IGC flags. (#912)
Browse files Browse the repository at this point in the history
Passing multiple finalizer flags together seems to have caused issues
in some IGC versions as not being recognized. As a result, passing
one finalizer flag at a time.
  • Loading branch information
mshahneo authored Oct 3, 2024
1 parent f31a332 commit fe1535e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@ static ze_module_handle_t loadModule(GPUL0QUEUE *queue, const void *data,
}
// enable large register file if needed
if (getenv("IMEX_ENABLE_LARGE_REG_FILE")) {
build_flags +=
" -doubleGRF -Xfinalizer -noLocalSplit -Xfinalizer "
"-DPASTokenReduction -Xfinalizer -SWSBDepReduction -Xfinalizer "
"'-printregusage -enableBCR' ";
build_flags += "-doubleGRF -Xfinalizer -noLocalSplit -Xfinalizer "
"-DPASTokenReduction -Xfinalizer -SWSBDepReduction "
"-Xfinalizer -printregusage -Xfinalizer -enableBCR";
;
}

desc.format = ZE_MODULE_FORMAT_IL_SPIRV;
Expand Down
7 changes: 3 additions & 4 deletions lib/ExecutionEngine/SYCLRUNTIME/SyclRuntimeWrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,9 @@ static ze_module_handle_t loadModule(GPUSYCLQUEUE *queue, const void *data,
}
// enable large register file if needed
if (getenv("IMEX_ENABLE_LARGE_REG_FILE")) {
build_flags +=
" -doubleGRF -Xfinalizer -noLocalSplit -Xfinalizer "
"-DPASTokenReduction -Xfinalizer -SWSBDepReduction -Xfinalizer "
"'-printregusage -enableBCR' ";
build_flags += "-doubleGRF -Xfinalizer -noLocalSplit -Xfinalizer "
"-DPASTokenReduction -Xfinalizer -SWSBDepReduction "
"-Xfinalizer -printregusage -Xfinalizer -enableBCR";
}
desc.pBuildFlags = build_flags.c_str();
auto zeDevice = sycl::get_native<sycl::backend::ext_oneapi_level_zero>(
Expand Down

0 comments on commit fe1535e

Please sign in to comment.