File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,19 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
16
16
GIT_TAG ${LEVEL_ZERO_LOADER_TAG}
17
17
)
18
18
19
- # Suppress some pedantic warnings for Level Zero build
19
+ # Workaround warnings/errors for Level Zero build
20
20
set (CMAKE_CXX_FLAGS_BAK "${CMAKE_CXX_FLAGS} " )
21
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable" )
22
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic" )
23
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-stringop-truncation" )
24
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option" )
21
+ if (WIN32 )
22
+ #FIXME: Level Zero build fails with /DUNICODE
23
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /UUNICODE" )
24
+ else ()
25
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable" )
26
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic" )
27
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-stringop-truncation" )
28
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter" )
29
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++98-compat-extra-semi" )
30
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option" )
31
+ endif ()
25
32
26
33
FetchContent_MakeAvailable (level-zero-loader )
27
34
FetchContent_GetProperties (level-zero-loader )
Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ inline pi_result piPlatformGetInfo(pi_platform platform,
69
69
pi_platform_info param_name,
70
70
size_t param_value_size, void *param_value,
71
71
size_t *param_value_size_ret) {
72
+ (void )platform;
73
+ (void )param_name;
74
+ (void )param_value_size;
75
+ (void )param_value;
76
+ (void )param_value_size_ret;
72
77
die (" Unified Runtime: piPlatformGetInfo is not implemented" );
73
78
}
74
79
} // namespace pi2ur
Original file line number Diff line number Diff line change 11
11
#include < iostream>
12
12
#include < mutex>
13
13
#include < shared_mutex>
14
+ #include < string>
14
15
#include < thread>
15
16
#include < vector>
16
17
You can’t perform that action at this time.
0 commit comments