Skip to content

Commit e18327e

Browse files
committed
[L0] fix linkage for urPhysicalMemGetInfo on Windows
Including ur_interface_loader.hpp in v2 adapter causes error C2375 as urPhysicalMemGetInfo is declared without UR_APIEXPORT UR_APICALL
1 parent 0125279 commit e18327e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/adapters/level_zero/physical_mem.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ ur_result_t urPhysicalMemRelease(ur_physical_mem_handle_t hPhysicalMem) {
5757
return UR_RESULT_SUCCESS;
5858
}
5959

60-
UR_APIEXPORT ur_result_t UR_APICALL urPhysicalMemGetInfo(
61-
ur_physical_mem_handle_t hPhysicalMem, ur_physical_mem_info_t propName,
62-
size_t propSize, void *pPropValue, size_t *pPropSizeRet) {
60+
ur_result_t urPhysicalMemGetInfo(ur_physical_mem_handle_t hPhysicalMem,
61+
ur_physical_mem_info_t propName,
62+
size_t propSize, void *pPropValue,
63+
size_t *pPropSizeRet) {
6364

6465
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
6566

0 commit comments

Comments
 (0)