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 2424 build_type : Release
2525 compiler : {c: clang, cxx: clang++}
2626 libbacktrace : ' -DVAL_USE_LIBBACKTRACE_BACKTRACE=ON'
27+ - os : ' ubuntu-20.04'
28+ build_type : Release
29+ compiler : {c: gcc-7, cxx: g++-7}
2730
2831 runs-on : ${{matrix.os}}
2932
3538 sudo apt-get update
3639 sudo apt-get install -y doxygen ${{matrix.compiler.c}}
3740
41+ - name : Install g++-7
42+ if : matrix.compiler.cxx == 'g++-7'
43+ run : |
44+ sudo apt-get install -y ${{matrix.compiler.cxx}}
45+
3846 - name : Install pip packages
3947 run : pip install -r third_party/requirements.txt
4048
Original file line number Diff line number Diff line change @@ -96,8 +96,16 @@ if(UR_ENABLE_TRACING)
9696 set (XPTI_SOURCE_DIR ${xpti_SOURCE_DIR} )
9797 set (XPTI_DIR ${xpti_SOURCE_DIR} )
9898 set (XPTI_ENABLE_TESTS OFF CACHE INTERNAL "Turn off xptifw tests" )
99+
99100 FetchContentSparse_Declare(xptifw https://github.com/intel/llvm.git "sycl-nightly/20230304" "xptifw" )
101+
100102 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+
101109 set_target_properties (xptifw PROPERTIES
102110 LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
103111 )
Original file line number Diff line number Diff line change @@ -14,4 +14,11 @@ target_link_libraries(disjoint_pool PRIVATE
1414 unified_memory_allocation
1515 ${PROJECT_NAME} ::headers)
1616
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+
1724target_include_directories (disjoint_pool PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
You can’t perform that action at this time.
0 commit comments