From a9807f5f7568977486b86df31c4fd893539dc8e2 Mon Sep 17 00:00:00 2001 From: "Xiaodong, Li" Date: Tue, 7 Sep 2021 09:17:59 +0800 Subject: [PATCH 01/16] Will add sycl cts yml file (#38) Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/sycl_cts.yml diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml new file mode 100644 index 0000000000000..93f8c6b703046 --- /dev/null +++ b/.github/workflows/sycl_cts.yml @@ -0,0 +1,29 @@ +name: clang-format-check + +on: + pull_request: + branches: + - sycl + paths: + - '.github/workflows/sycl_cts.yml' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Get clang-format first + run: sudo apt-get install -y ninja cmake + + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + + - uses: actions/setup-python@v2 + with: + python-version: '3.7.8' + architecture: 'x86' + + - name: Run dependency: + run: | + python3 llvm_ci/intel/worker/tools/build.py -b sycl -p sycl -s dependency -c + From 8e5dc3f3371da3a62dc727b2144ebb2ed568bc27 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:20:48 -0700 Subject: [PATCH 02/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 93f8c6b703046..6c90e1742d1e1 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -27,3 +27,4 @@ jobs: run: | python3 llvm_ci/intel/worker/tools/build.py -b sycl -p sycl -s dependency -c + From 08ed1be67501e31c114f15a85e49b503f8f777b8 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:22:42 -0700 Subject: [PATCH 03/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/clang-format.yml | 30 ---------- .github/workflows/gh_pages.yml | 51 ---------------- .github/workflows/linux_post_commit.yml | 77 ------------------------- .github/workflows/sycl_cts.yml | 4 +- .github/workflows/sync-main.yml | 49 ---------------- 5 files changed, 2 insertions(+), 209 deletions(-) delete mode 100644 .github/workflows/clang-format.yml delete mode 100644 .github/workflows/gh_pages.yml delete mode 100644 .github/workflows/linux_post_commit.yml delete mode 100644 .github/workflows/sync-main.yml diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml deleted file mode 100644 index e55d3245435e4..0000000000000 --- a/.github/workflows/clang-format.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: clang-format-check - -on: - pull_request: - branches: - - sycl - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Get clang-format first - run: sudo apt-get install -yqq clang-format - - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - - name: Run clang-format for the patch - run: | - git diff --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} --name-only -- | grep -v "/test/" | xargs git diff -U0 --no-color ${GITHUB_SHA}^1 ${GITHUB_SHA} -- | ./clang/tools/clang-format/clang-format-diff.py -p1 -binary clang-format > ./clang-format.patch - - # Add patch with formatting fixes to CI job artifacts - - uses: actions/upload-artifact@v1 - with: - name: clang-format-patch - path: ./clang-format.patch - - - name: Check if clang-format patch is empty - run: bash -c "if [ -s ./clang-format.patch ]; then cat ./clang-format.patch; exit 1; fi" diff --git a/.github/workflows/gh_pages.yml b/.github/workflows/gh_pages.yml deleted file mode 100644 index 08fa5cce9cc77..0000000000000 --- a/.github/workflows/gh_pages.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Generate Doxygen documentation - -on: - schedule: - - cron: 0 1 * * * - -jobs: - build: - runs-on: ubuntu-latest - if: github.repository == 'intel/llvm' - steps: - - uses: actions/checkout@v2 - with: - ref: sycl - path: repo - - name: Install deps - run: | - sudo apt-get install -y doxygen graphviz ssh ninja-build - sudo pip3 install 'sphinx==4.1.2' 'myst-parser==0.15.1' - - name: Build Docs - run: | - mkdir -p $GITHUB_WORKSPACE/build - cd $GITHUB_WORKSPACE/build - python $GITHUB_WORKSPACE/repo/buildbot/configure.py -w $GITHUB_WORKSPACE \ - -s $GITHUB_WORKSPACE/repo -o $GITHUB_WORKSPACE/build -t Release --docs - cmake --build . --target doxygen-sycl - cmake --build . --target doxygen-clang - cmake --build . --target docs-sycl-html - cmake --build . --target docs-clang-html - - name: Deploy - env: - SSH_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}} - run: | - mkdir -p ~/.ssh - echo "$SSH_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - eval "$(ssh-agent -s)" - ssh-add -k ~/.ssh/id_rsa - git clone git@github.com:intel/llvm-docs.git docs - cd $GITHUB_WORKSPACE/docs - git rm -rf . - touch .nojekyll - yes | \cp -rf $GITHUB_WORKSPACE/build/tools/sycl/doc/html/* . - mv $GITHUB_WORKSPACE/build/tools/sycl/doc/doxygen/html doxygen/ - mv $GITHUB_WORKSPACE/build/tools/clang/docs/html clang/ - mv $GITHUB_WORKSPACE/build/tools/clang/docs/doxygen/html clang_doxygen/ - git config --global user.name "iclsrc" - git config --global user.email "ia.compiler.tools.git@intel.com" - git add . - git diff-index --quiet HEAD || git commit -m "Update docs" -s - git push diff --git a/.github/workflows/linux_post_commit.yml b/.github/workflows/linux_post_commit.yml deleted file mode 100644 index 7f52843937315..0000000000000 --- a/.github/workflows/linux_post_commit.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Linux Post Commit Checks - -on: - push: - branches: - - sycl -jobs: - check: - runs-on: ubuntu-18.04 - if: github.repository == 'intel/llvm' - strategy: - fail-fast: false - matrix: - config: ["Default", "SharedLibs", "NoAssertions"] - - steps: - - uses: actions/checkout@v2 - with: - path: src - - name: Install Ubuntu deps - run: sudo apt install -y ninja-build - - name: Configure - run: | - CONFIG=${{ matrix.config }} - case $CONFIG in - Default) - export ARGS="" - ;; - SharedLibs) - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main" - sudo apt-get update - sudo apt-get install -y clang-12 - export ARGS="--shared-libs" - export CC="clang-12" - export CXX="clang++-12" - ;; - NoAssertions) - export ARGS="--no-assertions" - ;; - esac - mkdir -p $GITHUB_WORKSPACE/build - cd $GITHUB_WORKSPACE/build - python3 $GITHUB_WORKSPACE/src/buildbot/configure.py -w $GITHUB_WORKSPACE \ - -s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release $ARGS - - name: Compile - run: | - python3 $GITHUB_WORKSPACE/src/buildbot/compile.py -w $GITHUB_WORKSPACE \ - -s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build - - name: check-llvm - if: always() - run: | - python3 $GITHUB_WORKSPACE/src/buildbot/check.py -w $GITHUB_WORKSPACE \ - -s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t check-llvm - - name: check-clang - if: always() - run: | - python3 $GITHUB_WORKSPACE/src/buildbot/check.py -w $GITHUB_WORKSPACE \ - -s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t check-clang - - name: check-sycl - if: always() - run: | - python3 $GITHUB_WORKSPACE/src/buildbot/check.py -w $GITHUB_WORKSPACE \ - -s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t check-sycl - - name: check-llvm-spirv - if: always() - run: | - python3 $GITHUB_WORKSPACE/src/buildbot/check.py -w $GITHUB_WORKSPACE \ - -s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t check-llvm-spirv - - name: Pack - run: tar -czvf llvm_sycl.tar.gz -C $GITHUB_WORKSPACE/build/install . - - name: Upload artifacts - uses: actions/upload-artifact@v1 - with: - name: sycl_linux_${{ matrix.config }} - path: llvm_sycl.tar.gz - diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 6c90e1742d1e1..c68f62393f2ef 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -4,8 +4,8 @@ on: pull_request: branches: - sycl - paths: - - '.github/workflows/sycl_cts.yml' + paths: + - '.github/workflows/sycl_cts.yml' jobs: build: diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml deleted file mode 100644 index 6eb842af5bb0d..0000000000000 --- a/.github/workflows/sync-main.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: automatic sync main branch from llvm-project to llvm - -on: - schedule: - - cron: '0 */1 * * *' -jobs: - sync: - runs-on: ubuntu-latest - if: github.repository == 'intel/llvm' - steps: - - uses: actions/checkout@v2 - with: - # persist-credentials: false allows us to use our own credentials for - # pushing to the repository. Otherwise, the default github actions token - # is used. - persist-credentials: false - fetch-depth: 0 - path: src - - name: Sync - env: - BRANCH: main - SYNC_REPO: https://github.com/llvm/llvm-project - LLVMBOT_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }} - run: | - cd $GITHUB_WORKSPACE/src - branch_exist=`git ls-remote --heads origin $BRANCH | wc -l` - if [ $branch_exist -ne 0 ]; then - git checkout $BRANCH - git pull --ff --ff-only $SYNC_REPO $BRANCH - if [ $? -ne 0 ]; then - echo "failed to pull from $SYNC_REPO $BRANCH, abort" - exit 1 - fi - git_status=`git rev-list --count --left-right origin/$BRANCH...$BRANCH` - if [ "0 0" == "$git_status" ] ; then - echo "no change, skip" - elif [[ "$git_status" = 0* ]] ; then - git push https://$LLVMBOT_TOKEN@github.com/${{ github.repository }} ${BRANCH} - else - echo "$BRANCH branch invalid state" - exit 1 - fi - else - git remote add upstream $SYNC_REPO - git fetch upstream - git checkout -B $BRANCH upstream/$BRANCH - git push https://$LLVMBOT_TOKEN@github.com/${{ github.repository }} ${BRANCH} - fi - echo "sync finished" From c93bd2a8fc676a8e663181bfece4afbe70e7cfaa Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:24:43 -0700 Subject: [PATCH 04/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index c68f62393f2ef..b742b1bc6f56b 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Get clang-format first + - name: Prepare Env run: sudo apt-get install -y ninja cmake - uses: actions/checkout@v2 @@ -23,7 +23,7 @@ jobs: python-version: '3.7.8' architecture: 'x86' - - name: Run dependency: + - name: Run dependency run: | python3 llvm_ci/intel/worker/tools/build.py -b sycl -p sycl -s dependency -c From 3027f053280cfa3fcb127c684eec921270cf0746 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:27:44 -0700 Subject: [PATCH 05/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index b742b1bc6f56b..d52b9841ffe8e 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -12,8 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Prepare Env - run: sudo apt-get install -y ninja cmake - + run: sudo apt-get install -y ninja-build cmake + - uses: actions/checkout@v2 with: fetch-depth: 2 From df2230ed4f17cff5e964ebe4e2bcad9e81d7e269 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:35:15 -0700 Subject: [PATCH 06/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index d52b9841ffe8e..3a449c544e431 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Prepare Env run: sudo apt-get install -y ninja-build cmake @@ -21,7 +21,6 @@ jobs: - uses: actions/setup-python@v2 with: python-version: '3.7.8' - architecture: 'x86' - name: Run dependency run: | From 1b340810e7280aa14137ad779bfffbbc722c07a7 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:39:07 -0700 Subject: [PATCH 07/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 3a449c544e431..6736670968887 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -16,7 +16,12 @@ jobs: - uses: actions/checkout@v2 with: - fetch-depth: 2 + fetch-depth: 1 + + - uses: otcshare/llvm_ci@master + with: + fetch-depth: 1 + - uses: actions/setup-python@v2 with: From cfbf7fbc694a894d1e857779b274caa35f1edac6 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:45:12 -0700 Subject: [PATCH 08/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 6736670968887..106232a110223 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -16,13 +16,19 @@ jobs: - uses: actions/checkout@v2 with: + # persist-credentials: false allows us to use our own credentials for + # pushing to the repository. Otherwise, the default github actions token + # is used. + persist-credentials: false fetch-depth: 1 + repository: otcshare/llvm_ci + path: llvm_ci - - uses: otcshare/llvm_ci@master + - uses: actions/checkout@v2 with: fetch-depth: 1 + path: llvm.src - - uses: actions/setup-python@v2 with: python-version: '3.7.8' From 446b670fce990fb0ddd9d9398fca74f017323b9a Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:48:32 -0700 Subject: [PATCH 09/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 106232a110223..389abdcd03a98 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -21,8 +21,9 @@ jobs: # is used. persist-credentials: false fetch-depth: 1 - repository: otcshare/llvm_ci + name: otcshare/llvm_ci path: llvm_ci + ref: master - uses: actions/checkout@v2 with: From 6de665907ff86f1d98913bc57a6d7d9605290bae Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:50:00 -0700 Subject: [PATCH 10/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 389abdcd03a98..c6cd614a721ab 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -21,7 +21,7 @@ jobs: # is used. persist-credentials: false fetch-depth: 1 - name: otcshare/llvm_ci + repository: otcshare/llvm_ci path: llvm_ci ref: master From 0fe2d785236745494b55011a6dc64df0dac7b103 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 18:57:59 -0700 Subject: [PATCH 11/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index c6cd614a721ab..de3b4a5469882 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -22,6 +22,7 @@ jobs: persist-credentials: false fetch-depth: 1 repository: otcshare/llvm_ci + token: ${{ secrets.DOYLELI_DEBUG_TOKEN }} path: llvm_ci ref: master From 2c133669a748bc8de2ab8dc14ba6443b91068ff5 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 19:05:16 -0700 Subject: [PATCH 12/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index de3b4a5469882..6d1cacfa6393b 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -37,6 +37,6 @@ jobs: - name: Run dependency run: | - python3 llvm_ci/intel/worker/tools/build.py -b sycl -p sycl -s dependency -c + python3 -u llvm.src/buildbot/dependency.py -n 702 -b sycl -d sycl -w $PWD -s llvm.src -o llvm.obj -c From b1be6447017f3c7d9c30f2b907088f831e9e3c59 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 20:03:06 -0700 Subject: [PATCH 13/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 6d1cacfa6393b..6f737d5dbbcad 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Prepare Env - run: sudo apt-get install -y ninja-build cmake + run: sudo apt-get install -y ninja-build cmake build-essential - uses: actions/checkout@v2 with: @@ -35,8 +35,12 @@ jobs: with: python-version: '3.7.8' + - name: Run compile + run: | + mkdir llvm.obj + - name: Run dependency run: | - python3 -u llvm.src/buildbot/dependency.py -n 702 -b sycl -d sycl -w $PWD -s llvm.src -o llvm.obj -c + python3 -u llvm.src/buildbot/dependency.py -n 702 -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj -c From 95ea192df7187b26e203dc53d654d9c94a13cf63 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 20:17:01 -0700 Subject: [PATCH 14/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 6f737d5dbbcad..27e3ad33c4585 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -35,12 +35,22 @@ jobs: with: python-version: '3.7.8' - - name: Run compile + - name: Prepare obj folder run: | mkdir llvm.obj - - name: Run dependency + - name: Dependency Step run: | - python3 -u llvm.src/buildbot/dependency.py -n 702 -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj -c + python3 -u llvm.src/buildbot/dependency.py -n ${{ GITHUB_RUN_NUMBER }} -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj -c + + - name: Configure Step + run: | + python3 -u llvm.src/buildbot/configure.py -n ${{ GITHUB_RUN_NUMBER }} -b sycl -d sycl -t Release -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj + + - name: Build Step + run: | + python3 -u llvm.src/buildbot/compile.py -n ${{ GITHUB_RUN_NUMBER }} -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj + + From f29f2c5d8f6248391f1aad170b6399965821e9dc Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Mon, 6 Sep 2021 22:06:28 -0700 Subject: [PATCH 15/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index 27e3ad33c4585..e4e8dacb8c252 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -41,15 +41,15 @@ jobs: - name: Dependency Step run: | - python3 -u llvm.src/buildbot/dependency.py -n ${{ GITHUB_RUN_NUMBER }} -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj -c + python3 -u llvm.src/buildbot/dependency.py -n $GITHUB_RUN_NUMBER -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj -c - name: Configure Step run: | - python3 -u llvm.src/buildbot/configure.py -n ${{ GITHUB_RUN_NUMBER }} -b sycl -d sycl -t Release -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj + python3 -u llvm.src/buildbot/configure.py -n $GITHUB_RUN_NUMBER -b sycl -d sycl -t Release -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj - name: Build Step run: | - python3 -u llvm.src/buildbot/compile.py -n ${{ GITHUB_RUN_NUMBER }} -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj + python3 -u llvm.src/buildbot/compile.py -n $GITHUB_RUN_NUMBER -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj From 308b978e16d1fb3dc788764b5d463b341ac69a32 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Tue, 7 Sep 2021 00:39:28 -0700 Subject: [PATCH 16/16] Will debug github actions Signed-off-by: Xiaodong Li --- .github/workflows/sycl_cts.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/sycl_cts.yml b/.github/workflows/sycl_cts.yml index e4e8dacb8c252..0ce96482297f2 100644 --- a/.github/workflows/sycl_cts.yml +++ b/.github/workflows/sycl_cts.yml @@ -1,4 +1,4 @@ -name: clang-format-check +name: sycl_cts_cpu on: pull_request: @@ -14,6 +14,12 @@ jobs: - name: Prepare Env run: sudo apt-get install -y ninja-build cmake build-essential + + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + path: llvm.src + - uses: actions/checkout@v2 with: # persist-credentials: false allows us to use our own credentials for @@ -21,15 +27,10 @@ jobs: # is used. persist-credentials: false fetch-depth: 1 - repository: otcshare/llvm_ci + repository: KhronosGroup/SYCL-CTS token: ${{ secrets.DOYLELI_DEBUG_TOKEN }} - path: llvm_ci - ref: master - - - uses: actions/checkout@v2 - with: - fetch-depth: 1 - path: llvm.src + path: icl_tst-sycl-cts + ref: a80827e6d3cc0d92327ebe91c0a687807b972d65 - uses: actions/setup-python@v2 with: @@ -51,6 +52,16 @@ jobs: run: | python3 -u llvm.src/buildbot/compile.py -n $GITHUB_RUN_NUMBER -b sycl -d sycl -w $PWD -s $PWD/llvm.src -o $PWD/llvm.obj + - name: SYCL_CTS Step + run: | + mkdir build + cd build; cmake -G "Ninja" -DSYCL_IMPLEMENTATION=Intel_SYCL -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="" -DINTEL_SYCL_ROOT=$PWD/..//llvm.obj -DOpenCL_INCLUDE_DIR=$PWD/..//llvm.obj/include/sycl -DOpenCL_LIBRARY=$PWD/..//llvm.obj/lib/libOpenCL.so -Dopencl_platform_name=intel -Dopencl_device_name=opencl_cpu $PWD/..//icl_tst-sycl-cts + ninja -j 2 + ctest --verbose -j 2 -R test_buffer_opencl$ --timeout 2800 + + + +