Skip to content

Commit 49c2971

Browse files
committed
Update
[ghstack-poisoned]
2 parents 095d4f5 + c130224 commit 49c2971

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

extension/parallel/thread_parallel.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#pragma once
1010

1111
// This header is a stub left behind after the move to
12-
// executorch/runtime/kernel. Depend on this target and include this
13-
// header if you have a hard requirement for threading; if you want to
14-
// cleanly use parallelization if available, then depend on and use
15-
// the below header instead.
12+
// executorch/runtime/kernel. As such, it is deprecated; include and
13+
// use the below header directly instead.
1614
#include <executorch/runtime/kernel/thread_parallel_interface.h>

runtime/kernel/thread_parallel_interface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ inline void set_thread_num(int64_t thread_num) {
8484
#endif // ET_USE_THREADPOOL
8585

8686
/**
87-
* Convenience version of parallel_for that sets the grain size to internal::GRAIN_SIZE.
87+
* Convenience version of parallel_for that sets the grain size to
88+
* internal::GRAIN_SIZE.
8889
*/
8990
template <typename Func>
9091
bool parallel_for(const int64_t begin, const int64_t end, const Func& func) {

0 commit comments

Comments
 (0)