#219 changed all uses of assert() to use ALPAKA_ASSERT_OFFLOAD, and this disables the assertions by default. This behavior corresponds what we do in cuda program, but in cudacompat we have asserts enabled. A ALPAKA_DEBUG_OFFLOAD_ASSUME_HOST macro can be used to enable assertions, so the question is, should we enable that macro for Alpaka CPU backends to be consistent with the behavior of cudacompat?
(or vice versa, should we disable asserts also in cudacompat?)
#219 changed all uses of
assert()to useALPAKA_ASSERT_OFFLOAD, and this disables the assertions by default. This behavior corresponds what we do incudaprogram, but incudacompatwe have asserts enabled. AALPAKA_DEBUG_OFFLOAD_ASSUME_HOSTmacro can be used to enable assertions, so the question is, should we enable that macro for Alpaka CPU backends to be consistent with the behavior ofcudacompat?(or vice versa, should we disable asserts also in
cudacompat?)