Skip to content

Commit 9bed264

Browse files
committed
Hopefully fix L0 build.
1 parent 5a95da7 commit 9bed264

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/adapters/level_zero/program.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ ur_result_t urProgramCreateWithBinary(
118118
return UR_RESULT_SUCCESS;
119119
}
120120

121-
UR_APIEXPORT ur_result_t UR_APICALL urProgramBuild(
121+
ur_result_t urProgramBuild(
122122
ur_program_handle_t hProgram, ///< [in] Handle of the program to build.
123123
uint32_t numDevices, ///< [in] number of devices
124124
ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to
@@ -221,7 +221,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramBuild(
221221
return Result;
222222
}
223223

224-
UR_APIEXPORT ur_result_t UR_APICALL urProgramCompile(
224+
ur_result_t urProgramCompile(
225225
ur_program_handle_t
226226
hProgram, ///< [in][out] handle of the program to compile.
227227
uint32_t numDevices, ///< [in] number of devices
@@ -262,7 +262,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramCompile(
262262
return UR_RESULT_SUCCESS;
263263
}
264264

265-
UR_APIEXPORT ur_result_t UR_APICALL urProgramLink(
265+
ur_result_t urProgramLink(
266266
ur_context_handle_t hContext, ///< [in] handle of the context instance.
267267
uint32_t numDevices, ///< [in] number of devices
268268
ur_device_handle_t *phDevices, ///< [in][range(0, numDevices)] pointer to

test/adapters/level_zero/urProgramLink.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urLevelZeroProgramLinkTest);
1111

1212
TEST_P(urLevelZeroProgramLinkTest, InvalidLinkOptionsPrintedInLog) {
1313
ur_program_handle_t linked_program = nullptr;
14-
ASSERT_SUCCESS(urProgramCompile(context, program, "-foo"));
15-
ASSERT_EQ_RESULT(
16-
UR_RESULT_ERROR_PROGRAM_LINK_FAILURE,
17-
urProgramLink(context, 1, &program, "-foo", &linked_program));
14+
ASSERT_SUCCESS(urProgramCompile(program, 1, &device, "-foo"));
15+
ASSERT_EQ_RESULT(UR_RESULT_ERROR_PROGRAM_LINK_FAILURE,
16+
urProgramLink(context, 1, &device, 1, &program, "-foo",
17+
&linked_program));
1818

1919
size_t logSize;
2020
std::vector<char> log;

0 commit comments

Comments
 (0)