Skip to content

Commit 42b2847

Browse files
authored
[SYCL] Fix ESIMD with double GRF (#7141)
The ze-opt-large-register-file flag is supposed to work with both the IGC scalar and vector backend, but there is a bug in IGC where it does not work for the vector backend. To workaround this and fix a regression, use -doubleGRF for the vector backend This will be tested in llvm-test-suites Signed-off-by: Sarnie, Nick <[email protected]>
1 parent b8f35cf commit 42b2847

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ static void appendCompileOptionsFromImage(std::string &CompileOpts,
419419
if (isDoubleGRF) {
420420
if (!CompileOpts.empty())
421421
CompileOpts += " ";
422-
CompileOpts += "-ze-opt-large-register-file";
422+
// TODO: Always use -ze-opt-large-register-file once IGC VC bug ignoring it
423+
// is fixed
424+
CompileOpts += isEsimdImage ? "-doubleGRF" : "-ze-opt-large-register-file";
423425
}
424426
}
425427

0 commit comments

Comments
 (0)