Skip to content

Commit 45b61ab

Browse files
committed
removing unnecessary checks in dispatch.hpp
1 parent c337c99 commit 45b61ab

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

include/umpire/op/dispatch.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,6 @@ struct op_caller {
208208
#ifdef UMPIRE_ENABLE_BOUNDS_CHECKS
209209
std::size_t length = get_arg<1>(args...);
210210
check_memset_bounds(src, src_record, length);
211-
#endif
212-
} else if constexpr (std::is_same_v<Op<resource::host_platform>, device_memset<resource::host_platform>>) {
213-
#ifdef UMPIRE_ENABLE_BOUNDS_CHECKS
214-
std::size_t length = get_arg<1>(args...);
215-
check_memset_bounds(src, src_record, length);
216211
#endif
217212
}
218213

@@ -235,11 +230,6 @@ struct op_caller {
235230
#ifdef UMPIRE_ENABLE_BOUNDS_CHECKS
236231
std::size_t length = get_arg<1>(args...);
237232
check_memset_bounds(src, src_record, length);
238-
#endif
239-
} else if constexpr (std::is_same_v<Op<resource::host_platform>, device_memset<resource::host_platform>>) {
240-
#ifdef UMPIRE_ENABLE_BOUNDS_CHECKS
241-
std::size_t length = get_arg<1>(args...);
242-
check_memset_bounds(src, src_record, length);
243233
#endif
244234
}
245235

0 commit comments

Comments
 (0)