Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n-body improvements #813

Merged
merged 9 commits into from
Dec 27, 2023
Merged

Conversation

bernhardmgruber
Copy link
Member

@bernhardmgruber bernhardmgruber commented Dec 21, 2023

Improve and simplify the n-body examples:

  • Replace all multithreading by simple omp parallel for
  • Use only CT bit counts for bitpacking mappings
  • Add a script to check whether the compiler generated rsqrt instructions
  • Fix a typo and add some documentation
  • Disable clang-tidy warning *-qualified-auto
  • Rename allocViewStack to allocScalarView

This makes it simple to test the benchmark with a custom thread count by just setting the OMP_NUM_THREADS environment variable.
The version with compile-time bit counts is what one should use in production.
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6825e0d) 98.77% compared to head (27b5bd8) 98.77%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #813   +/-   ##
========================================
  Coverage    98.77%   98.77%           
========================================
  Files           75       75           
  Lines         7350     7350           
========================================
  Hits          7260     7260           
  Misses          90       90           

Disable: llvm-qualified-auto,readability-qualified-auto
To suppress e.g.:
'const auto title' can be declared as 'const auto *const title'
examples/alpaka/nbody/nbody.cpp:166:80: error: reference to local variable 'mapping' declared in enclosing lambda expression
                return allocViewUninitialized(mapping, llama::bloballoc::Array<mapping.blobSize(0)>{});
@bernhardmgruber bernhardmgruber merged commit 6e9ea66 into alpaka-group:develop Dec 27, 2023
30 of 32 checks passed
@bernhardmgruber bernhardmgruber deleted the rsqrt branch December 27, 2023 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant