SpeciaLUT
relion
SpeciaLUT | relion | |
---|---|---|
3 | 1 | |
26 | 426 | |
- | 2.1% | |
3.4 | 5.9 | |
7 months ago | 5 days ago | |
C++ | C++ | |
BSD 2-clause "Simplified" License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
SpeciaLUT
-
C++ Show and Tell - December 2022
I made SpeciaLUT to convert bool/enum runtime tests to compile-time conditionals — by compiling all branching combinations in hot functions and saving them in a lookup-table, so the optimal one can be called at runtime. Reason: as an HPC consultant I encountered many codes that grew without good architecture, in which features would just be added and branching would propagate through all levels. This yields 10% to 50% performance increase in such codes.
-
Runtime-constant propagation and branching optimization strategy
I have implemented this as a C++ library, where you extract const states as template parameters, and the library compiles all specializations and allows you to choose the optimal one at runtime.
-
Runtime calling of a template specialisation using compile-time LUTs
So here's my C++20 implementation of the above: SpeciaLUT
relion
What are some alternatives?
biteopt - Derivative-Free Global Optimization Method (C++, Python binding)
AdaptiveCpp - Implementation of SYCL and C++ standard parallelism for CPUs and GPUs from all vendors: The independent, community-driven compiler for C++-based heterogeneous programming models. Lets applications adapt themselves to all the hardware in the system - even at runtime!
uninttp - A universal type for non-type template parameters for C++20 or later.
vpic - Vector Particle-In-Cell (VPIC) Project
introspective - Compile-Time Reflection in C++ for use with Scripting Languages
ArrayFire - ArrayFire: a general purpose GPU library.
with-branching - An implementation of macroexpand-time conditionalization.
ParallelReductionsBenchmark - Thrust, CUB, TBB, AVX2, CUDA, OpenCL, OpenMP, SyCL - all it takes to sum a lot of numbers fast!
static_string - Experimental compile-time string manipulation C++17 library
BioExplorer - The Blue Brain BioExplorer (BBBE) is a tool for data visualization experts and scientists to extract and analyze scientific data from visualization and interactive exploration
LazyMath - Complex Conjugate Gradient linear solver and Levenberg-Marquardt minimizer with and without constraints in C++
cuda-api-wrappers - Thin C++-flavored header-only wrappers for core CUDA APIs: Runtime, Driver, NVRTC, NVTX.