Commit 87d41af6 authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Add check for the NUM_ELEMS_IN_BUNDLE

parent e9316485
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
bool run_permute(const ExecutionConfig& config, const Problem& problem) bool run_permute(const ExecutionConfig& config, const Problem& problem)
{ {
#if 1 < NUM_ELEMS_IN_BUNDLE #if 1 < NUM_ELEMS_IN_BUNDLE
static_assert(std::is_same_v<ADataType, BDataType>); static_assert(std::is_same_v<ADataType, BDataType> && (sizeof(ADataType) % NUM_ELEMS_IN_BUNDLE == 0));
#endif #endif
using std::begin, std::end; using std::begin, std::end;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment