torch-memory-saver 0.0.5__tar.gz → 0.0.6__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.
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.1
2
+ Name: torch_memory_saver
3
+ Version: 0.0.6
4
+ Summary: UNKNOWN
5
+ Home-page: UNKNOWN
6
+ License: UNKNOWN
7
+ Platform: UNKNOWN
8
+ Requires-Python: >=3.9
9
+ License-File: LICENSE
10
+
11
+ UNKNOWN
12
+
@@ -1,13 +1,14 @@
1
+ import logging
1
2
  import os
2
- import glob
3
3
  import shutil
4
- import logging
5
- import setuptools
6
4
  from pathlib import Path
5
+
6
+ import setuptools
7
7
  from setuptools import setup
8
8
 
9
9
  logger = logging.getLogger(__name__)
10
10
 
11
+
11
12
  # copy & modify from torch/utils/cpp_extension.py
12
13
  def _find_cuda_home():
13
14
  """Find the CUDA install path."""
@@ -23,17 +24,24 @@ def _find_cuda_home():
23
24
  cuda_home = '/usr/local/cuda'
24
25
  return cuda_home
25
26
 
27
+
26
28
  cuda_home = Path(_find_cuda_home())
27
29
  include_dirs = [
28
30
  str(cuda_home.resolve() / 'targets/x86_64-linux/include'),
29
31
  ]
32
+ library_dirs = [
33
+ str(cuda_home.resolve() / 'lib64'),
34
+ str(cuda_home.resolve() / 'lib64/stubs'),
35
+ ]
36
+
30
37
  setup(
31
38
  name='torch_memory_saver',
32
- version='0.0.5',
39
+ version='0.0.6',
33
40
  ext_modules=[setuptools.Extension(
34
41
  'torch_memory_saver_cpp',
35
42
  ['csrc/torch_memory_saver.cpp'],
36
43
  include_dirs=include_dirs,
44
+ library_dirs=library_dirs,
37
45
  libraries=['cuda']
38
46
  )],
39
47
  python_requires=">=3.9",
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.1
2
+ Name: torch-memory-saver
3
+ Version: 0.0.6
4
+ Summary: UNKNOWN
5
+ Home-page: UNKNOWN
6
+ License: UNKNOWN
7
+ Platform: UNKNOWN
8
+ Requires-Python: >=3.9
9
+ License-File: LICENSE
10
+
11
+ UNKNOWN
12
+
@@ -1,5 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: torch_memory_saver
3
- Version: 0.0.5
4
- Requires-Python: >=3.9
5
- License-File: LICENSE
@@ -1,5 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: torch_memory_saver
3
- Version: 0.0.5
4
- Requires-Python: >=3.9
5
- License-File: LICENSE