pytorch/c10/test/util
dolpm 66f53889d5 [nativert] port semaphore to c10 util (#153504)
Summary:
nativert RFC: https://github.com/zhxchen17/rfcs/blob/master/RFC-0043-torch-native-runtime.md

To land the runtime into PyTorch core, we will gradually land logical parts of the code into the Github issue and get each piece properly reviewed.

This diff adds a simple semaphore interface into c10 until c++20 where we get counting_semaphore

gonna need a oss build export to take a look at this...

Test Plan: CI

Differential Revision: D73882656

Pull Request resolved: https://github.com/pytorch/pytorch/pull/153504
Approved by: https://github.com/zhxchen17
2025-05-28 19:17:30 +00:00
..
accumulate_test.cpp
ArrayRef_test.cpp Fix & unit test for c10::ArrayRef constructed from user-defined types (#139758) 2024-11-06 04:23:05 +00:00
bfloat16_test.cpp Fix cppcoreguidelines-init-variables ignorance (#141795) 2025-01-28 17:11:37 +00:00
bit_cast_test.cpp
Bitset_test.cpp
complex_math_test_common.h
complex_math_test.cpp
complex_test_common.h
complex_test.cpp
ConstexprCrc_test.cpp
DeadlockDetection_test.cpp [Environment Variable][1/N] Use thread-safe env variable API in c10 (#119449) 2024-10-01 06:24:30 +00:00
Enumerate_test.cpp [nativert] port enumerate from folly to c10::utill (#152481) 2025-05-01 21:41:05 +00:00
error_test.cpp Add and use thread-safe strerror (#140472) 2024-11-19 04:24:17 +00:00
exception_test.cpp [ROCm] enforce ROCM_VERSION >= 6.0 (#125646) 2024-05-12 18:01:28 +00:00
flags_test.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
generic_math_test.cpp
Half_test.cpp [2/N] Fix extra warnings brought by clang-tidy-17 (#137459) 2024-10-08 19:05:02 +00:00
intrusive_ptr_test.cpp Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
IntrusiveList_test.cpp [nativert] move intrusive list to c10/util (#152754) 2025-05-05 18:49:56 +00:00
irange_test.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
lazy_test.cpp Bump Clang-tidy to 19.1.4 (#148648) 2025-03-10 17:32:30 +00:00
LeftRight_test.cpp [1/N] Fix extra warnings brought by clang-tidy-17 (#137407) 2024-10-07 17:53:59 +00:00
logging_test.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
Macros.h
Metaprogramming_test.cpp [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
NetworkFlow_test.cpp C++ network flow implementation in c10 (#132188) 2024-08-21 18:40:54 +00:00
optional_test.cpp [1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301) 2024-07-08 07:03:53 +00:00
ordered_preserving_dict_test.cpp Checks kv pair indexing in OrderedPreservingDictTest.test_range_insert (#148136) 2025-05-14 06:05:23 +00:00
registry_test.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
Semaphore_test.cpp [nativert] port semaphore to c10 util (#153504) 2025-05-28 19:17:30 +00:00
small_vector_test.cpp [1/N] Enable cppcoreguidelines-special-member-functions (#137405) 2024-10-23 00:16:53 +00:00
ssize_test.cpp [1/N] Fix extra warnings brought by clang-tidy-17 (#137407) 2024-10-07 17:53:59 +00:00
string_util_test.cpp [caffe2] Make c10::str works with scoped enum (#152705) (#152714) 2025-05-13 21:05:36 +00:00
string_view_test.cpp c10::string_view -> std::string_view in pytorch (#143591) 2025-01-13 21:44:05 +00:00
Synchronized_test.cpp
tempfile_test.cpp [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
ThreadLocal_test.cpp Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
typeid_test.cpp c10::string_view -> std::string_view in pytorch (#143591) 2025-01-13 21:44:05 +00:00
TypeIndex_test.cpp [1/N] Deprecate c10::string_view and at::string (#151972) 2025-04-29 07:23:52 +00:00
TypeList_test.cpp [1/N] Fix extra warnings brought by clang-tidy-17 (#137407) 2024-10-07 17:53:59 +00:00
TypeTraits_test.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00