-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workaround for disappearing assertions
We sometimes use assertions in a constexpr context. For this, we use the comma operator like return GKO_ASSERT(...), value; For some constellation of include files #include <ginkgo/core/base/math.hpp> #include <gtest/gtest.h> #include <hip/hip_runtime.h> #include "hip/test/utils.hip.hpp" the assertions in gko::dim disappear completely for reasons I did not want to chase down too much include/ginkgo/core/base/dim.hpp(109): error: expected an expression This is a simple workaround for that issue
- Loading branch information
Showing
2 changed files
with
8 additions
and
2 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
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