forked from frozenca/BTree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simd(avx512) tests and binary_search tests (frozenca#9)
* prepare simd improvements * fix compile options for release build add cstdint into details.h * use ptrdiff_t instead of in for pointer subst * add intel sde for avx512f testing * fix github action * apt needs sudo * add clang build * fix indentation * use clang-15 for ubuntu * try to fix clang usage * try to use libc++ for clang * we cant use clang on ubuntu without gcc * ok revert libc++ usage * add macos * syntax error * use macos-13 * try to use macos-14 * revert macos to 13 and wrap header memory_resource * wrap std::pmr and std::experimental::pmr * fix error from clang-14 * add experimental link option for clang less or equal 14 --------- Co-authored-by: Alexander B <[email protected]>
- Loading branch information
Showing
6 changed files
with
79 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,3 +76,33 @@ jobs: | |
with: | ||
name: ${{ format('BTree-{0}.{1}', steps.get-version.outputs.prj_ver, steps.container.outputs.value) }} | ||
path: cmake-build-release/${{ format('BTree-{0}-noarch.???', steps.get-version.outputs.prj_ver) }} | ||
|
||
avx512f-gcc-cmake: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: sudo apt-get update -y && sudo apt-get install -yq binutils git make cmake catch2 gcc g++ lsb-release | ||
- name: mkdir | ||
run: mkdir cmake-build-release | ||
- name: cmake cmake-build-release | ||
run: cmake -DFORCE_USE_SIMD=ON -DCMAKE_BUILD_TYPE=Release -Bcmake-build-release -H. | ||
- name: cmake make | ||
run: cmake --build cmake-build-release/ --target all --parallel | ||
- name: sde-test | ||
uses: petarpetrovt/[email protected] | ||
- name: test | ||
run: cp cmake-build-release/fc_tests ${SDE_PATH} && cd ${SDE_PATH} && ./sde64 -knl -- ./fc_tests --benchmark-samples=1 | ||
|
||
macos-clang-cmake: | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: brew install git ninja cmake catch2 | ||
- name: mkdir | ||
run: mkdir cmake-build-release | ||
- name: cmake cmake-build-release | ||
run: cmake -DFORCE_PREFER_BINARY_SEARCH=ON -DCMAKE_BUILD_TYPE=Release -Bcmake-build-release -H. | ||
- name: cmake make | ||
run: cmake --build cmake-build-release/ --target all --parallel | ||
- name: test | ||
run: cd cmake-build-release && ctest && cd .. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
#define FC_DETAILS_H | ||
|
||
#include <concepts> | ||
#include <cstdint> | ||
|
||
namespace frozenca { | ||
|
||
|
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