torchruntime 2.2.0__tar.gz → 2.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. {torchruntime-2.2.0/torchruntime.egg-info → torchruntime-2.4.0}/PKG-INFO +1 -1
  2. {torchruntime-2.2.0 → torchruntime-2.4.0}/pyproject.toml +1 -1
  3. {torchruntime-2.2.0/torchruntime → torchruntime-2.4.0}/tests/test_installer.py +4 -6
  4. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/gpu_pci_ids.db +0 -0
  5. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/installer.py +1 -10
  6. {torchruntime-2.2.0 → torchruntime-2.4.0/torchruntime}/tests/test_installer.py +4 -6
  7. {torchruntime-2.2.0 → torchruntime-2.4.0/torchruntime.egg-info}/PKG-INFO +1 -1
  8. {torchruntime-2.2.0 → torchruntime-2.4.0}/LICENSE +0 -0
  9. {torchruntime-2.2.0 → torchruntime-2.4.0}/MANIFEST.in +0 -0
  10. {torchruntime-2.2.0 → torchruntime-2.4.0}/README.md +0 -0
  11. {torchruntime-2.2.0 → torchruntime-2.4.0}/setup.cfg +0 -0
  12. {torchruntime-2.2.0 → torchruntime-2.4.0}/setup.py +0 -0
  13. {torchruntime-2.2.0 → torchruntime-2.4.0}/tests/test_configuration.py +0 -0
  14. {torchruntime-2.2.0 → torchruntime-2.4.0}/tests/test_device_db.py +0 -0
  15. {torchruntime-2.2.0 → torchruntime-2.4.0}/tests/test_device_db_integration.py +0 -0
  16. {torchruntime-2.2.0 → torchruntime-2.4.0}/tests/test_gpu_db.py +0 -0
  17. {torchruntime-2.2.0 → torchruntime-2.4.0}/tests/test_platform_detection.py +0 -0
  18. {torchruntime-2.2.0 → torchruntime-2.4.0}/tests/test_torch_device_utils.py +0 -0
  19. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/__init__.py +0 -0
  20. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/__main__.py +0 -0
  21. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/configuration.py +0 -0
  22. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/consts.py +0 -0
  23. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/device_db.py +0 -0
  24. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/gpu_db.py +0 -0
  25. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/platform_detection.py +0 -0
  26. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/tests/test_configuration.py +0 -0
  27. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/tests/test_device_db.py +0 -0
  28. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/tests/test_device_db_integration.py +0 -0
  29. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/tests/test_gpu_db.py +0 -0
  30. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/tests/test_platform_detection.py +0 -0
  31. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/tests/test_torch_device_utils.py +0 -0
  32. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/utils/__init__.py +0 -0
  33. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/utils/torch_device_utils.py +0 -0
  34. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/utils/torch_test/__init__.py +0 -0
  35. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime/utils/torch_test/torch_regression_tests.py +0 -0
  36. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime.egg-info/SOURCES.txt +0 -0
  37. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime.egg-info/dependency_links.txt +0 -0
  38. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime.egg-info/entry_points.txt +0 -0
  39. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime.egg-info/requires.txt +0 -0
  40. {torchruntime-2.2.0 → torchruntime-2.4.0}/torchruntime.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: torchruntime
3
- Version: 2.2.0
3
+ Version: 2.4.0
4
4
  Summary: Meant for app developers. A convenient way to install and configure the appropriate version of PyTorch on the user's computer, based on the OS and GPU manufacturer and model number.
5
5
  Author-email: cmdr2 <secondary.cmdr2@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/easydiffusion/torchruntime
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "torchruntime"
7
- version = "2.2.0"
7
+ version = "2.4.0"
8
8
  description = "Meant for app developers. A convenient way to install and configure the appropriate version of PyTorch on the user's computer, based on the OS and GPU manufacturer and model number."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.0"
@@ -72,25 +72,23 @@ def test_xpu_platform_windows_with_torch_only(monkeypatch):
72
72
  monkeypatch.setattr("torchruntime.installer.os_name", "Windows")
73
73
  packages = ["torch"]
74
74
  result = get_install_commands("xpu", packages)
75
- expected_url = "https://download.pytorch.org/whl/test/xpu"
75
+ expected_url = "https://download.pytorch.org/whl/xpu"
76
76
  assert result == [packages + ["--index-url", expected_url]]
77
77
 
78
78
 
79
- def test_xpu_platform_windows_with_torchvision(monkeypatch, capsys):
79
+ def test_xpu_platform_windows_with_torchvision(monkeypatch):
80
80
  monkeypatch.setattr("torchruntime.installer.os_name", "Windows")
81
81
  packages = ["torch", "torchvision"]
82
82
  result = get_install_commands("xpu", packages)
