mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-01 13:34:57 +08:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user