-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stephane Rigaud <[email protected]>
- Loading branch information
Showing
295 changed files
with
14,068 additions
and
6,672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build & test | ||
name: Build | ||
|
||
on: | ||
push: | ||
|
@@ -7,11 +7,8 @@ on: | |
branches: [master] | ||
|
||
env: | ||
clespernato-kernels-git-tag: "d2348d964b1eaff60c60d7b3e18a59c2c8e3a84e" | ||
opencl-sdk-git-tag: "v2022.09.30" | ||
opencl-icd-loader-git-tag: "v2022.09.30" | ||
opencl-headers-git-tag: "v2022.09.30" | ||
opencl-clhpp-git-tag: "v2022.09.30" | ||
opencl-icd-loader-git-tag: "v2023.04.17" | ||
opencl-headers-git-tag: "v2023.04.17" | ||
|
||
jobs: | ||
build: | ||
|
@@ -45,7 +42,7 @@ jobs: | |
steps: | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4.6.1 | ||
uses: actions/setup-python@v5.0.0 | ||
with: | ||
python-version: 3.8 | ||
|
||
|
@@ -56,66 +53,66 @@ jobs: | |
shell: bash | ||
|
||
- name: Get specific version of CMake, Ninja | ||
uses: lukka/get-cmake@v3.26.4 | ||
uses: lukka/get-cmake@v3.27.7 | ||
|
||
- name: Install ocl-icd-loader - windows | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
cd .. | ||
git clone --branch ${{ env.opencl-icd-loader-git-tag }} https://github.com/KhronosGroup/OpenCL-ICD-Loader | ||
git clone --branch ${{ env.opencl-headers-git-tag }} https://github.com/KhronosGroup/OpenCL-Headers | ||
cmake -D CMAKE_INSTALL_PREFIX="${{ github.workspace }}/OpenCL-Headers/install" -S "./OpenCL-Headers" -B "./OpenCL-Headers/build" | ||
# cmake -D CMAKE_INSTALL_PREFIX="./OpenCL-Headers/install" -S "./OpenCL-Headers" -B "./OpenCL-Headers/build" | ||
cmake -S "./OpenCL-Headers" -B "./OpenCL-Headers/build" | ||
cmake --build "./OpenCL-Headers/build" --parallel 6 --target install | ||
cmake -D CMAKE_PREFIX_PATH="${{ github.workspace }}/OpenCL-Headers/install" -D OPENCL_ICD_LOADER_HEADERS_DIR="./OpenCL-Headers/install/include" -S "./OpenCL-ICD-Loader" -B "./OpenCL-ICD-Loader/build" -A x64 | ||
cmake -D CMAKE_PREFIX_PATH="./OpenCL-Headers" -D OPENCL_ICD_LOADER_HEADERS_DIR="./OpenCL-Headers/" -S "./OpenCL-ICD-Loader" -B "./OpenCL-ICD-Loader/build" -A x64 | ||
cmake --build "./OpenCL-ICD-Loader/build" --parallel 6 --target install --config Release | ||
shell: bash -l {0} | ||
|
||
- name: Install cuda toolkit (windows) | ||
if: matrix.os == 'windows-latest' | ||
uses: Jimver/[email protected] | ||
id: cuda-toolkit | ||
with: | ||
cuda: '12.1.0' | ||
# - name: Install cuda toolkit (windows) | ||
# if: matrix.os == 'windows-latest' | ||
# uses: Jimver/[email protected] | ||
# id: cuda-toolkit | ||
# with: | ||
# cuda: '12.1.0' | ||
|
||
- name: Install ocl-icd-loader - linux | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
cd .. | ||
git clone --branch ${{ env.opencl-icd-loader-git-tag }} https://github.com/KhronosGroup/OpenCL-ICD-Loader | ||
git clone --branch ${{ env.opencl-headers-git-tag }} https://github.com/KhronosGroup/OpenCL-Headers | ||
cmake -D CMAKE_INSTALL_PREFIX="${{ github.workspace }}/OpenCL-Headers/install" -S "./OpenCL-Headers" -B "./OpenCL-Headers/build" | ||
cmake --build "./OpenCL-Headers/build" --parallel 6 --target install | ||
cmake -D CMAKE_PREFIX_PATH="${{ github.workspace }}/OpenCL-Headers/install" -D OPENCL_ICD_LOADER_HEADERS_DIR="./OpenCL-Headers/install/include" -S "./OpenCL-ICD-Loader" -B "./OpenCL-ICD-Loader/build" | ||
cmake -S "./OpenCL-Headers" -B "./OpenCL-Headers/build" | ||
sudo cmake --build "./OpenCL-Headers/build" --parallel 6 --target install | ||
cmake -D CMAKE_PREFIX_PATH="./OpenCL-Headers/" -D OPENCL_ICD_LOADER_HEADERS_DIR="./OpenCL-Headers/" -S "./OpenCL-ICD-Loader" -B "./OpenCL-ICD-Loader/build" | ||
sudo cmake --build "./OpenCL-ICD-Loader/build" --parallel 6 --target install --config Release | ||
shell: bash -l {0} | ||
|
||
- name: Install cuda toolkit (ubuntu) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin | ||
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600 | ||
wget https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda-repo-ubuntu2204-12-1-local_12.1.1-530.30.02-1_amd64.deb | ||
sudo dpkg -i cuda-repo-ubuntu2204-12-1-local_12.1.1-530.30.02-1_amd64.deb | ||
sudo cp /var/cuda-repo-ubuntu2204-12-1-local/cuda-*-keyring.gpg /usr/share/keyrings/ | ||
sudo apt-get update | ||
sudo apt-get -y install cuda | ||
# - name: Install cuda toolkit (ubuntu) | ||
# if: matrix.os == 'ubuntu-latest' | ||
# run: | | ||
# wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin | ||
# sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600 | ||
# wget https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda-repo-ubuntu2204-12-1-local_12.1.1-530.30.02-1_amd64.deb | ||
# sudo dpkg -i cuda-repo-ubuntu2204-12-1-local_12.1.1-530.30.02-1_amd64.deb | ||
# sudo cp /var/cuda-repo-ubuntu2204-12-1-local/cuda-*-keyring.gpg /usr/share/keyrings/ | ||
# sudo apt-get update | ||
# sudo apt-get -y install cuda | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: compile CLIc - linux | ||
if: matrix.os == 'ubuntu-latest' | ||
run : | | ||
pwd | ||
cmake -S "${{ github.workspace }}" -B "${{ runner.workspace }}/build" -DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} -DBUILD_DOCUMENTATION=OFF -DBUILD_BENCHMARK=OFF -DOpenCL_LIBRARIES:FILEPATH="/usr/local/lib/libOpenCL.so" -DOpenCL_INCLUDE_DIRS:PATH="${{ github.workspace }}/OpenCL-Headers/install/include/" | ||
cmake -S "${{ github.workspace }}" -B "${{ runner.workspace }}/build" -DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} -DBUILD_DOCUMENTATION=OFF -DBUILD_BENCHMARK=OFF -DOpenCL_LIBRARIES:FILEPATH="/usr/local/lib/libOpenCL.so" -DOpenCL_INCLUDE_DIRS:PATH="/usr/local/include/" | ||
cmake --build "${{ runner.workspace }}/build" --parallel 10 --config Release | ||
shell: bash -l {0} | ||
|
||
- name: compile CLIc - windows | ||
if: matrix.os == 'windows-latest' | ||
run : | | ||
cmake -S "${{ github.workspace }}" -B "${{ runner.workspace }}/build" -DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} -DBUILD_DOCUMENTATION=OFF -DBUILD_BENCHMARK=OFF -DOpenCL_LIBRARIES:FILEPATH="C:/Program Files/OpenCL-ICD-Loader/lib/OpenCL.lib" -DOpenCL_INCLUDE_DIRS:PATH="${{ github.workspace }}/OpenCL-Headers/install/include/" | ||
cmake -S "${{ github.workspace }}" -B "${{ runner.workspace }}/build" -DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} -DBUILD_DOCUMENTATION=OFF -DBUILD_BENCHMARK=OFF -DOpenCL_LIBRARIES:FILEPATH="C:/Program Files/OpenCL-ICD-Loader/lib/OpenCL.lib" -DOpenCL_INCLUDE_DIRS:PATH="C:/Program Files (x86)/OpenCLHeaders/include/" | ||
cmake --build "${{ runner.workspace }}/build" --parallel 10 --config Release | ||
shell: bash -l {0} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: clang-format Check | ||
name: Clang-format | ||
on: [pull_request] | ||
jobs: | ||
formatting-check: | ||
|
@@ -7,7 +7,7 @@ jobs: | |
|
||
steps: | ||
- name: git checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run clang-format style check for C/C++ programs. | ||
uses: jidicula/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/pocc/pre-commit-hooks | ||
rev: v1.1.0 | ||
hooks: | ||
- id: clang-format | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.