Skip to content

Commit 8bf5596

Browse files
authored
Merge branch 'main' into yc/devicesan/fix-free-problems-0517
2 parents 66d6641 + ded4b88 commit 8bf5596

File tree

108 files changed

+2921
-1735
lines changed

Some content is hidden

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

108 files changed

+2921
-1735
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Run dependencies versions update
2+
version: 2
3+
updates:
4+
- package-ecosystem: "pip"
5+
directory: "/third_party" # Location of package manifests
6+
schedule:
7+
interval: "daily"
8+
# Run only required security updates
9+
open-pull-requests-limit: 0

.github/workflows/cmake.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ concurrency:
88

99
permissions:
1010
contents: read
11+
pull-requests: write
1112

1213
jobs:
1314
ubuntu-build:
@@ -191,6 +192,30 @@ jobs:
191192
with:
192193
name: NATIVE_CPU
193194

195+
e2e-level-zero:
196+
name: E2E L0
197+
permissions:
198+
contents: read
199+
pull-requests: write
200+
needs: [ubuntu-build, level-zero]
201+
uses: ./.github/workflows/e2e_level_zero.yml
202+
203+
e2e-opencl:
204+
name: E2E OpenCL
205+
permissions:
206+
contents: read
207+
pull-requests: write
208+
needs: [ubuntu-build, opencl]
209+
uses: ./.github/workflows/e2e_opencl.yml
210+
211+
e2e-cuda:
212+
name: E2E CUDA
213+
permissions:
214+
contents: read
215+
pull-requests: write
216+
needs: [ubuntu-build, cuda]
217+
uses: ./.github/workflows/e2e_cuda.yml
218+
194219
windows-build:
195220
name: Build - Windows
196221
strategy:

.github/workflows/e2e.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/e2e_core.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -178,20 +178,23 @@ jobs:
178178
id: tests
179179
run: ninja -C build-e2e check-sycl-e2e
180180

181-
- name: Add comment to PR
182-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
183-
if: ${{ always() }}
184-
with:
185-
script: |
186-
const adapter = '${{ matrix.adapter.name }}';
187-
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
188-
const test_status = '${{ steps.tests.outcome }}';
189-
const job_status = '${{ job.status }}';
190-
const body = `E2E ${adapter} build:\n${url}\nJob status: ${job_status}. Test status: ${test_status}`;
191-
192-
github.rest.issues.createComment({
193-
issue_number: context.issue.number,
194-
owner: context.repo.owner,
195-
repo: context.repo.repo,
196-
body: body
197-
})
181+
# FIXME: Requires pull-request: write permissions but this is only granted
182+
# on pull requests from forks if using pull_request_target workflow
183+
# trigger but not the pull_request trigger..
184+
# - name: Add comment to PR
185+
# uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
186+
# if: ${{ always() }}
187+
# with:
188+
# script: |
189+
# const adapter = '${{ matrix.adapter.name }}';
190+
# const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
191+
# const test_status = '${{ steps.tests.outcome }}';
192+
# const job_status = '${{ job.status }}';
193+
# const body = `E2E ${adapter} build:\n${url}\nJob status: ${job_status}. Test status: ${test_status}`;
194+
195+
# github.rest.issues.createComment({
196+
# issue_number: context.issue.number,
197+
# owner: context.repo.owner,
198+
# repo: context.repo.repo,
199+
# body: body
200+
# })

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ set(CMAKE_CXX_STANDARD 17)
2525
set(CMAKE_CXX_STANDARD_REQUIRED YES)
2626

2727
# Build Options
28+
option(UR_BUILD_EXAMPLES "Build example applications." ON)
2829
option(UR_BUILD_TESTS "Build unit tests." ON)
2930
option(UR_BUILD_TOOLS "build ur tools" ON)
3031
option(UR_FORMAT_CPP_STYLE "format code style of C++ sources" OFF)
@@ -258,7 +259,9 @@ install(
258259
EXPORT ${PROJECT_NAME}-targets)
259260

260261
add_subdirectory(source)
261-
add_subdirectory(examples)
262+
if(UR_BUILD_EXAMPLES)
263+
add_subdirectory(examples)
264+
endif()
262265
if(UR_BUILD_TESTS)
263266
add_subdirectory(test)
264267
endif()

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ List of options provided by CMake:
118118

119119
| Name | Description | Values | Default |
120120
| - | - | - | - |
121+
| UR_BUILD_EXAMPLES | Build example applications | ON/OFF | ON |
121122
| UR_BUILD_TESTS | Build the tests | ON/OFF | ON |
122123
| UR_BUILD_TOOLS | Build tools | ON/OFF | ON |
123124
| UR_FORMAT_CPP_STYLE | Format code style | ON/OFF | OFF |

0 commit comments

Comments
 (0)