Skip to content

Commit

Permalink
Update parallel.h
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc authored Dec 1, 2023
1 parent 0c6fd42 commit 7181d24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yacl/utils/parallel.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ body of your function, only data pointers.
inline void parallel_for(int64_t begin, int64_t end, int64_t grain_size,
const std::function<void(int64_t, int64_t)>& f);

inline void parallel_for(int64_t begin, int64_t end,
const std::function<void(int64_t, int64_t)>& f) {
parallel_for(begin, end, 1, f);
}

/*
parallel_reduce
Expand Down

0 comments on commit 7181d24

Please sign in to comment.