File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -433,8 +433,8 @@ ur_result_t ur_platform_handle_t_::populateDeviceCacheIfNeeded() {
433
433
// Returns plugin specific backend option.
434
434
// Current support is only for optimization options.
435
435
// Return '-ze-opt-disable' for frontend_option = -O0.
436
- // Return '-ze-opt-level=1' for frontend_option = -O1 or -O2 .
437
- // Return '-ze-opt-level=2' for frontend_option = -O3.
436
+ // Return '-ze-opt-level=1' for frontend_option = -O1.
437
+ // Return '-ze-opt-level=2' for frontend_option = -O2 or - O3.
438
438
// Return '-igc_opts 'PartitionUnit=1,SubroutineThreshold=50000'' for
439
439
// frontend_option=-ftarget-compile-fast.
440
440
UR_APIEXPORT ur_result_t UR_APICALL urPlatformGetBackendOption (
@@ -457,11 +457,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urPlatformGetBackendOption(
457
457
*PlatformOption = " -ze-opt-disable" ;
458
458
return UR_RESULT_SUCCESS;
459
459
}
460
- if (FrontendOption == " -O1" sv || FrontendOption == " -O2 " sv ) {
460
+ if (FrontendOption == " -O1" sv) {
461
461
*PlatformOption = " -ze-opt-level=1" ;
462
462
return UR_RESULT_SUCCESS;
463
463
}
464
- if (FrontendOption == " -O3" sv) {
464
+ if (FrontendOption == " -O2 " sv || FrontendOption == " - O3" sv) {
465
465
*PlatformOption = " -ze-opt-level=2" ;
466
466
return UR_RESULT_SUCCESS;
467
467
}
You can’t perform that action at this time.
0 commit comments