File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 24
24
build_type : Release
25
25
compiler : {c: clang, cxx: clang++}
26
26
libbacktrace : ' -DVAL_USE_LIBBACKTRACE_BACKTRACE=ON'
27
+ - os : ' ubuntu-20.04'
28
+ build_type : Release
29
+ compiler : {c: gcc-7, cxx: g++-7}
27
30
28
31
runs-on : ${{matrix.os}}
29
32
35
38
sudo apt-get update
36
39
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
37
40
41
+ - name : Install g++-7
42
+ if : matrix.compiler.cxx == 'g++-7'
43
+ run : |
44
+ sudo apt-get install -y ${{matrix.compiler.cxx}}
45
+
38
46
- name : Install pip packages
39
47
run : pip install -r third_party/requirements.txt
40
48
Original file line number Diff line number Diff line change @@ -96,8 +96,16 @@ if(UR_ENABLE_TRACING)
96
96
set (XPTI_SOURCE_DIR ${xpti_SOURCE_DIR} )
97
97
set (XPTI_DIR ${xpti_SOURCE_DIR} )
98
98
set (XPTI_ENABLE_TESTS OFF CACHE INTERNAL "Turn off xptifw tests" )
99
+
99
100
FetchContentSparse_Declare (xptifw https://github.com/intel/llvm.git "sycl-nightly/20230304" "xptifw" )
101
+
100
102
FetchContent_MakeAvailable (xptifw )
103
+
104
+ check_cxx_compiler_flag ("-Wno-error=maybe-uninitialized" HAS_MAYBE_UNINIT )
105
+ if (HAS_MAYBE_UNINIT )
106
+ target_compile_options (xptifw PRIVATE -Wno-error=maybe-uninitialized )
107
+ endif ()
108
+
101
109
set_target_properties (xptifw PROPERTIES
102
110
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
103
111
)
Original file line number Diff line number Diff line change @@ -14,4 +14,11 @@ target_link_libraries(disjoint_pool PRIVATE
14
14
unified_memory_allocation
15
15
${PROJECT_NAME} ::headers )
16
16
17
+ if (UNIX )
18
+ set (CMAKE_THREAD_PREFER_PTHREAD TRUE )
19
+ set (THREADS_PREFER_PTHREAD_FLAG TRUE )
20
+ find_package (Threads REQUIRED )
21
+ target_link_libraries (disjoint_pool PRIVATE Threads::Threads )
22
+ endif ()
23
+
17
24
target_include_directories (disjoint_pool PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
You can’t perform that action at this time.
0 commit comments