pytorch/c10
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
..
benchmark Set RUNPATH so installed tests can find the required shared libraries (#136627) 2024-10-25 09:38:08 +00:00
core [ez] Make SymNodeImpl comments less misleading (#154480) 2025-05-28 14:04:32 +00:00
cuda Remove MemPoolContext (#154042) 2025-05-28 16:35:48 +00:00
hip Use torch_compile_options for c10 libraries (#147821) 2025-03-18 01:54:23 +00:00
macros [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
metal [MPS][BE] Move fmod/remainder to Metal ops (#154280) 2025-05-24 01:45:33 +00:00
mobile [2/N] Fix extra warnings brought by clang-tidy-17 (#137459) 2024-10-08 19:05:02 +00:00
test [nativert] port semaphore to c10 util (#153504) 2025-05-28 19:17:30 +00:00
util [nativert] port semaphore to c10 util (#153504) 2025-05-28 19:17:30 +00:00
xpu Add memory reporting for XPU to Memory Profiler (#152842) 2025-05-21 01:19:19 +00:00
BUCK.oss [nativert] port semaphore to c10 util (#153504) 2025-05-28 19:17:30 +00:00
BUILD.bazel remove //c10:headers (#98420) 2023-04-05 19:33:10 +00:00
build.bzl Use c10 version of half/bfloat16 in executorch (#144111) 2025-02-08 22:40:14 +00:00
CMakeLists.txt [nativert] port semaphore to c10 util (#153504) 2025-05-28 19:17:30 +00:00
ovrsource_defs.bzl [NeuralNetInference] Bring up iOS builds (#131917) 2024-07-30 23:01:09 +00:00