Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
KRM7 committed Aug 18, 2023
1 parent cd227aa commit 5124ff2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
-readability-container-data-pointer,
-readability-suspicious-call-argument,
-readability-implicit-bool-conversion,
-readability-uppercase-literal-suffix,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-cppcoreguidelines-special-member-functions,
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,16 @@ jobs:
build-type: [ Release, RelWithDebInfo ]
compiler: [
{ cxx: g++-11, pkgs: gcc-11 libtbb-dev },
#{ cxx: g++-12, pkgs: gcc-12 libtbb-dev }, # disabled because of warnings in the std library
{ cxx: g++-12, pkgs: gcc-12 libtbb-dev },
{ cxx: clang++-14, pkgs: clang-14 libtbb-dev },
{ cxx: clang++-15, pkgs: clang-15 libtbb-dev },
]
lib-type: [
{ name: Static, cmake-flag: "OFF" },
{ name: Shared, cmake-flag: "ON" },
]

defaults:
run:
working-directory: ${{ github.workspace }}/build

name: ${{ matrix.compiler.cxx }}, ${{ matrix.build-type }}, ${{ matrix.lib-type.name }}
name: ${{ matrix.compiler.cxx }}, ${{ matrix.build-type }}

steps:
- name: checkout-repo
Expand All @@ -41,7 +37,7 @@ jobs:
- name: setup-build
env:
CXX: ${{ matrix.compiler.cxx }}
run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DGAPP_LINK_TBB=ON -DBUILD_SHARED_LIBS=${{ matrix.lib-type.cmake-flag }}
run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DGAPP_LINK_TBB=ON -DBUILD_SHARED_LIBS=OFF

- name: build
run: cmake --build . --parallel
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ else() # GNU style compiler interface
endif()

set(GAPP_OPT_FLAGS "-O3 -fno-math-errno -fno-trapping-math -freciprocal-math -fno-signed-zeros -fno-associative-math -fno-finite-math-only")

if(GAPP_USE_MARCH_NATIVE)
set(GAPP_OPT_FLAGS "${GAPP_OPT_FLAGS} -march=native")
endif()
Expand Down
4 changes: 3 additions & 1 deletion src/utility/rng.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ namespace gapp::rng
GAPP_ASSERT(n >= 0);
GAPP_ASSERT(0.0 <= p && p <= 1.0);

return std::binomial_distribution{ n, p }(rng::prng);
std::binomial_distribution dist(n, p);

return dist(rng::prng);
}

template<std::integral IntType>
Expand Down

0 comments on commit 5124ff2

Please sign in to comment.