applied-ai-018 commited on
Commit
700540d
·
verified ·
1 Parent(s): e45b361

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. ckpts/universal/global_step60/zero/18.mlp.dense_4h_to_h.weight/exp_avg.pt +3 -0
  2. ckpts/universal/global_step60/zero/18.mlp.dense_4h_to_h.weight/exp_avg_sq.pt +3 -0
  3. ckpts/universal/global_step60/zero/26.mlp.dense_h_to_4h.weight/exp_avg.pt +3 -0
  4. ckpts/universal/global_step60/zero/26.mlp.dense_h_to_4h.weight/exp_avg_sq.pt +3 -0
  5. ckpts/universal/global_step60/zero/26.mlp.dense_h_to_4h.weight/fp32.pt +3 -0
  6. ckpts/universal/global_step60/zero/5.attention.query_key_value.weight/exp_avg_sq.pt +3 -0
  7. venv/lib/python3.10/site-packages/numpy/_core/__init__.py +4 -0
  8. venv/lib/python3.10/site-packages/numpy/_core/__init__.pyi +0 -0
  9. venv/lib/python3.10/site-packages/numpy/_core/__pycache__/__init__.cpython-310.pyc +0 -0
  10. venv/lib/python3.10/site-packages/numpy/_core/__pycache__/_dtype.cpython-310.pyc +0 -0
  11. venv/lib/python3.10/site-packages/numpy/_core/__pycache__/_dtype_ctypes.cpython-310.pyc +0 -0
  12. venv/lib/python3.10/site-packages/numpy/_core/__pycache__/_internal.cpython-310.pyc +0 -0
  13. venv/lib/python3.10/site-packages/numpy/_core/__pycache__/_multiarray_umath.cpython-310.pyc +0 -0
  14. venv/lib/python3.10/site-packages/numpy/_core/__pycache__/multiarray.cpython-310.pyc +0 -0
  15. venv/lib/python3.10/site-packages/numpy/_core/__pycache__/umath.cpython-310.pyc +0 -0
  16. venv/lib/python3.10/site-packages/numpy/_core/_dtype.py +6 -0
  17. venv/lib/python3.10/site-packages/numpy/_core/_dtype_ctypes.py +6 -0
  18. venv/lib/python3.10/site-packages/numpy/_core/_internal.py +6 -0
  19. venv/lib/python3.10/site-packages/numpy/_core/_multiarray_umath.py +6 -0
  20. venv/lib/python3.10/site-packages/numpy/_core/multiarray.py +6 -0
  21. venv/lib/python3.10/site-packages/numpy/_core/umath.py +6 -0
  22. venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_avx512_clx.c +22 -0
  23. venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_avx512_icl.c +26 -0
  24. venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_avx512_spr.c +26 -0
  25. venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_avx512cd.c +20 -0
  26. venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_vsx4.c +14 -0
  27. venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_vx.c +16 -0
  28. venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_xop.c +12 -0
  29. venv/lib/python3.10/site-packages/numpy/distutils/checks/extra_avx512bw_mask.c +18 -0
  30. venv/lib/python3.10/site-packages/numpy/distutils/command/__init__.py +41 -0
  31. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/__init__.cpython-310.pyc +0 -0
  32. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/autodist.cpython-310.pyc +0 -0
  33. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/bdist_rpm.cpython-310.pyc +0 -0
  34. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build.cpython-310.pyc +0 -0
  35. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_clib.cpython-310.pyc +0 -0
  36. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_ext.cpython-310.pyc +0 -0
  37. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_py.cpython-310.pyc +0 -0
  38. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_scripts.cpython-310.pyc +0 -0
  39. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_src.cpython-310.pyc +0 -0
  40. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/config.cpython-310.pyc +0 -0
  41. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/config_compiler.cpython-310.pyc +0 -0
  42. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/develop.cpython-310.pyc +0 -0
  43. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/egg_info.cpython-310.pyc +0 -0
  44. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/install.cpython-310.pyc +0 -0
  45. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/install_clib.cpython-310.pyc +0 -0
  46. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/install_data.cpython-310.pyc +0 -0
  47. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/install_headers.cpython-310.pyc +0 -0
  48. venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/sdist.cpython-310.pyc +0 -0
  49. venv/lib/python3.10/site-packages/numpy/distutils/command/autodist.py +148 -0
  50. venv/lib/python3.10/site-packages/numpy/distutils/command/bdist_rpm.py +22 -0
