You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cliffburdick I suddenly realized that it's not OK to use MATX_ASSERT_* to wrap cutensornet* APIs in matx_einsum.h because if I build it in release mode (with -DNDEBUG), these APIs will be replaced by emtpy lines.
Actually I tried to compiled a einsum() program with -DNDEBUG and ran it, it really did no computation.
Describe the bug
An empty macro
MATX_ASSERT_STR_EXP
is missing inmatx_error.h
whenNDEBUG
is defined.When building with
-DNDEBUG
(e.g. cmake with-DCMAKE_BUILD_TYPE=Release
), this error will be thrown by the compiler:Expected behavior
An empty definition of
MATX_ASSERT_STR_EXP
should be added between#else
and#endif
, just likeMATX_ASSERT
andMATX_ASSERT_STR
.System details (please complete the following information):
The text was updated successfully, but these errors were encountered: