Skip to content

Commit 61aa63e

Browse files
committed
fix build
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
1 parent fa7f130 commit 61aa63e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

source/adapters/cuda/platform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urPlatformGetBackendOption(
168168
*ppPlatformOption = "";
169169
return UR_RESULT_SUCCESS;
170170
}
171-
if (pFrontendOption == "-foffload-fp32-prec-div" ||
172-
pFrontendOption == "-foffload-fp32-prec-sqrt") {
171+
if (pFrontendOption == "-foffload-fp32-prec-div"sv ||
172+
pFrontendOption == "-foffload-fp32-prec-sqrt"sv) {
173173
*ppPlatformOption = "";
174174
return UR_RESULT_SUCCESS;
175175
}

source/adapters/hip/platform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ urPlatformGetBackendOption(ur_platform_handle_t, const char *pFrontendOption,
154154
*ppPlatformOption = "";
155155
return UR_RESULT_SUCCESS;
156156
}
157-
if (pFrontendOption == "-foffload-fp32-prec-div" ||
158-
pFrontendOption == "-foffload-fp32-prec-sqrt") {
157+
if (pFrontendOption == "-foffload-fp32-prec-div"sv ||
158+
pFrontendOption == "-foffload-fp32-prec-sqrt"sv) {
159159
*ppPlatformOption = "";
160160
return UR_RESULT_SUCCESS;
161161
}

source/adapters/level_zero/platform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ ur_result_t urPlatformGetBackendOption(
196196
*PlatformOption = "-igc_opts 'PartitionUnit=1,SubroutineThreshold=50000'";
197197
return UR_RESULT_SUCCESS;
198198
}
199-
if (FrontendOption == "-foffload-fp32-prec-div") {
199+
if (FrontendOption == "-foffload-fp32-prec-div"sv) {
200200
*PlatformOption = "-ze-fp32-correctly-rounded-divide-div";
201201
return UR_RESULT_SUCCESS;
202202
}
203-
if (FrontendOption == "-foffload-fp32-prec-sqrt") {
203+
if (FrontendOption == "-foffload-fp32-prec-sqrt"sv) {
204204
*PlatformOption = "-ze-fp32-correctly-rounded-divide-sqrt";
205205
return UR_RESULT_SUCCESS;
206206
}

source/adapters/opencl/platform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ urPlatformGetBackendOption(ur_platform_handle_t, const char *pFrontendOption,
144144
*ppPlatformOption = "-igc_opts 'PartitionUnit=1,SubroutineThreshold=50000'";
145145
return UR_RESULT_SUCCESS;
146146
}
147-
if (pFrontendOption == "-foffload-fp32-prec-div") {
147+
if (pFrontendOption == "-foffload-fp32-prec-div"sv) {
148148
*ppPlatformOption = "-cl-fp32-correctly-rounded-divide-div";
149149
return UR_RESULT_SUCCESS;
150150
}
151-
if (pFrontendOption == "-foffload-fp32-prec-sqrt") {
151+
if (pFrontendOption == "-foffload-fp32-prec-sqrt"sv) {
152152
*ppPlatformOption = "-cl-fp32-correctly-rounded-divide-sqrt";
153153
return UR_RESULT_SUCCESS;
154154
}

0 commit comments

Comments
 (0)