mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "[BE] Dedup hardcoded triton versions (#96580)"
This reverts commit c131e51e6248cf04135db317040b5be3ab944d41. Reverted https://github.com/pytorch/pytorch/pull/96580 on behalf of https://github.com/malfet due to Forgot to fix lint
This commit is contained in:
9
setup.py
9
setup.py
@ -1028,14 +1028,11 @@ def main():
|
||||
'opt-einsum': ['opt-einsum>=3.3']
|
||||
}
|
||||
if platform.system() == 'Linux':
|
||||
triton_pin_file = os.path.join(cwd, ".ci", "docker", "ci_commit_pins", "triton.txt")
|
||||
triton_version_file = os.path.join(cwd, ".ci", "docker", "triton_version.txt")
|
||||
if os.path.exists(triton_pin_file) and os.path.exists(triton_version_file):
|
||||
triton_pin_file = os.path.join(cwd, ".github", "ci_commit_pins", "triton.txt")
|
||||
if os.path.exists(triton_pin_file):
|
||||
with open(triton_pin_file) as f:
|
||||
triton_pin = f.read().strip()
|
||||
with open(triton_version_file) as f:
|
||||
triton_version = f.read().strip()
|
||||
extras_require['dynamo'] = ['pytorch-triton==' + triton_version + '+' + triton_pin[:10], 'jinja2']
|
||||
extras_require['dynamo'] = ['pytorch-triton==2.1.0+' + triton_pin[:10], 'jinja2']
|
||||
|
||||
# Parse the command line and check the arguments before we proceed with
|
||||
# building deps and setup. We need to set values so `--help` works.
|
||||
|
Reference in New Issue
Block a user