Skip to content

Commit 7835bc8

Browse files
Merge branch 'main' into interrupt-based
2 parents d50a873 + 3609cd6 commit 7835bc8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1970
-992
lines changed

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ loader:
3131
opencl:
3232
- changed-files:
3333
- any-glob-to-any-file:
34-
- source/adapter/opencl/**
34+
- source/adapters/opencl/**
3535

3636
level-zero:
3737
- changed-files:

.github/workflows/cmake.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,12 @@ jobs:
256256
compiler: {c: clang-cl, cxx: clang-cl}
257257

258258
build_type: [Debug, Release]
259-
compiler: [{c: cl, cxx: cl}, {c: clang-cl, cxx: clang-cl}]
259+
# TODO: clang-cl seems to be fully broken (https://github.com/oneapi-src/unified-runtime/issues/2348)
260+
#compiler: [{c: cl, cxx: cl}, {c: clang-cl, cxx: clang-cl}]
261+
compiler: [{c: cl, cxx: cl}]
260262
include:
261-
- compiler: {c: clang-cl, cxx: clang-cl}
262-
toolset: "-T ClangCL"
263+
#- compiler: {c: clang-cl, cxx: clang-cl}
264+
# toolset: "-T ClangCL"
263265
- os: 'windows-2022'
264266
adapter: {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON -DUR_STATIC_ADAPTER_L0=ON'}
265267
build_type: 'Release'

CMakeLists.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@ include(CheckCXXSourceCompiles)
1616
include(CMakePackageConfigHelpers)
1717
include(CTest)
1818

19-
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
20-
include(helpers)
21-
22-
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
23-
set(Python3_FIND_FRAMEWORK NEVER)
24-
set(Python3_FIND_STRATEGY LOCATION)
25-
endif()
26-
27-
find_package(Python3 COMPONENTS Interpreter REQUIRED)
28-
29-
set(CMAKE_CXX_STANDARD 17)
30-
set(CMAKE_CXX_STANDARD_REQUIRED YES)
31-
3219
# Build Options
3320
option(UR_BUILD_EXAMPLES "Build example applications." ON)
3421
option(UR_BUILD_TESTS "Build unit tests." ON)
@@ -81,6 +68,19 @@ set(UR_ADAPTER_HIP_SOURCE_DIR "" CACHE PATH
8168
set(UR_ADAPTER_NATIVE_CPU_SOURCE_DIR "" CACHE PATH
8269
"Path to external 'native_cpu' adapter source dir")
8370

71+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
72+
include(helpers)
73+
74+
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
75+
set(Python3_FIND_FRAMEWORK NEVER)
76+
set(Python3_FIND_STRATEGY LOCATION)
77+
endif()
78+
79+
find_package(Python3 COMPONENTS Interpreter REQUIRED)
80+
81+
set(CMAKE_CXX_STANDARD 17)
82+
set(CMAKE_CXX_STANDARD_REQUIRED YES)
83+
8484
# There's little reason not to generate the compile_commands.json
8585
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
8686

0 commit comments

Comments
 (0)