Revert "Improve subproc autotuning implementation (#149700)"

This reverts commit 8cd6a133f21821f0713116f0f9a55e5368de8c1c.

Reverted https://github.com/pytorch/pytorch/pull/149700 on behalf of https://github.com/yangw-dev due to This is breaking servicelab_benchmark_pyper_local_runner internally ([comment](https://github.com/pytorch/pytorch/pull/149700#issuecomment-2755975959))
This commit is contained in:
PyTorch MergeBot
2025-03-26 23:17:01 +00:00
parent db8f4c1b1b
commit 185aaaaf8e
6 changed files with 325 additions and 367 deletions

View File

@ -2774,16 +2774,3 @@ def get_triton_attrs_descriptor_version() -> TritonAttrsDescriptorVersion:
def triton_version_uses_attrs_dict() -> bool:
return get_triton_attrs_descriptor_version() == TritonAttrsDescriptorVersion.V4_DICT
def get_ld_library_path() -> str:
path = os.environ.get("LD_LIBRARY_PATH", "")
if config.is_fbcode():
from libfb.py.parutil import get_runtime_path
runtime_path = get_runtime_path()
if runtime_path:
lib_path = os.path.join(runtime_path, "runtime", "lib")
path = os.pathsep.join([lib_path, path]) if path else lib_path
return path