Skip to content

Commit c47cc9a

Browse files
authored
Merge branch 'master' into master
2 parents 3e5d100 + ccdab15 commit c47cc9a

File tree

439 files changed

+23853
-31684
lines changed

Some content is hidden

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

439 files changed

+23853
-31684
lines changed

.clang-format

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
BasedOnStyle: Google
2+
PointerAlignment: Left
3+
DerivePointerAlignment: false
4+
ColumnLimit: 120

.clang-format-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./src/database/kernels/*/*.hpp

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
strategy:
6464
matrix:
6565
config: [
66-
{os: windows-2019, arch: x64},
66+
{os: windows-2022, arch: x64},
6767
]
6868

6969
runs-on: ${{ matrix.config.os }}

.github/workflows/lint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint
2+
3+
on:
4+
pull_request: {}
5+
6+
jobs:
7+
ClangFormat:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: clang-format lint
12+
uses: DoozyX/clang-format-lint-action@v0.18.2
13+
with:
14+
clangFormatVersion: 18
15+
16+
GenerateScript:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Run the generator script
21+
run: python scripts/generator/generator.py .
22+
- name: Install requirements for Ubuntu
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -yq clang-format-18 --no-install-recommends
26+
27+
- name: Apply clang-formatting on the generated files
28+
run: |
29+
clang-format-18 -i include/*.h
30+
clang-format-18 -i src/*.cpp
31+
clang-format-18 -i test/*/*/*/*.cpp
32+
clang-format-18 -i test/*.hpp
33+
- name: Make sure there is no diff
34+
run: git diff --exit-code

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Development version (next version)
22
- Fixed compatibility with CMake 4.0
3+
- Applied clang-format code style formatting
34
- Added tuned parameters for many devices (see doc/tuning.md)
45

56
Version 1.6.3

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ Code improvements and additions
1616
Pull requests are welcome as long as they:
1717

1818
* Contain unit additions or modifications
19-
* Follow the CLBlast coding style, which is loosely based on the [Google C++ style guide](https://google-styleguide.googlecode.com/svn/trunk/cppguide.html) and the Effective C++ books by Scott Meyers. We use a tab-size of 2 spaces and a max-width of 100 characters.
19+
* Follow the CLBlast coding style as defined in the `.clang-format` file. It can be automatically applied by running `clang-format -i some_modified_file.cpp`.
2020
* Are made against the `master` branch.

include/clblast.h

Lines changed: 297 additions & 456 deletions
Large diffs are not rendered by default.

include/clblast_c.h

Lines changed: 1024 additions & 1277 deletions
Large diffs are not rendered by default.

include/clblast_cuda.h

Lines changed: 258 additions & 406 deletions
Large diffs are not rendered by default.

include/clblast_half.h

Lines changed: 305 additions & 201 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)