Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
c62d8316
Commit
c62d8316
authored
Feb 01, 2024
by
Aarni Koskela
Browse files
CI: don't include compiler type in matrix
parent
f7187705
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
22 deletions
+15
-22
.github/workflows/cmake.yml
.github/workflows/cmake.yml
+15
-22
No files found.
.github/workflows/cmake.yml
View file @
c62d8316
...
@@ -23,19 +23,6 @@ jobs:
...
@@ -23,19 +23,6 @@ jobs:
python-version
:
[
'
3.10'
,
'
3.11'
]
python-version
:
[
'
3.10'
,
'
3.11'
]
cuda-version
:
[
'
11.8'
,
'
12.1'
]
cuda-version
:
[
'
11.8'
,
'
12.1'
]
build_type
:
[
Release
]
build_type
:
[
Release
]
c_compiler
:
[
gcc
,
cl
]
include
:
-
os
:
windows-latest
c_compiler
:
cl
cpp_compiler
:
cl
-
os
:
ubuntu-latest
c_compiler
:
gcc
cpp_compiler
:
g++
exclude
:
-
os
:
ubuntu-latest
c_compiler
:
cl
-
os
:
windows-latest
c_compiler
:
gcc
steps
:
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/checkout@v4
...
@@ -101,8 +88,13 @@ jobs:
...
@@ -101,8 +88,13 @@ jobs:
echo CUDA_PATH=$CUDA_HOME >> "$GITHUB_ENV"
echo CUDA_PATH=$CUDA_HOME >> "$GITHUB_ENV"
if [ "${{ matrix.os }}" = "windows-latest" ]; then
if [ "${{ matrix.os }}" = "windows-latest" ]; then
echo CXX_COMPILER=cl >> "$GITHUB_ENV"
echo C_COMPILER=cl >> "$GITHUB_ENV"
# without -DCMAKE_CUDA_COMPILER=nvcc, cmake config always fail for cuda-11.8
# without -DCMAKE_CUDA_COMPILER=nvcc, cmake config always fail for cuda-11.8
echo DCMAKE_CUDA_COMPILER=-DCMAKE_CUDA_COMPILER=nvcc >> "$GITHUB_ENV"
echo DCMAKE_CUDA_COMPILER=-DCMAKE_CUDA_COMPILER=nvcc >> "$GITHUB_ENV"
else
echo CXX_COMPILER=g++ >> "$GITHUB_ENV"
echo C_COMPILER=gcc >> "$GITHUB_ENV"
fi
fi
nvcc --version
nvcc --version
...
@@ -113,26 +105,27 @@ jobs:
...
@@ -113,26 +105,27 @@ jobs:
-
name
:
Prep build
-
name
:
Prep build
run
:
python -m pip install cmake==3.27.9 ninja setuptools wheel
run
:
python -m pip install cmake==3.27.9 ninja setuptools wheel
-
name
:
Configure CMake
# TODO: the following steps (CUDA, NOBLASLT, CPU) could be moved to the matrix, so they're built in parallel
-
name
:
Configure CUDA
run
:
>
run
:
>
cmake -B ${{ steps.strings.outputs.build-output-dir }}
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-G Ninja ${{ env.DCMAKE_CUDA_COMPILER }}
-G Ninja ${{ env.DCMAKE_CUDA_COMPILER }}
-DCMAKE_CXX_COMPILER=${{
matrix.cpp_compiler
}}
-DCMAKE_CXX_COMPILER=${{
env.CXX_COMPILER
}}
-DCMAKE_C_COMPILER=${{
matrix.c_compiler
}}
-DCMAKE_C_COMPILER=${{
env.C_COMPILER
}}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCOMPUTE_CAPABILITY="50;52;60;61;62;70;72;75;80;86;87;89;90"
-DCOMPUTE_CAPABILITY="50;52;60;61;62;70;72;75;80;86;87;89;90"
-S ${{ github.workspace }}
-S ${{ github.workspace }}
-
name
:
Build
-
name
:
Build CUDA
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run
:
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
run
:
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
-
name
:
Configure NOBLASLT
-
name
:
Configure NOBLASLT
run
:
>
run
:
>
cmake -B ${{ steps.strings.outputs.build-output-dir }}
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-G Ninja ${{ env.DCMAKE_CUDA_COMPILER }}
-G Ninja ${{ env.DCMAKE_CUDA_COMPILER }}
-DCMAKE_CXX_COMPILER=${{
matrix.cpp_compiler
}}
-DCMAKE_CXX_COMPILER=${{
env.CXX_COMPILER
}}
-DCMAKE_C_COMPILER=${{
matrix.c_compiler
}}
-DCMAKE_C_COMPILER=${{
env.C_COMPILER
}}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCOMPUTE_CAPABILITY="50;52;60;61;62;70;72;75;80;86;87;89;90"
-DCOMPUTE_CAPABILITY="50;52;60;61;62;70;72;75;80;86;87;89;90"
-DNO_CUBLASLT=ON
-DNO_CUBLASLT=ON
...
@@ -145,8 +138,8 @@ jobs:
...
@@ -145,8 +138,8 @@ jobs:
run
:
>
run
:
>
cmake -B ${{ steps.strings.outputs.build-output-dir }}
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-G Ninja ${{ env.DCMAKE_CUDA_COMPILER }}
-G Ninja ${{ env.DCMAKE_CUDA_COMPILER }}
-DCMAKE_CXX_COMPILER=${{
matrix.cpp_compiler
}}
-DCMAKE_CXX_COMPILER=${{
env.CXX_COMPILER
}}
-DCMAKE_C_COMPILER=${{
matrix.c_compiler
}}
-DCMAKE_C_COMPILER=${{
env.C_COMPILER
}}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DNO_CUBLASLT=ON
-DNO_CUBLASLT=ON
-DBUILD_CUDA=OFF
-DBUILD_CUDA=OFF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment