Skip to content

Commit eb68dcc

Browse files
Remove dead code.
1 parent e9058a7 commit eb68dcc

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/kernels/include/kernels/profiling.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ std::optional<milliseconds_t>
3333
ProfilingSettings const &settings,
3434
DeviceType device_type,
3535
Ts &&...ts) {
36-
if (settings.measure_iters.int_from_positive_int() <= 0) {
37-
return std::nullopt;
38-
}
39-
4036
if (device_type == DeviceType::GPU) {
4137
return gpu_profiling_wrapper(f, settings, std::forward<Ts>(ts)...);
4238
} else {
@@ -49,8 +45,6 @@ template <typename F, typename... Ts>
4945
milliseconds_t cpu_profiling_wrapper(F const &f,
5046
ProfilingSettings const &settings,
5147
Ts &&...ts) {
52-
ASSERT(settings.measure_iters.int_from_positive_int() > 0);
53-
5448
device_stream_t stream = get_cpu_device_stream();
5549

5650
using TimePoint = std::chrono::time_point<std::chrono::steady_clock>;
@@ -81,8 +75,6 @@ template <typename F, typename... Ts>
8175
milliseconds_t gpu_profiling_wrapper(F const &f,
8276
ProfilingSettings const &settings,
8377
Ts &&...ts) {
84-
ASSERT(settings.measure_iters.int_from_positive_int() > 0);
85-
8678
device_stream_t stream = get_gpu_device_stream();
8779

8880
ffEvent_t t_start, t_end;

0 commit comments

Comments
 (0)