83
- expected_url = "https://download.pytorch.org/whl/nightly/xpu"
83
+ expected_url = "https://download.pytorch.org/whl/xpu"
84
84
  assert result == [packages + ["--index-url", expected_url]]
85
- captured = capsys.readouterr()
86
- assert "[WARNING]" in captured.out
87
85
 
88
86
 
89
87
  def test_xpu_platform_linux(monkeypatch):
90
88
  monkeypatch.setattr("torchruntime.installer.os_name", "Linux")
91
89
  packages = ["torch", "torchvision"]
92
90
  result = get_install_commands("xpu", packages)
93
- expected_url = "https://download.pytorch.org/whl/test/xpu"
91
+ expected_url = "https://download.pytorch.org/whl/xpu"
94
92
  triton_index_url = "https://download.pytorch.org/whl"
95
93
  assert result == [
96
94
  packages + ["--index-url", expected_url],
@@ -41,7 +41,6 @@ def get_install_commands(torch_platform, packages):
41
41
  ValueError: If an unsupported platform is provided.
42
42
 
43
43
  Notes:
44
- - For "xpu" on Windows, if torchvision or torchaudio are included, the function switches to nightly builds.
45
44
  - For "directml", the "torch-directml" package is returned as part of the installation commands.
46
45
  - For "ipex", the "intel-extension-for-pytorch" package is returned as part of the installation commands.
47
46
  - For Windows CUDA, the function also installs "triton-windows" (for torch.compile and Triton kernels).
@@ -69,15 +68,7 @@ def get_install_commands(torch_platform, packages):
69
68
  return cmds
70
69
 
71
70
  if torch_platform == "xpu":
72
- if os_name == "Windows" and ("torchvision" in packages or "torchaudio" in packages):
73
- print(
74
- f"[WARNING] The preview build of 'xpu' on Windows currently only supports torch, not torchvision/torchaudio. "
75
- f"torchruntime will instead use the nightly build, to get the 'xpu' version of torchaudio and torchvision as well. "
76
- f"Please contact torchruntime if this is no longer accurate: {CONTACT_LINK}"
77
- )
78
- index_url = f"https://download.pytorch.org/whl/nightly/{torch_platform}"
79
- else:
80
- index_url = f"https://download.pytorch.org/whl/test/{torch_platform}"
71
+ index_url = f"https://download.pytorch.org/whl/{torch_platform}"
81
72
 
82
73
  cmds = [packages + ["--index-url", index_url]]
83
74
  if os_name == "Linux":
@@ -72,25 +72,23 @@ def test_xpu_platform_windows_with_torch_only(monkeypatch):
72
72
  monkeypatch.setattr("torchruntime.installer.os_name", "Windows")
73
73
  packages = ["torch"]
74
74
  result = get_install_commands("xpu", packages)
75
- expected_url = "https://download.pytorch.org/whl/test/xpu"
75
+ expected_url = "https://download.pytorch.org/whl/xpu"
76
76
  assert result == [packages + ["--index-url", expected_url]]
77
77
 
78
78
 
79
- def test_xpu_platform_windows_with_torchvision(monkeypatch, capsys):
79
+ def test_xpu_platform_windows_with_torchvision(monkeypatch):
80
80
  monkeypatch.setattr("torchruntime.installer.os_name", "Windows")
81
81
  packages = ["torch", "torchvision"]
82
82
  result = get_install_commands("xpu", packages)
83
- expected_url = "https://download.pytorch.org/whl/nightly/xpu"
83
+ expected_url = "https://download.pytorch.org/whl/xpu"
84
84
  assert result == [packages + ["--index-url", expected_url]]
85
- captured = capsys.readouterr()
86
- assert "[WARNING]" in captured.out
87
85
 
88
86
 
89
87
  def test_xpu_platform_linux(monkeypatch):
90
88
  monkeypatch.setattr("torchruntime.installer.os_name", "Linux")
91
89
  packages = ["torch", "torchvision"]
92
90
  result = get_install_commands("xpu", packages)
93
- expected_url = "https://download.pytorch.org/whl/test/xpu"
91
+ expected_url = "https://download.pytorch.org/whl/xpu"
94
92
  triton_index_url = "https://download.pytorch.org/whl"
95
93
  assert result == [
96
94
  packages + ["--index-url", expected_url],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: torchruntime
3
- Version: 2.2.0
3
+ Version: 2.4.0
4
4
  Summary: Meant for app developers. A convenient way to install and configure the appropriate version of PyTorch on the user's computer, based on the OS and GPU manufacturer and model number.
5
5
  Author-email: cmdr2 <secondary.cmdr2@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/easydiffusion/torchruntime
File without changes
File without changes
File without changes
File without changes
File without changes