Skip to content

Commit

Permalink
Merge branch 'main' into yc/devicesan/fix-free-problems-0517
Browse files Browse the repository at this point in the history
  • Loading branch information
yingcong-wu authored Jun 20, 2024
2 parents 66d6641 + ded4b88 commit 8bf5596
Show file tree
Hide file tree
Showing 108 changed files with 2,921 additions and 1,735 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Run dependencies versions update
version: 2
updates:
- package-ecosystem: "pip"
directory: "/third_party" # Location of package manifests
schedule:
interval: "daily"
# Run only required security updates
open-pull-requests-limit: 0
25 changes: 25 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ concurrency:

permissions:
contents: read
pull-requests: write

jobs:
ubuntu-build:
Expand Down Expand Up @@ -191,6 +192,30 @@ jobs:
with:
name: NATIVE_CPU

e2e-level-zero:
name: E2E L0
permissions:
contents: read
pull-requests: write
needs: [ubuntu-build, level-zero]
uses: ./.github/workflows/e2e_level_zero.yml

e2e-opencl:
name: E2E OpenCL
permissions:
contents: read
pull-requests: write
needs: [ubuntu-build, opencl]
uses: ./.github/workflows/e2e_opencl.yml

e2e-cuda:
name: E2E CUDA
permissions:
contents: read
pull-requests: write
needs: [ubuntu-build, cuda]
uses: ./.github/workflows/e2e_cuda.yml

windows-build:
name: Build - Windows
strategy:
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/e2e.yml

This file was deleted.

37 changes: 20 additions & 17 deletions .github/workflows/e2e_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,20 +178,23 @@ jobs:
id: tests
run: ninja -C build-e2e check-sycl-e2e

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

# github.rest.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: body
# })
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)

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

add_subdirectory(source)
add_subdirectory(examples)
if(UR_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(UR_BUILD_TESTS)
add_subdirectory(test)
endif()
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ List of options provided by CMake:

| Name | Description | Values | Default |
| - | - | - | - |
| UR_BUILD_EXAMPLES | Build example applications | ON/OFF | ON |
| UR_BUILD_TESTS | Build the tests | ON/OFF | ON |
| UR_BUILD_TOOLS | Build tools | ON/OFF | ON |
| UR_FORMAT_CPP_STYLE | Format code style | ON/OFF | OFF |
Expand Down
Loading

0 comments on commit 8bf5596

Please sign in to comment.