Skip to content

Implementations of C++20 concepts and requires#120

Open
dbrundu wants to merge 19 commits into
MultithreadCorner:develop-hydra4from
dbrundu:devel-concepts
Open

Implementations of C++20 concepts and requires#120
dbrundu wants to merge 19 commits into
MultithreadCorner:develop-hydra4from
dbrundu:devel-concepts

Conversation

@dbrundu

@dbrundu dbrundu commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

We implemented C++20 concepts in Hydra and introduced requires statements, in order to replace many verbose constraints on template arguments to take benefit of SFINAE rule, by using enable_if<>.

Tested compilation:

  • Host backends (CPP / OMP / TBB): full build of the examples + test suite, all unit tests pass (Catch2). GCC 15.2.1, --std=c++20.

  • CUDA backend: compiles cleanly under nvcc CUDA 12.6.2 (nvcc V12.6.77, host compiler GCC 11.4.0), --std=c++20, -arch=sm_70. The full example set + test suite were compile-verified.

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