Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pthreadpool] Set max threadlimit to tsan limit (pytorch#89453)
Summary: This will make sure we don't run into an internal assert for clang tsan which has a cap of 63 on concurrently held lock count. Seems like it is failing with 64 since the comparison is `<`, so setting it to 63 here. ``` llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector.h:67 "((n_all_locks_)) < (((sizeof(all_locks_with_contexts_)/sizeof((all_locks_with_contexts_)[0]))))" ``` Created from CodeHub with https://fburl.com/edit-in-codehub Test Plan: CI Sandcastle run Reviewed By: kimishpatel, salilsdesai Differential Revision: D41444710 Pull Request resolved: pytorch#89453 Approved by: https://github.com/mcr229
- Loading branch information