ckpts/universal/global_step60/zero/18.mlp.dense_4h_to_h.weight/exp_avg.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adc52d68c4307bf36405ce8aa8e8fbd3f78f8325aeae8cdb85be18139173153b
3
+ size 33555612
ckpts/universal/global_step60/zero/18.mlp.dense_4h_to_h.weight/exp_avg_sq.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10f40d50f745e9c408607b0cbecc7c83cf867b1ed60c94abd8c8a2b3911a5b19
3
+ size 33555627
ckpts/universal/global_step60/zero/26.mlp.dense_h_to_4h.weight/exp_avg.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57feac2ccb8fc3c486ccce03bac5b511147ae400ca69b42af3b5266a81d759d1
3
+ size 33555612
ckpts/universal/global_step60/zero/26.mlp.dense_h_to_4h.weight/exp_avg_sq.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e38fbd6257b15e658d570fc88c6e1b84fc041a6f2d50e279a27ebc04f6455f54
3
+ size 33555627
ckpts/universal/global_step60/zero/26.mlp.dense_h_to_4h.weight/fp32.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6854257ed09a8fe2704d30acfce5c8df55d9ff5bb07837113e324e46004bc6a0
3
+ size 33555533
ckpts/universal/global_step60/zero/5.attention.query_key_value.weight/exp_avg_sq.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec4d1c492440b1f245fe47e5fcad076304f78c5f0838e656ef294af4215cd24c
3
+ size 50332843
venv/lib/python3.10/site-packages/numpy/_core/__init__.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ """
2
+ This private module only contains stubs for interoperability with
3
+ NumPy 2.0 pickled arrays. It may not be used by the end user.
4
+ """
venv/lib/python3.10/site-packages/numpy/_core/__init__.pyi ADDED
File without changes
venv/lib/python3.10/site-packages/numpy/_core/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (320 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/_core/__pycache__/_dtype.cpython-310.pyc ADDED
Binary file (303 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/_core/__pycache__/_dtype_ctypes.cpython-310.pyc ADDED
Binary file (317 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/_core/__pycache__/_internal.cpython-310.pyc ADDED
Binary file (309 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/_core/__pycache__/_multiarray_umath.cpython-310.pyc ADDED
Binary file (325 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/_core/__pycache__/multiarray.cpython-310.pyc ADDED
Binary file (311 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/_core/__pycache__/umath.cpython-310.pyc ADDED
Binary file (301 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/_core/_dtype.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from numpy.core import _dtype
2
+
3
+ _globals = globals()
4
+
5
+ for item in _dtype.__dir__():
6
+ _globals[item] = getattr(_dtype, item)
venv/lib/python3.10/site-packages/numpy/_core/_dtype_ctypes.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from numpy.core import _dtype_ctypes
2
+
3
+ _globals = globals()
4
+
5
+ for item in _dtype_ctypes.__dir__():
6
+ _globals[item] = getattr(_dtype_ctypes, item)
venv/lib/python3.10/site-packages/numpy/_core/_internal.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from numpy.core import _internal
2
+
3
+ _globals = globals()
4
+
5
+ for item in _internal.__dir__():
6
+ _globals[item] = getattr(_internal, item)
venv/lib/python3.10/site-packages/numpy/_core/_multiarray_umath.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from numpy.core import _multiarray_umath
2
+
3
+ _globals = globals()
4
+
5
+ for item in _multiarray_umath.__dir__():
6
+ _globals[item] = getattr(_multiarray_umath, item)
venv/lib/python3.10/site-packages/numpy/_core/multiarray.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from numpy.core import multiarray
2
+
3
+ _globals = globals()
4
+
5
+ for item in multiarray.__dir__():
6
+ _globals[item] = getattr(multiarray, item)
venv/lib/python3.10/site-packages/numpy/_core/umath.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from numpy.core import umath
2
+
3
+ _globals = globals()
4
+
5
+ for item in umath.__dir__():
6
+ _globals[item] = getattr(umath, item)
venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_avx512_clx.c ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER)
2
+ /*
3
+ * Unlike GCC and CLANG, Intel Compiler exposes all supported intrinsics,
4
+ * whether or not the build options for those features are specified.
5
+ * Therefore, we must test #definitions of CPU features when option native/host
6
+ * is enabled via `--cpu-baseline` or through env var `CFLAGS` otherwise
7
+ * the test will be broken and leads to enable all possible features.
8
+ */
9
+ #ifndef __AVX512VNNI__
10
+ #error "HOST/ARCH doesn't support CascadeLake AVX512 features"
11
+ #endif
12
+ #endif
13
+
14
+ #include <immintrin.h>
15
+
16
+ int main(int argc, char **argv)
17
+ {
18
+ /* VNNI */
19
+ __m512i a = _mm512_loadu_si512((const __m512i*)argv[argc-1]);
20
+ a = _mm512_dpbusd_epi32(a, _mm512_setzero_si512(), a);
21
+ return _mm_cvtsi128_si32(_mm512_castsi512_si128(a));
22
+ }
venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_avx512_icl.c ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER)
2
+ /*
3
+ * Unlike GCC and CLANG, Intel Compiler exposes all supported intrinsics,
4
+ * whether or not the build options for those features are specified.
5
+ * Therefore, we must test #definitions of CPU features when option native/host
6
+ * is enabled via `--cpu-baseline` or through env var `CFLAGS` otherwise
7
+ * the test will be broken and leads to enable all possible features.
8
+ */
9
+ #if !defined(__AVX512VPOPCNTDQ__) || !defined(__AVX512BITALG__) || !defined(__AVX512VPOPCNTDQ__)
10
+ #error "HOST/ARCH doesn't support IceLake AVX512 features"
11
+ #endif
12
+ #endif
13
+
14
+ #include <immintrin.h>
15
+
16
+ int main(int argc, char **argv)
17
+ {
18
+ __m512i a = _mm512_loadu_si512((const __m512i*)argv[argc-1]);
19
+ /* VBMI2 */
20
+ a = _mm512_shrdv_epi64(a, a, _mm512_setzero_si512());
21
+ /* BITLAG */
22
+ a = _mm512_popcnt_epi8(a);
23
+ /* VPOPCNTDQ */
24
+ a = _mm512_popcnt_epi64(a);
25
+ return _mm_cvtsi128_si32(_mm512_castsi512_si128(a));
26
+ }
venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_avx512_spr.c ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER)
2
+ /*
3
+ * Unlike GCC and CLANG, Intel Compiler exposes all supported intrinsics,
4
+ * whether or not the build options for those features are specified.
5
+ * Therefore, we must test #definitions of CPU features when option native/host
6
+ * is enabled via `--cpu-baseline` or through env var `CFLAGS` otherwise
7
+ * the test will be broken and leads to enable all possible features.
8
+ */
9
+ #if !defined(__AVX512FP16__)
10
+ #error "HOST/ARCH doesn't support Sapphire Rapids AVX512FP16 features"
11
+ #endif
12
+ #endif
13
+
14
+ #include <immintrin.h>
15
+
16
+ int main(int argc, char **argv)
17
+ {
18
+ /* clang has a bug regarding our spr coode, see gh-23730. */
19
+ #if __clang__
20
+ #error
21
+ #endif
22
+ __m512h a = _mm512_loadu_ph((void*)argv[argc-1]);
23
+ __m512h temp = _mm512_fmadd_ph(a, a, a);
24
+ _mm512_storeu_ph((void*)(argv[argc-1]), temp);
25
+ return 0;
26
+ }
venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_avx512cd.c ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER)
2
+ /*
3
+ * Unlike GCC and CLANG, Intel Compiler exposes all supported intrinsics,
4
+ * whether or not the build options for those features are specified.
5
+ * Therefore, we must test #definitions of CPU features when option native/host
6
+ * is enabled via `--cpu-baseline` or through env var `CFLAGS` otherwise
7
+ * the test will be broken and leads to enable all possible features.
8
+ */
9
+ #ifndef __AVX512CD__
10
+ #error "HOST/ARCH doesn't support AVX512CD"
11
+ #endif
12
+ #endif
13
+
14
+ #include <immintrin.h>
15
+
16
+ int main(int argc, char **argv)
17
+ {
18
+ __m512i a = _mm512_lzcnt_epi32(_mm512_loadu_si512((const __m512i*)argv[argc-1]));
19
+ return _mm_cvtsi128_si32(_mm512_castsi512_si128(a));
20
+ }
venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_vsx4.c ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef __VSX__
2
+ #error "VSX is not supported"
3
+ #endif
4
+ #include <altivec.h>
5
+
6
+ typedef __vector unsigned int v_uint32x4;
7
+
8
+ int main(void)
9
+ {
10
+ v_uint32x4 v1 = (v_uint32x4){2, 4, 8, 16};
11
+ v_uint32x4 v2 = (v_uint32x4){2, 2, 2, 2};
12
+ v_uint32x4 v3 = vec_mod(v1, v2);
13
+ return (int)vec_extractm(v3);
14
+ }
venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_vx.c ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #if (__VEC__ < 10301) || (__ARCH__ < 11)
2
+ #error VX not supported
3
+ #endif
4
+
5
+ #include <vecintrin.h>
6
+ int main(int argc, char **argv)
7
+ {
8
+ __vector double x = vec_abs(vec_xl(argc, (double*)argv));
9
+ __vector double y = vec_load_len((double*)argv, (unsigned int)argc);
10
+
11
+ x = vec_round(vec_ceil(x) + vec_floor(y));
12
+ __vector bool long long m = vec_cmpge(x, y);
13
+ __vector long long i = vec_signed(vec_sel(x, y, m));
14
+
15
+ return (int)vec_extract(i, 0);
16
+ }
venv/lib/python3.10/site-packages/numpy/distutils/checks/cpu_xop.c ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #include <immintrin.h>
2
+ #ifdef _MSC_VER
3
+ #include <ammintrin.h>
4
+ #else
5
+ #include <x86intrin.h>
6
+ #endif
7
+
8
+ int main(void)
9
+ {
10
+ __m128i a = _mm_comge_epu32(_mm_setzero_si128(), _mm_setzero_si128());
11
+ return _mm_cvtsi128_si32(a);
12
+ }
venv/lib/python3.10/site-packages/numpy/distutils/checks/extra_avx512bw_mask.c ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #include <immintrin.h>
2
+ /**
3
+ * Test BW mask operations due to:
4
+ * - MSVC has supported it since vs2019 see,
5
+ * https://developercommunity.visualstudio.com/content/problem/518298/missing-avx512bw-mask-intrinsics.html
6
+ * - Clang >= v8.0
7
+ * - GCC >= v7.1
8
+ */
9
+ int main(void)
10
+ {
11
+ __mmask64 m64 = _mm512_cmpeq_epi8_mask(_mm512_set1_epi8((char)1), _mm512_set1_epi8((char)1));
12
+ m64 = _kor_mask64(m64, m64);
13
+ m64 = _kxor_mask64(m64, m64);
14
+ m64 = _cvtu64_mask64(_cvtmask64_u64(m64));
15
+ m64 = _mm512_kunpackd(m64, m64);
16
+ m64 = (__mmask64)_mm512_kunpackw((__mmask32)m64, (__mmask32)m64);
17
+ return (int)_cvtmask64_u64(m64);
18
+ }
venv/lib/python3.10/site-packages/numpy/distutils/command/__init__.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """distutils.command
2
+
3
+ Package containing implementation of all the standard Distutils
4
+ commands.
5
+
6
+ """
7
+ def test_na_writable_attributes_deletion():
8
+ a = np.NA(2)
9
+ attr = ['payload', 'dtype']
10
+ for s in attr:
11
+ assert_raises(AttributeError, delattr, a, s)
12
+
13
+
14
+ __revision__ = "$Id: __init__.py,v 1.3 2005/05/16 11:08:49 pearu Exp $"
15
+
16
+ distutils_all = [ #'build_py',
17
+ 'clean',
18
+ 'install_clib',
19
+ 'install_scripts',
20
+ 'bdist',
21
+ 'bdist_dumb',
22
+ 'bdist_wininst',
23
+ ]
24
+
25
+ __import__('distutils.command', globals(), locals(), distutils_all)
26
+
27
+ __all__ = ['build',
28
+ 'config_compiler',
29
+ 'config',
30
+ 'build_src',
31
+ 'build_py',
32
+ 'build_ext',
33
+ 'build_clib',
34
+ 'build_scripts',
35
+ 'install',
36
+ 'install_data',
37
+ 'install_headers',
38
+ 'install_lib',
39
+ 'bdist_rpm',
40
+ 'sdist',
41
+ ] + distutils_all
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (987 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/autodist.cpython-310.pyc ADDED
Binary file (3.68 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/bdist_rpm.cpython-310.pyc ADDED
Binary file (863 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build.cpython-310.pyc ADDED
Binary file (2.3 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_clib.cpython-310.pyc ADDED
Binary file (10.6 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_ext.cpython-310.pyc ADDED
Binary file (15.4 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_py.cpython-310.pyc ADDED
Binary file (1.39 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_scripts.cpython-310.pyc ADDED
Binary file (1.68 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/build_src.cpython-310.pyc ADDED
Binary file (18.6 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/config.cpython-310.pyc ADDED
Binary file (13.9 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/config_compiler.cpython-310.pyc ADDED
Binary file (3.67 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/develop.cpython-310.pyc ADDED
Binary file (890 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/egg_info.cpython-310.pyc ADDED
Binary file (1.12 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/install.cpython-310.pyc ADDED
Binary file (2.13 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/install_clib.cpython-310.pyc ADDED
Binary file (1.66 kB). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/install_data.cpython-310.pyc ADDED
Binary file (924 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/install_headers.cpython-310.pyc ADDED
Binary file (986 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/__pycache__/sdist.cpython-310.pyc ADDED
Binary file (968 Bytes). View file
 
venv/lib/python3.10/site-packages/numpy/distutils/command/autodist.py ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """This module implements additional tests ala autoconf which can be useful.
2
+
3
+ """
4
+ import textwrap
5
+
6
+ # We put them here since they could be easily reused outside numpy.distutils
7
+
8
+ def check_inline(cmd):
9
+ """Return the inline identifier (may be empty)."""
10
+ cmd._check_compiler()
11
+ body = textwrap.dedent("""
12
+ #ifndef __cplusplus
13
+ static %(inline)s int static_func (void)
14
+ {
15
+ return 0;
16
+ }
17
+ %(inline)s int nostatic_func (void)
18
+ {
19
+ return 0;
20
+ }
21
+ #endif""")
22
+
23
+ for kw in ['inline', '__inline__', '__inline']:
24
+ st = cmd.try_compile(body % {'inline': kw}, None, None)
25
+ if st:
26
+ return kw
27
+
28
+ return ''
29
+
30
+
31
+ def check_restrict(cmd):
32
+ """Return the restrict identifier (may be empty)."""
33
+ cmd._check_compiler()
34
+ body = textwrap.dedent("""
35
+ static int static_func (char * %(restrict)s a)
36
+ {
37
+ return 0;
38
+ }
39
+ """)
40
+
41
+ for kw in ['restrict', '__restrict__', '__restrict']:
42
+ st = cmd.try_compile(body % {'restrict': kw}, None, None)
43
+ if st:
44
+ return kw
45
+
46
+ return ''
47
+
48
+
49
+ def check_compiler_gcc(cmd):
50
+ """Check if the compiler is GCC."""
51
+
52
+ cmd._check_compiler()
53
+ body = textwrap.dedent("""
54
+ int
55
+ main()
56
+ {
57
+ #if (! defined __GNUC__)
58
+ #error gcc required
59
+ #endif
60
+ return 0;
61
+ }
62
+ """)
63
+ return cmd.try_compile(body, None, None)
64
+
65
+
66
+ def check_gcc_version_at_least(cmd, major, minor=0, patchlevel=0):
67
+ """
68
+ Check that the gcc version is at least the specified version."""
69
+
70
+ cmd._check_compiler()
71
+ version = '.'.join([str(major), str(minor), str(patchlevel)])
72
+ body = textwrap.dedent("""
73
+ int
74
+ main()
75
+ {
76
+ #if (! defined __GNUC__) || (__GNUC__ < %(major)d) || \\
77
+ (__GNUC_MINOR__ < %(minor)d) || \\
78
+ (__GNUC_PATCHLEVEL__ < %(patchlevel)d)
79
+ #error gcc >= %(version)s required
80
+ #endif
81
+ return 0;
82
+ }
83
+ """)
84
+ kw = {'version': version, 'major': major, 'minor': minor,
85
+ 'patchlevel': patchlevel}
86
+
87
+ return cmd.try_compile(body % kw, None, None)
88
+
89
+
90
+ def check_gcc_function_attribute(cmd, attribute, name):
91
+ """Return True if the given function attribute is supported."""
92
+ cmd._check_compiler()
93
+ body = textwrap.dedent("""
94
+ #pragma GCC diagnostic error "-Wattributes"
95
+ #pragma clang diagnostic error "-Wattributes"
96
+
97
+ int %s %s(void* unused)
98
+ {
99
+ return 0;
100
+ }
101
+
102
+ int
103
+ main()
104
+ {
105
+ return 0;
106
+ }
107
+ """) % (attribute, name)
108
+ return cmd.try_compile(body, None, None) != 0
109
+
110
+
111
+ def check_gcc_function_attribute_with_intrinsics(cmd, attribute, name, code,
112
+ include):
113
+ """Return True if the given function attribute is supported with
114
+ intrinsics."""
115
+ cmd._check_compiler()
116
+ body = textwrap.dedent("""
117
+ #include<%s>
118
+ int %s %s(void)
119
+ {
120
+ %s;
121
+ return 0;
122
+ }
123
+
124
+ int
125
+ main()
126
+ {
127
+ return 0;
128
+ }
129
+ """) % (include, attribute, name, code)
130
+ return cmd.try_compile(body, None, None) != 0
131
+
132
+
133
+ def check_gcc_variable_attribute(cmd, attribute):
134
+ """Return True if the given variable attribute is supported."""
135
+ cmd._check_compiler()
136
+ body = textwrap.dedent("""
137
+ #pragma GCC diagnostic error "-Wattributes"
138
+ #pragma clang diagnostic error "-Wattributes"
139
+
140
+ int %s foo;
141
+
142
+ int
143
+ main()
144
+ {
145
+ return 0;
146
+ }
147
+ """) % (attribute, )
148
+ return cmd.try_compile(body, None, None) != 0
venv/lib/python3.10/site-packages/numpy/distutils/command/bdist_rpm.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ if 'setuptools' in sys.modules:
4
+ from setuptools.command.bdist_rpm import bdist_rpm as old_bdist_rpm
5
+ else:
6
+ from distutils.command.bdist_rpm import bdist_rpm as old_bdist_rpm
7
+
8
+ class bdist_rpm(old_bdist_rpm):
9
+
10
+ def _make_spec_file(self):
11
+ spec_file = old_bdist_rpm._make_spec_file(self)
12
+
13
+ # Replace hardcoded setup.py script name
14
+ # with the real setup script name.
15
+ setup_py = os.path.basename(sys.argv[0])
16
+ if setup_py == 'setup.py':
17
+ return spec_file
18
+ new_spec_file = []
19
+ for line in spec_file:
20
+ line = line.replace('setup.py', setup_py)
21
+ new_spec_file.append(line)
22
+ return new_spec_file