assassinlike commited on
Commit
6762aef
·
verified ·
1 Parent(s): e8d49e8

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. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/etc/conda/activate.d/activate-binutils_linux-64.sh +117 -0
  2. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/etc/conda/deactivate.d/deactivate-binutils_linux-64.sh +117 -0
  3. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/build.sh +105 -0
  4. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/install_binutils.sh +45 -0
  5. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/meta.yaml +170 -0
  6. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0001-check_ldrunpath_length.patch +24 -0
  7. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0001-fallback-sysroot.diff +21 -0
  8. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0006-sysroot.patch +39 -0
  9. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0007-poison-system-directories.patch +293 -0
  10. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0009-fix-align-kernel.patch +61 -0
  11. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/activate-binutils.bat +57 -0
  12. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/activate-binutils.ps1 +56 -0
  13. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/activate-binutils.sh +117 -0
  14. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/deactivate-binutils.bat +57 -0
  15. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/deactivate-binutils.ps1 +56 -0
  16. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/deactivate-binutils.sh +117 -0
  17. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/tests/aligned_alloc.c +9 -0
  18. data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/tests/fortomp/CMakeLists.txt +5 -0
  19. data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/about.json +139 -0
  20. data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/files +0 -0
  21. data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/git +0 -0
  22. data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/index.json +19 -0
  23. data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/licenses/LICENSE.txt +1632 -0
  24. data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/paths.json +4 -0
  25. data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/repodata_record.json +26 -0
  26. data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/test/run_test.sh +8 -0
  27. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/2to3 +5 -0
  28. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/2to3-3.11 +5 -0
  29. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/idle3 +5 -0
  30. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/idle3.11 +5 -0
  31. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/pydoc +5 -0
  32. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/pydoc3 +5 -0
  33. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/pydoc3.11 +5 -0
  34. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/python3-config +116 -0
  35. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/python3.11-config +116 -0
  36. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/compiler_compat/README +2 -0
  37. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/Python.h +109 -0
  38. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/abstract.h +873 -0
  39. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/bltinmodule.h +14 -0
  40. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/boolobject.h +43 -0
  41. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/bytearrayobject.h +44 -0
  42. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/bytesobject.h +69 -0
  43. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/ceval.h +168 -0
  44. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/codecs.h +248 -0
  45. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/compile.h +25 -0
  46. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/complexobject.h +30 -0
  47. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/cpython/abstract.h +219 -0
  48. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/cpython/bytearrayobject.h +38 -0
  49. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/cpython/bytesobject.h +137 -0
  50. data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/cpython/cellobject.h +31 -0
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/etc/conda/activate.d/activate-binutils_linux-64.sh ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # shellcheck shell=sh
2
+
3
+ # This function takes no arguments
4
+ # It tries to determine the name of this file in a programatic way.
5
+ _get_sourced_filename() {
6
+ # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded
7
+ if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then
8
+ # shellcheck disable=SC3054 # non-POSIX array access is guarded
9
+ basename "${BASH_SOURCE[0]}"
10
+ elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then
11
+ # in zsh use prompt-style expansion to introspect the same information
12
+ # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh
13
+ # shellcheck disable=SC2296 # bad '(' is guarded
14
+ basename "${(%):-%x}"
15
+ else
16
+ echo "UNKNOWN FILE"
17
+ fi
18
+ }
19
+
20
+ # The arguments to this are:
21
+ # 1. activation nature {activate|deactivate}
22
+ # 2. toolchain nature {build|host|ccc}
23
+ # 3. machine (should match -dumpmachine)
24
+ # 4. prefix (including any final -)
25
+ # 5+ program (or environment var comma value)
26
+ # The format for 5+ is name{,,value}. If value is specified
27
+ # then name taken to be an environment variable, otherwise
28
+ # it is taken to be a program. In this case, which is used
29
+ # to find the full filename during activation. The original
30
+ # value is stored in environment variable CONDA_BACKUP_NAME
31
+ # For deactivation, the distinction is irrelevant as in all
32
+ # cases NAME simply gets reset to CONDA_BACKUP_NAME. It is
33
+ # a fatal error if a program is identified but not present.
34
+ _tc_activation() {
35
+ local act_nature="$1"; shift
36
+ local tc_prefix="$1"; shift
37
+ local thing
38
+ local newval
39
+ local from
40
+ local to
41
+ local pass
42
+
43
+ if [ "${act_nature}" = "activate" ]; then
44
+ from=""
45
+ to="CONDA_BACKUP_"
46
+ else
47
+ from="CONDA_BACKUP_"
48
+ to=""
49
+ fi
50
+
51
+ for pass in check apply; do
52
+ for thing in "$@"; do
53
+ case "${thing}" in
54
+ *,*)
55
+ newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,")
56
+ thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,")
57
+ ;;
58
+ *)
59
+ newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}"
60
+ if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then
61
+ echo "ERROR: This cross-compiler package contains no program ${newval}"
62
+ return 1
63
+ fi
64
+ ;;
65
+ esac
66
+ if [ "${pass}" = "apply" ]; then
67
+ thing=$(echo "${thing}" | tr 'a-z+-.' 'A-ZX__')
68
+ eval oldval="\$${from}$thing"
69
+ if [ -n "${oldval}" ]; then
70
+ eval export "${to}'${thing}'=\"${oldval}\""
71
+ else
72
+ eval unset '${to}${thing}'
73
+ fi
74
+ if [ -n "${newval}" ]; then
75
+ eval export "'${from}${thing}=${newval}'"
76
+ else
77
+ eval unset '${from}${thing}'
78
+ fi
79
+ fi
80
+ done
81
+ done
82
+ return 0
83
+ }
84
+
85
+ if [ "0" = "1" ]; then
86
+ CONDA_PREFIX=$(echo "${CONDA_PREFIX:-}" | sed 's,\\,\/,g')
87
+ fi
88
+
89
+ if [ "${CONDA_BUILD:-0}" = "1" ]; then
90
+ if [ -f /tmp/old-env-$$.txt ]; then
91
+ rm -f /tmp/old-env-$$.txt || true
92
+ fi
93
+ env > /tmp/old-env-$$.txt
94
+ fi
95
+
96
+ _tc_activation \
97
+ activate x86_64-conda-linux-gnu- addr2line ar c++filt elfedit nm objcopy objdump ranlib readelf size strings strip as gprof ld
98
+
99
+ if [ $? -ne 0 ]; then
100
+ echo "ERROR: $(_get_sourced_filename) failed, see above for details"
101
+ #exit 1
102
+ else
103
+ if [ "${CONDA_BUILD:-0}" = "1" ]; then
104
+ if [ -f /tmp/new-env-$$.txt ]; then
105
+ rm -f /tmp/new-env-$$.txt || true
106
+ fi
107
+ env > /tmp/new-env-$$.txt
108
+
109
+ echo "INFO: $(_get_sourced_filename) made the following environmental changes:"
110
+ diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort
111
+ rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true
112
+ fi
113
+ fi
114
+
115
+ if [ "0" = "1" ]; then
116
+ CONDA_PREFIX=$(echo "${CONDA_PREFIX:-}" | sed 's,\/,\\,g')
117
+ fi
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/etc/conda/deactivate.d/deactivate-binutils_linux-64.sh ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # shellcheck shell=sh
2
+
3
+ # This function takes no arguments
4
+ # It tries to determine the name of this file in a programatic way.
5
+ _get_sourced_filename() {
6
+ # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded
7
+ if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then
8
+ # shellcheck disable=SC3054 # non-POSIX array access is guarded
9
+ basename "${BASH_SOURCE[0]}"
10
+ elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then
11
+ # in zsh use prompt-style expansion to introspect the same information
12
+ # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh
13
+ # shellcheck disable=SC2296 # bad '(' is guarded
14
+ basename "${(%):-%x}"
15
+ else
16
+ echo "UNKNOWN FILE"
17
+ fi
18
+ }
19
+
20
+ # The arguments to this are:
21
+ # 1. activation nature {activate|deactivate}
22
+ # 2. toolchain nature {build|host|ccc}
23
+ # 3. machine (should match -dumpmachine)
24
+ # 4. prefix (including any final -)
25
+ # 5+ program (or environment var comma value)
26
+ # The format for 5+ is name{,,value}. If value is specified
27
+ # then name taken to be an environment variable, otherwise
28
+ # it is taken to be a program. In this case, which is used
29
+ # to find the full filename during activation. The original
30
+ # value is stored in environment variable CONDA_BACKUP_NAME
31
+ # For deactivation, the distinction is irrelevant as in all
32
+ # cases NAME simply gets reset to CONDA_BACKUP_NAME. It is
33
+ # a fatal error if a program is identified but not present.
34
+ _tc_activation() {
35
+ local act_nature="$1"; shift
36
+ local tc_prefix="$1"; shift
37
+ local thing
38
+ local newval
39
+ local from
40
+ local to
41
+ local pass
42
+
43
+ if [ "${act_nature}" = "activate" ]; then
44
+ from=""
45
+ to="CONDA_BACKUP_"
46
+ else
47
+ from="CONDA_BACKUP_"
48
+ to=""
49
+ fi
50
+
51
+ for pass in check apply; do
52
+ for thing in "$@"; do
53
+ case "${thing}" in
54
+ *,*)
55
+ newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,")
56
+ thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,")
57
+ ;;
58
+ *)
59
+ newval="${CONDA_PREFIX}/bin/${tc_prefix}${thing}"
60
+ if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then
61
+ echo "ERROR: This cross-compiler package contains no program ${newval}"
62
+ return 1
63
+ fi
64
+ ;;
65
+ esac
66
+ if [ "${pass}" = "apply" ]; then
67
+ thing=$(echo "${thing}" | tr 'a-z+-.' 'A-ZX__')
68
+ eval oldval="\$${from}$thing"
69
+ if [ -n "${oldval}" ]; then
70
+ eval export "${to}'${thing}'=\"${oldval}\""
71
+ else
72
+ eval unset '${to}${thing}'
73
+ fi
74
+ if [ -n "${newval}" ]; then
75
+ eval export "'${from}${thing}=${newval}'"
76
+ else
77
+ eval unset '${from}${thing}'
78
+ fi
79
+ fi
80
+ done
81
+ done
82
+ return 0
83
+ }
84
+
85
+ if [ "0" = "1" ]; then
86
+ CONDA_PREFIX=$(echo "${CONDA_PREFIX:-}" | sed 's,\\,\/,g')
87
+ fi
88
+
89
+ if [ "${CONDA_BUILD:-0}" = "1" ]; then
90
+ if [ -f /tmp/old-env-$$.txt ]; then
91
+ rm -f /tmp/old-env-$$.txt || true
92
+ fi
93
+ env > /tmp/old-env-$$.txt
94
+ fi
95
+
96
+ _tc_activation \
97
+ deactivate x86_64-conda-linux-gnu- addr2line ar c++filt elfedit nm objcopy objdump ranlib readelf size strings strip as gprof ld
98
+
99
+ if [ $? -ne 0 ]; then
100
+ echo "ERROR: $(_get_sourced_filename) failed, see above for details"
101
+ #exit 1
102
+ else
103
+ if [ "${CONDA_BUILD:-0}" = "1" ]; then
104
+ if [ -f /tmp/new-env-$$.txt ]; then
105
+ rm -f /tmp/new-env-$$.txt || true
106
+ fi
107
+ env > /tmp/new-env-$$.txt
108
+
109
+ echo "INFO: $(_get_sourced_filename) made the following environmental changes:"
110
+ diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort
111
+ rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true
112
+ fi
113
+ fi
114
+
115
+ if [ "0" = "1" ]; then
116
+ CONDA_PREFIX=$(echo "${CONDA_PREFIX:-}" | sed 's,\/,\\,g')
117
+ fi
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/build.sh ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+
6
+ #pushd ${BUILD_PREFIX}/bin
7
+ # for fn in "${BUILD}-"*; do
8
+ # new_fn=${fn//${BUILD}-/}
9
+ # echo "Creating symlink from ${fn} to ${new_fn}"
10
+ # ln -sf "${fn}" "${new_fn}"
11
+ # varname=$(basename "${new_fn}" | tr a-z A-Z | sed "s/+/X/g" | sed "s/\./_/g" | sed "s/-/_/g")
12
+ # echo "$varname $CC"
13
+ # printf -v "$varname" "$BUILD_PREFIX/bin/${new_fn}"
14
+ # done
15
+ #popd
16
+
17
+ get_cpu_arch() {
18
+ local CPU_ARCH
19
+ if [[ "$1" == *"-64" ]]; then
20
+ CPU_ARCH="x86_64"
21
+ elif [[ "$1" == *"-ppc64le" ]]; then
22
+ CPU_ARCH="powerpc64le"
23
+ elif [[ "$1" == *"-aarch64" ]]; then
24
+ CPU_ARCH="aarch64"
25
+ elif [[ "$1" == *"-s390x" ]]; then
26
+ CPU_ARCH="s390x"
27
+ else
28
+ echo "Unknown architecture"
29
+ exit 1
30
+ fi
31
+ echo $CPU_ARCH
32
+ }
33
+
34
+ get_triplet() {
35
+ if [[ "$1" == linux-* ]]; then
36
+ echo "$(get_cpu_arch $1)-conda-linux-gnu"
37
+ elif [[ "$1" == osx-64 ]]; then
38
+ echo "x86_64-apple-darwin13.4.0"
39
+ elif [[ "$1" == osx-arm64 ]]; then
40
+ echo "arm64-apple-darwin20.0.0"
41
+ elif [[ "$1" == win-64 ]]; then
42
+ echo "x86_64-w64-mingw32"
43
+ else
44
+ echo "unknown platform"
45
+ fi
46
+ }
47
+
48
+ export BUILD="$(get_triplet $build_platform)"
49
+ export HOST="$(get_triplet $target_platform)"
50
+ export TARGET="$(get_triplet $cross_target_platform)"
51
+
52
+ # Fix permissions on license files--not sure why these are world-writable, but that's how
53
+ # they come from the upstream tarball
54
+ chmod og-w COPYING*
55
+
56
+ mkdir build
57
+ cd build
58
+
59
+ if [[ "$target_platform" == win-* ]]; then
60
+ PREFIX=$PREFIX/Library
61
+ export CC=$BUILD_PREFIX/bin/$HOST-cc
62
+ export CC_FOR_BUILD=$BUILD_PREFIX/bin/$BUILD-cc
63
+ fi
64
+ TARGET_SYSROOT_DIR=$PREFIX/$TARGET/sysroot
65
+
66
+ if [[ "$target_platform" == osx-arm64 ]]; then
67
+ OSX_ARCH="arm64"
68
+ elif [[ "$target_platform" == osx-64 ]]; then
69
+ OSX_ARCH="x86_64"
70
+ fi
71
+ if [[ "$target_platform" == osx-* ]]; then
72
+ export CPPFLAGS="$CPPFLAGS -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET} -arch ${OSX_ARCH}"
73
+ export CFLAGS="$CFLAGS -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET} -arch ${OSX_ARCH}"
74
+ export CXXFLAGS="$CXXFLAGS -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET} -arch ${OSX_ARCH}"
75
+ export LDFLAGS="$LDFLAGS -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -arch ${OSX_ARCH}"
76
+ fi
77
+
78
+ if [[ "$target_platform" == osx-* || "$target_platform" == linux-* ]]; then
79
+ export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib"
80
+ fi
81
+
82
+ if [[ "$target_platform" == linux-* || "$target_platform" == win-* ]]; then
83
+ # Since we might not have libgcc-ng packaged yet, let's statically link in libgcc
84
+ export LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
85
+ fi
86
+
87
+ ../configure \
88
+ --prefix="$PREFIX" \
89
+ --build=$BUILD \
90
+ --host=$HOST \
91
+ --target=$TARGET \
92
+ --enable-ld=default \
93
+ --enable-plugins \
94
+ --disable-multilib \
95
+ --disable-sim \
96
+ --disable-gdb \
97
+ --disable-nls \
98
+ --disable-gprofng \
99
+ --enable-default-pie \
100
+ --with-sysroot=${TARGET_SYSROOT_DIR} \
101
+ || (cat config.log; false)
102
+
103
+
104
+ make -j${CPU_COUNT}
105
+ make install-strip DESTDIR=$SRC_DIR/install
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/install_binutils.sh ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ cd install
6
+
7
+ find . -type f -exec bash -c 'mkdir -p /$(dirname {}) && cp {} /{}' ';'
8
+
9
+ export TARGET="${triplet}"
10
+
11
+ if [[ "${target_platform}" == win-* ]]; then
12
+ EXEEXT=".exe"
13
+ PREFIX=${PREFIX}/Library
14
+ symlink="cp"
15
+ else
16
+ symlink="ln -s"
17
+ fi
18
+
19
+ SYSROOT=${PREFIX}/${TARGET}
20
+
21
+ mkdir -p ${PREFIX}/bin
22
+ mkdir -p ${SYSROOT}/bin
23
+
24
+ TOOLS="addr2line ar c++filt elfedit nm objcopy objdump ranlib readelf size strings strip"
25
+ if [[ "${cross_target_platform}" != "osx-"* ]]; then
26
+ TOOLS="${TOOLS} as gprof ld.bfd"
27
+ fi
28
+ if [[ "${cross_target_platform}" == "win-"* ]]; then
29
+ TOOLS="${TOOLS} dlltool dllwrap windmc windres"
30
+ fi
31
+
32
+ # Remove hardlinks and replace them by softlinks
33
+ for tool in ${TOOLS}; do
34
+ tool=${tool}${EXEEXT}
35
+ if [[ "$target_platform" == "$cross_target_platform" ]]; then
36
+ mv ${PREFIX}/bin/${tool} ${PREFIX}/bin/${TARGET}-${tool}
37
+ fi
38
+ rm -rf ${SYSROOT}/bin/${tool}
39
+ $symlink ${PREFIX}/bin/${TARGET}-${tool} ${SYSROOT}/bin/${tool}
40
+ done
41
+
42
+ rm ${PREFIX}/bin/ld${EXEEXT} || true;
43
+ rm ${PREFIX}/bin/${TARGET}-ld${EXEEXT} || true;
44
+ rm ${SYSROOT}/bin/ld${EXEEXT} || true;
45
+
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/meta.yaml ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% set name = "binutils" %}
2
+ {% set version = "2.44" %}
3
+
4
+ package:
5
+ name: binutils_split
6
+ version: {{ version }}
7
+
8
+ source:
9
+ - url:
10
+ - https://ftp.gnu.org/gnu/binutils/binutils-{{ version }}.tar.bz2
11
+ - https://mirrors.ocf.berkeley.edu/gnu/binutils/binutils-{{ version }}.tar.bz2
12
+ sha256: f66390a661faa117d00fab2e79cf2dc9d097b42cc296bf3f8677d1e7b452dc3a
13
+ patches:
14
+ - patches/0001-fallback-sysroot.diff
15
+ - patches/0001-check_ldrunpath_length.patch
16
+ - patches/0006-sysroot.patch
17
+ - patches/0007-poison-system-directories.patch
18
+ - patches/0009-fix-align-kernel.patch
19
+
20
+ build:
21
+ number: 2
22
+ skip: true # [win64 and cross_target_platform != "win-64"]
23
+ detect_binary_files_with_prefix: false
24
+
25
+ requirements:
26
+ build:
27
+ - {{ compiler('cxx') }}
28
+ - {{ stdlib('c') }}
29
+ - make # [unix]
30
+ - texinfo # [unix]
31
+ - flex # [unix]
32
+ host:
33
+ run:
34
+
35
+ outputs:
36
+ - name: ld_impl_{{ cross_target_platform }}
37
+ script: install_ld.sh
38
+ build:
39
+ skip: true # [cross_target_platform in ("osx-arm64", "osx-64")]
40
+ merge_build_host: false
41
+ # ld binaries have host prefix search paths embedded in them
42
+ detect_binary_files_with_prefix: true
43
+ ignore_run_exports_from: # [linux]
44
+ - {{ compiler('cxx') }} # [linux]
45
+ ignore_run_exports: # [win]
46
+ - libwinpthread # [win]
47
+ requirements:
48
+ build:
49
+ - {{ compiler('cxx') }}
50
+ - {{ stdlib('c') }}
51
+ host:
52
+ run:
53
+ run_constrained:
54
+ - binutils_impl_{{ cross_target_platform }} {{ version }}
55
+ test:
56
+ commands:
57
+ - {{ triplet }}-ld --help
58
+ - echo "{{ ctng_vendor }}"
59
+
60
+ - name: binutils_impl_{{ cross_target_platform }}
61
+ script: install_binutils.sh
62
+ build:
63
+ merge_build_host: false
64
+ detect_binary_files_with_prefix: false
65
+ ignore_run_exports:
66
+ - __glibc
67
+ ignore_run_exports_from: # [linux]
68
+ - {{ compiler('cxx') }} # [linux]
69
+ ignore_run_exports: # [win]
70
+ - libwinpthread # [win]
71
+ requirements:
72
+ build:
73
+ - {{ compiler('cxx') }}
74
+ - {{ stdlib('c') }}
75
+ host:
76
+ - ld_impl_{{ cross_target_platform }} {{ version }} # [cross_target_platform not in ("osx-arm64", "osx-64")]
77
+ run:
78
+ - {{ pin_subpackage("ld_impl_" ~ cross_target_platform, exact=True) }} # [cross_target_platform not in ("osx-arm64", "osx-64")]
79
+ - sysroot_{{ cross_target_platform }} # [cross_target_platform not in ("win-64", "osx-arm64", "osx-64")]
80
+ - m2w64-sysroot_{{ cross_target_platform }} >=12.0.0.r0 # [cross_target_platform == "win-64"]
81
+ test:
82
+ downstreams:
83
+ - gfortran_impl_{{ cross_target_platform }} # [cross_target_platform != "win-64"]
84
+ - gcc_impl_{{ cross_target_platform }} # [cross_target_platform != "win-64"]
85
+ commands:
86
+ - {{ triplet }}-addr2line --help
87
+ - {{ triplet }}-ar --help
88
+ - {{ triplet }}-as --help # [cross_target_platform not in ("osx-arm64", "osx-64")]
89
+ - {{ triplet }}-c++filt --help
90
+ - {{ triplet }}-elfedit --help
91
+ - {{ triplet }}-gprof --help # [cross_target_platform not in ("osx-arm64", "osx-64")]
92
+ - {{ triplet }}-ld --help # [cross_target_platform not in ("osx-arm64", "osx-64")]
93
+ # Look here to check that search path prefixes have been replaced
94
+ - {{ triplet }}-ld --verbose | grep SEARCH # [cross_target_platform not in ("osx-arm64", "osx-64")]
95
+ - {{ triplet }}-ld.bfd --help # [cross_target_platform not in ("osx-arm64", "osx-64")]
96
+ - {{ triplet }}-nm --help
97
+ - {{ triplet }}-objcopy --help
98
+ - {{ triplet }}-objdump --help
99
+ - {{ triplet }}-ranlib --help
100
+ - {{ triplet }}-readelf --help
101
+ - {{ triplet }}-size --help
102
+ - {{ triplet }}-strings --help
103
+ - {{ triplet }}-strip --help
104
+
105
+ - name: binutils_{{ cross_target_platform }}
106
+ script: install_activation.sh
107
+ requirements:
108
+ run:
109
+ - {{ pin_subpackage("binutils_impl_" ~ cross_target_platform, exact=True) }}
110
+ test:
111
+ commands:
112
+ - $LD --help # [cross_target_platform not in ("win-64", "osx-arm64", "osx-64")]
113
+ - $AR --help
114
+
115
+ - name: binutils
116
+ script: install_binutils_symlinks.sh
117
+ build:
118
+ merge_build_host: false
119
+ detect_binary_files_with_prefix: false
120
+ skip: true # [cross_target_platform != target_platform]
121
+ requirements:
122
+ build:
123
+ host:
124
+ - binutils_impl_{{ cross_target_platform }} {{ version }}
125
+ run:
126
+ - {{ pin_subpackage("binutils_impl_" ~ cross_target_platform, max_pin="x.x.x") }}
127
+ test:
128
+ commands:
129
+ - $PREFIX/bin/addr2line --help
130
+ - $PREFIX/bin/ar --help
131
+ - $PREFIX/bin/as --help # [cross_target_platform not in ("osx-arm64", "osx-64")]
132
+ - $PREFIX/bin/c++filt --help
133
+ - $PREFIX/bin/elfedit --help
134
+ - $PREFIX/bin/gprof --help # [cross_target_platform not in ("osx-arm64", "osx-64")]
135
+ - $PREFIX/bin/ld --help # [cross_target_platform not in ("osx-arm64", "osx-64")]
136
+ - $PREFIX/bin/ld.bfd --help # [cross_target_platform not in ("osx-arm64", "osx-64")]
137
+ - $PREFIX/bin/nm --help
138
+ - $PREFIX/bin/objcopy --help
139
+ - $PREFIX/bin/objdump --help
140
+ - $PREFIX/bin/ranlib --help
141
+ - $PREFIX/bin/readelf --help
142
+ - $PREFIX/bin/size --help
143
+ - $PREFIX/bin/strings --help
144
+ - $PREFIX/bin/strip --help
145
+
146
+ about:
147
+ home: https://www.gnu.org/software/binutils/
148
+ dev_url: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git
149
+ doc_url: https://www.gnu.org/software/binutils/
150
+ license: GPL-3.0-only
151
+ license_family: GPL
152
+ license_file:
153
+ - COPYING
154
+ - COPYING.LIB
155
+ - COPYING3
156
+ - COPYING3.LIB
157
+ summary: The GNU Binutils are a collection of binary tools.
158
+ description: |
159
+ A set of programming tools for creating and managing binary programs, object files,
160
+ libraries, profile data, and assembly source code. The main ones are ld, as, and gold.
161
+
162
+ extra:
163
+ skip-lints:
164
+ - stdlib_must_be_in_build
165
+ - invalid_url # Main URL is a ftp connection.
166
+ recipe-maintainers:
167
+ - frol
168
+ - isuruf
169
+ - jjhelmus
170
+ - beckermr
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0001-check_ldrunpath_length.patch ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ ld/ldelf.c | 4 ++++
3
+ 1 file changed, 4 insertions(+)
4
+
5
+ --- a/ld/ldelf.c
6
+ +++ b/ld/ldelf.c
7
+ @@ -1134,6 +1134,8 @@ ldelf_handle_dt_needed (struct elf_link_hash_table *htab,
8
+ && command_line.rpath == NULL)
9
+ {
10
+ path = (const char *) getenv ("LD_RUN_PATH");
11
+ + if (path && *path == '\0')
12
+ + path = NULL;
13
+ if (path
14
+ && ldelf_search_needed (path, &n, force,
15
+ is_linux, elfsize))
16
+ @@ -1811,6 +1813,8 @@ ldelf_before_allocation (char *audit, char *depaudit,
17
+ rpath = command_line.rpath;
18
+ if (rpath == NULL)
19
+ rpath = (const char *) getenv ("LD_RUN_PATH");
20
+ + if (rpath && *rpath == '\0')
21
+ + rpath = NULL;
22
+
23
+ for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
24
+ if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0001-fallback-sysroot.diff ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- ld/ldmain.c 2021-07-05 23:36:21.880908712 -0500
2
+ +++ ld/ldmain.c 2021-07-05 23:35:42.096442970 -0500
3
+ @@ -645,6 +645,7 @@
4
+ {
5
+ int i;
6
+ const char *path = NULL;
7
+ + struct stat s;
8
+
9
+ for (i = 1; i < argc; i++)
10
+ if (CONST_STRNEQ (argv[i], "--sysroot="))
11
+ @@ -659,6 +660,9 @@
12
+ if (!path)
13
+ path = TARGET_SYSTEM_ROOT;
14
+
15
+ + if (!(stat (path, &s) == 0 && S_ISDIR (s.st_mode)))
16
+ + return "";
17
+ +
18
+ if (IS_DIR_SEPARATOR (*path) && path[1] == 0)
19
+ path = "";
20
+
21
+
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0006-sysroot.patch ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2
+
3
+ Always try to prepend the sysroot prefix to absolute filenames first.
4
+
5
+ http://bugs.gentoo.org/275666
6
+ http://sourceware.org/bugzilla/show_bug.cgi?id=10340
7
+
8
+ ---
9
+ ld/ldfile.c | 9 +++++++--
10
+ 1 file changed, 7 insertions(+), 2 deletions(-)
11
+
12
+ --- a/ld/ldfile.c
13
+ +++ b/ld/ldfile.c
14
+ @@ -569,18 +582,23 @@ ldfile_open_file_search (const char *arch,
15
+ directory first. */
16
+ if (!entry->flags.maybe_archive)
17
+ {
18
+ - if (entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename))
19
+ + /* For absolute pathnames, try to always open the file in the
20
+ + sysroot first. If this fails, try to open the file at the
21
+ + given location. */
22
+ + entry->flags.sysrooted = is_sysrooted_pathname (entry->filename);
23
+ + if (!entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename) && ld_sysroot)
24
+ {
25
+ char *name = concat (ld_sysroot, entry->filename,
26
+ (const char *) NULL);
27
+ if (ldfile_try_open_bfd (name, entry))
28
+ {
29
+ entry->filename = name;
30
+ + entry->flags.sysrooted = true;
31
+ return true;
32
+ }
33
+ free (name);
34
+ }
35
+ - else if (ldfile_try_open_bfd (entry->filename, entry))
36
+ + if (ldfile_try_open_bfd (entry->filename, entry))
37
+ return true;
38
+
39
+ if (IS_ABSOLUTE_PATH (entry->filename))
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0007-poison-system-directories.patch ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Patch adapted to binutils 2.23.2 and extended to use
2
+ BR_COMPILER_PARANOID_UNSAFE_PATH by Thomas Petazzoni.
3
+
4
+ [Gustavo: adapt to binutils 2.25]
5
+ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6
+ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
7
+
8
+ Upstream-Status: Inappropriate [distribution: codesourcery]
9
+
10
+ Patch originally created by Mark Hatle, forward-ported to
11
+ binutils 2.21 by Scott Garman.
12
+
13
+ purpose: warn for uses of system directories when cross linking
14
+
15
+ Code Merged from Sourcery G++ binutils 2.19 - 4.4-277
16
+
17
+ 2008-07-02 Joseph Myers <joseph@codesourcery.com>
18
+
19
+ ld/
20
+ * ld.h (args_type): Add error_poison_system_directories.
21
+ * ld.texinfo (--error-poison-system-directories): Document.
22
+ * ldfile.c (ldfile_add_library_path): Check
23
+ command_line.error_poison_system_directories.
24
+ * ldmain.c (main): Initialize
25
+ command_line.error_poison_system_directories.
26
+ * lexsup.c (enum option_values): Add
27
+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES.
28
+ (ld_options): Add --error-poison-system-directories.
29
+ (parse_args): Handle new option.
30
+
31
+ 2007-06-13 Joseph Myers <joseph@codesourcery.com>
32
+
33
+ ld/
34
+ * config.in: Regenerate.
35
+ * ld.h (args_type): Add poison_system_directories.
36
+ * ld.texinfo (--no-poison-system-directories): Document.
37
+ * ldfile.c (ldfile_add_library_path): Check
38
+ command_line.poison_system_directories.
39
+ * ldmain.c (main): Initialize
40
+ command_line.poison_system_directories.
41
+ * lexsup.c (enum option_values): Add
42
+ OPTION_NO_POISON_SYSTEM_DIRECTORIES.
43
+ (ld_options): Add --no-poison-system-directories.
44
+ (parse_args): Handle new option.
45
+
46
+ 2007-04-20 Joseph Myers <joseph@codesourcery.com>
47
+
48
+ Merge from Sourcery G++ binutils 2.17:
49
+
50
+ 2007-03-20 Joseph Myers <joseph@codesourcery.com>
51
+ Based on patch by Mark Hatle <mark.hatle@windriver.com>.
52
+ ld/
53
+ * configure.ac (--enable-poison-system-directories): New option.
54
+ * configure, config.in: Regenerate.
55
+ * ldfile.c (ldfile_add_library_path): If
56
+ ENABLE_POISON_SYSTEM_DIRECTORIES defined, warn for use of /lib,
57
+ /usr/lib, /usr/local/lib or /usr/X11R6/lib.
58
+
59
+ Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
60
+ Signed-off-by: Scott Garman <scott.a.garman@intel.com>
61
+
62
+ ---
63
+ ld/config.in | 3 +++
64
+ ld/configure | 14 ++++++++++++++
65
+ ld/configure.ac | 10 ++++++++++
66
+ ld/ld.h | 8 ++++++++
67
+ ld/ld.texi | 12 ++++++++++++
68
+ ld/ldfile.c | 17 +++++++++++++++++
69
+ ld/ldlex.h | 2 ++
70
+ ld/ldmain.c | 2 ++
71
+ ld/lexsup.c | 21 +++++++++++++++++++++
72
+ 9 files changed, 89 insertions(+)
73
+
74
+ diff --git a/ld/config.in b/ld/config.in
75
+ index 2d7b640..37cd12d 100644
76
+ --- a/ld/config.in
77
+ +++ b/ld/config.in
78
+ @@ -78,6 +78,9 @@
79
+ language is requested. */
80
+ #undef ENABLE_NLS
81
+
82
+ +/* Define to warn for use of native system library directories */
83
+ +#undef ENABLE_POISON_SYSTEM_DIRECTORIES
84
+ +
85
+ /* Additional extension a shared object might have. */
86
+ #undef EXTRA_SHLIB_EXTENSION
87
+
88
+ diff --git a/ld/configure b/ld/configure
89
+ index d3995b7..f28630b 100755
90
+ --- a/ld/configure
91
+ +++ b/ld/configure
92
+ @@ -844,6 +844,7 @@ with_lib_path
93
+ enable_targets
94
+ enable_64_bit_bfd
95
+ with_sysroot
96
+ +enable_poison_system_directories
97
+ enable_gold
98
+ enable_got
99
+ enable_compressed_debug_sections
100
+ @@ -1537,6 +1538,8 @@ Optional Features:
101
+ --enable-checking enable run-time checks
102
+ --enable-targets alternative target configurations
103
+ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
104
+ + --enable-poison-system-directories
105
+ + warn for use of native system library directories
106
+ --enable-gold[=ARG] build gold [ARG={default,yes,no}]
107
+ --enable-got=<type> GOT handling scheme (target, single, negative,
108
+ multigot)
109
+ @@ -15591,8 +15594,15 @@ else
110
+ installed_linker=ld.bfd
111
+ fi
112
+
113
+ -
114
+ -
115
+ +# Check whether --enable-poison-system-directories was given.
116
+ +if test "${enable_poison_system_directories+set}" = set; then :
117
+ + enableval=$enable_poison_system_directories;
118
+ +else
119
+ + enable_poison_system_directories=no
120
+ +fi
121
+ +if test "x${enable_poison_system_directories}" = "xyes"; then
122
+ + $as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h
123
+ +fi
124
+
125
+ # Check whether --enable-got was given.
126
+ if test "${enable_got+set}" = set; then :
127
+ diff --git a/ld/configure.ac b/ld/configure.ac
128
+ index 228f2ee..50a4b0f 100644
129
+ --- a/ld/configure.ac
130
+ +++ b/ld/configure.ac
131
+ @@ -102,6 +102,16 @@ AC_SUBST(use_sysroot)
132
+ AC_SUBST(TARGET_SYSTEM_ROOT)
133
+ AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
134
+
135
+ +AC_ARG_ENABLE([poison-system-directories],
136
+ + AS_HELP_STRING([--enable-poison-system-directories],
137
+ + [warn for use of native system library directories]),,
138
+ + [enable_poison_system_directories=no])
139
+ +if test "x${enable_poison_system_directories}" = "xyes"; then
140
+ + AC_DEFINE([ENABLE_POISON_SYSTEM_DIRECTORIES],
141
+ + [1],
142
+ + [Define to warn for use of native system library directories])
143
+ +fi
144
+ +
145
+ dnl Use --enable-gold to decide if this linker should be the default.
146
+ dnl "install_as_default" is set to false if gold is the default linker.
147
+ dnl "installed_linker" is the installed BFD linker name.
148
+ diff --git a/ld/ld.h b/ld/ld.h
149
+ index 254f0a0..991875a 100644
150
+ --- a/ld/ld.h
151
+ +++ b/ld/ld.h
152
+ @@ -161,6 +161,13 @@ typedef struct
153
+ /* If set, display the target memory usage (per memory region). */
154
+ bool print_memory_usage;
155
+
156
+ + /* If TRUE (the default) warn for uses of system directories when cross linking. */
157
+ + bool poison_system_directories;
158
+ +
159
+ + /* If TRUE (default FALSE) give an error for uses of system
160
+ + directories when cross linking instead of a warning. */
161
+ + bool error_poison_system_directories;
162
+ +
163
+ /* Should we force section groups to be resolved? Controlled with
164
+ --force-group-allocation on the command line or FORCE_GROUP_ALLOCATION
165
+ in the linker script. */
166
+ diff --git a/ld/ld.texi b/ld/ld.texi
167
+ index f6384ad..26479a6 100644
168
+ --- a/ld/ld.texi
169
+ +++ b/ld/ld.texi
170
+ @@ -3279,6 +3279,18 @@ creation of the metadata note, if one had been enabled by an earlier
171
+ occurrence of the --package-metadata option.
172
+ If the linker has been built with libjansson, then the JSON string
173
+ will be validated.
174
+ +
175
+ +@kindex --no-poison-system-directories
176
+ +@item --no-poison-system-directories
177
+ +Do not warn for @option{-L} options using system directories such as
178
+ +@file{/usr/lib} when cross linking. This option is intended for use
179
+ +in chroot environments when such directories contain the correct
180
+ +libraries for the target system rather than the host.
181
+ +
182
+ +@kindex --error-poison-system-directories
183
+ +@item --error-poison-system-directories
184
+ +Give an error instead of a warning for @option{-L} options using
185
+ +system directories when cross linking.
186
+ @end table
187
+
188
+ @c man end
189
+ diff --git a/ld/ldfile.c b/ld/ldfile.c
190
+ index 1255150..50ea70e 100644
191
+ --- a/ld/ldfile.c
192
+ +++ b/ld/ldfile.c
193
+ @@ -328,6 +328,19 @@ ldfile_add_library_path (const char *name, bool cmdline)
194
+ new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
195
+ else
196
+ new_dirs->name = xstrdup (name);
197
+ +#ifdef ENABLE_POISON_SYSTEM_DIRECTORIES
198
+ + if (command_line.poison_system_directories
199
+ + && ((!strncmp (name, "/lib", 4))
200
+ + || (!strncmp (name, "/usr/lib", 8))
201
+ + || (!strncmp (name, "/usr/local/lib", 14))
202
+ + || (!strncmp (name, "/usr/X11R6/lib", 14))))
203
+ + {
204
+ + if (command_line.error_poison_system_directories)
205
+ + einfo (_("%X%P: error: library search path \"%s\" is unsafe for cross-compilation\n"), name);
206
+ + else
207
+ + einfo (_("%P: warning: library search path \"%s\" is unsafe for cross-compilation\n"), name);
208
+ + }
209
+ +#endif
210
+ }
211
+
212
+ static void
213
+ diff --git a/ld/ldlex.h b/ld/ldlex.h
214
+ index b8b7d6b..4e57cca 100644
215
+ --- a/ld/ldlex.h
216
+ +++ b/ld/ldlex.h
217
+ @@ -471,6 +471,8 @@ enum option_values
218
+ OPTION_NO_LITERAL_MOVEMENT,
219
+ OPTION_ABI_WINDOWED,
220
+ OPTION_ABI_CALL0,
221
+ + OPTION_NO_POISON_SYSTEM_DIRECTORIES,
222
+ + OPTION_ERROR_POISON_SYSTEM_DIRECTORIES,
223
+ };
224
+
225
+ /* The initial parser states. */
226
+ diff --git a/ld/ldmain.c b/ld/ldmain.c
227
+ index f1c5f70..858323b 100644
228
+ --- a/ld/ldmain.c
229
+ +++ b/ld/ldmain.c
230
+ @@ -351,6 +351,8 @@ main (int argc, char **argv)
231
+ command_line.warn_mismatch = true;
232
+ command_line.warn_search_mismatch = true;
233
+ command_line.check_section_addresses = -1;
234
+ + command_line.poison_system_directories = true;
235
+ + command_line.error_poison_system_directories = true;
236
+
237
+ /* We initialize DEMANGLING based on the environment variable
238
+ COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
239
+ diff --git a/ld/lexsup.c b/ld/lexsup.c
240
+ index 5399aa4..1d05fc6 100644
241
+ --- a/ld/lexsup.c
242
+ +++ b/ld/lexsup.c
243
+ @@ -650,6 +650,14 @@ static const struct ld_option ld_options[] =
244
+ " <method> is: share-unconflicted (default),\n"
245
+ " share-duplicated"),
246
+ TWO_DASHES },
247
+ + { {"no-poison-system-directories", no_argument, NULL,
248
+ + OPTION_NO_POISON_SYSTEM_DIRECTORIES},
249
+ + '\0', NULL, N_("Do not warn for -L options using system directories"),
250
+ + TWO_DASHES },
251
+ + { {"error-poison-system-directories", no_argument, NULL,
252
+ + OPTION_ERROR_POISON_SYSTEM_DIRECTORIES},
253
+ + '\0', NULL, N_("Give an error for -L options using system directories"),
254
+ + TWO_DASHES },
255
+ };
256
+
257
+ #define OPTION_COUNT ARRAY_SIZE (ld_options)
258
+ @@ -662,6 +670,7 @@ parse_args (unsigned argc, char **argv)
259
+ int ingroup = 0;
260
+ char *default_dirlist = NULL;
261
+ char *shortopts;
262
+ + char *BR_paranoid_env;
263
+ struct option *longopts;
264
+ struct option *really_longopts;
265
+ int last_optind;
266
+ @@ -1789,6 +1798,14 @@ parse_args (unsigned argc, char **argv)
267
+ }
268
+ break;
269
+
270
+ + case OPTION_NO_POISON_SYSTEM_DIRECTORIES:
271
+ + command_line.poison_system_directories = false;
272
+ + break;
273
+ +
274
+ + case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:
275
+ + command_line.error_poison_system_directories = true;
276
+ + break;
277
+ +
278
+ case OPTION_PUSH_STATE:
279
+ input_flags.pushed = xmemdup (&input_flags,
280
+ sizeof (input_flags),
281
+ @@ -1933,6 +1950,10 @@ parse_args (unsigned argc, char **argv)
282
+ command_line.soname = NULL;
283
+ }
284
+
285
+ + BR_paranoid_env = getenv("BR_COMPILER_PARANOID_UNSAFE_PATH");
286
+ + if (BR_paranoid_env && strlen(BR_paranoid_env) > 0)
287
+ + command_line.error_poison_system_directories = true;
288
+ +
289
+ while (ingroup)
290
+ {
291
+ einfo (_("%P: missing --end-group; added as last command line option\n"));
292
+ --
293
+ 2.45.2
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/patches/0009-fix-align-kernel.patch ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Index: binutils-2.38/bfd/elf.c
2
+ ===================================================================
3
+ ---
4
+ bfd/elf.c | 18 +++++++++++++---
5
+ 1 file changed, 13 insertions(+), 3 deletions(-)
6
+
7
+ diff --git a/bfd/elf.c b/bfd/elf.c
8
+ index 1f2b82b..e290ad7 100644
9
+ --- a/bfd/elf.c
10
+ +++ b/bfd/elf.c
11
+ @@ -5803,6 +5803,8 @@ assign_file_positions_for_load_sections (bfd *abfd,
12
+ Elf_Internal_Phdr *p;
13
+ file_ptr off; /* Octets. */
14
+ bfd_size_type maxpagesize;
15
+ + bfd_size_type commonpagesize;
16
+ + bool p_align_commonpagesize_p = false;
17
+ unsigned int alloc, actual;
18
+ unsigned int i, j;
19
+ struct elf_segment_map **sorted_seg_map;
20
+ @@ -5888,12 +5890,19 @@ assign_file_positions_for_load_sections (bfd *abfd,
21
+ elf_sort_segments);
22
+
23
+ maxpagesize = 1;
24
+ + commonpagesize = 1;
25
+ if ((abfd->flags & D_PAGED) != 0)
26
+ {
27
+ if (link_info != NULL)
28
+ - maxpagesize = link_info->maxpagesize;
29
+ + {
30
+ + maxpagesize = link_info->maxpagesize;
31
+ + commonpagesize = link_info->commonpagesize;
32
+ + }
33
+ else
34
+ - maxpagesize = bed->maxpagesize;
35
+ + {
36
+ + maxpagesize = bed->maxpagesize;
37
+ + commonpagesize = bed->commonpagesize;
38
+ + }
39
+ }
40
+
41
+ /* Sections must map to file offsets past the ELF file header. */
42
+ @@ -5969,7 +5978,7 @@ assign_file_positions_for_load_sections (bfd *abfd,
43
+ largest section alignment. The run-time loader can
44
+ align segments to the default p_align value or the
45
+ maximum page size, depending on system page size. */
46
+ - p_align_p = true;
47
+ + p_align_commonpagesize_p = p_align_p = true;
48
+
49
+ p->p_align = maxpagesize;
50
+ }
51
+ @@ -6407,6 +6416,8 @@ assign_file_positions_for_load_sections (bfd *abfd,
52
+
53
+ if (p_align_p)
54
+ p->p_align = p_align;
55
+ + if (p_align_commonpagesize_p)
56
+ + p->p_align = commonpagesize;
57
+ }
58
+ }
59
+
60
+ --
61
+ 2.45.2
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/activate-binutils.bat ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ set "CONDA_BACKUP_ADDR2LINE=%ADDR2LINE%"
3
+ set "ADDR2LINE=@CHOST@-addr2line.exe"
4
+
5
+ set "CONDA_BACKUP_AR=%AR%"
6
+ set "AR=@CHOST@-ar.exe"
7
+
8
+ set "CONDA_BACKUP_AS=%AS%"
9
+ set "AS=@CHOST@-as.exe"
10
+
11
+ set "CONDA_BACKUP_CXXFILT=%CXXFILT%"
12
+ set "CXXFILT=@CHOST@-c++filt.exe"
13
+
14
+ set "CONDA_BACKUP_ELFEDIT=%ELFEDIT%"
15
+ set "ELFEDIT=@CHOST@-elfedit.exe"
16
+
17
+ set "CONDA_BACKUP_GPROF=%GPROF%"
18
+ set "GPROF=@CHOST@-gprof.exe"
19
+
20
+ set "CONDA_BACKUP_LD=%LD%"
21
+ set "LD=@CHOST@-ld.exe"
22
+
23
+ set "CONDA_BACKUP_NM=%NM%"
24
+ set "NM=@CHOST@-nm.exe"
25
+
26
+ set "CONDA_BACKUP_OBJCOPY=%OBJCOPY%"
27
+ set "OBJCOPY=@CHOST@-objcopy.exe"
28
+
29
+ set "CONDA_BACKUP_OBJDUMP=%OBJDUMP%"
30
+ set "OBJDUMP=@CHOST@-objdump.exe"
31
+
32
+ set "CONDA_BACKUP_RANLIB=%RANLIB%"
33
+ set "RANLIB=@CHOST@-ranlib.exe"
34
+
35
+ set "CONDA_BACKUP_READELF=%READELF%"
36
+ set "READELF=@CHOST@-readelf.exe"
37
+
38
+ set "CONDA_BACKUP_SIZE=%SIZE%"
39
+ set "SIZE=@CHOST@-size.exe"
40
+
41
+ set "CONDA_BACKUP_STRINGS=%STRINGS%"
42
+ set "STRINGS=@CHOST@-strings.exe"
43
+
44
+ set "CONDA_BACKUP_STRIP=%STRIP%"
45
+ set "STRIP=@CHOST@-strip.exe"
46
+
47
+ set "CONDA_BACKUP_DLLTOOL=%DLLTOOL%"
48
+ set "DLLTOOL=@CHOST@-dlltool.exe"
49
+
50
+ set "CONDA_BACKUP_DLLWRAP=%DLLWRAP%"
51
+ set "DLLWRAP=@CHOST@-dllwrap.exe"
52
+
53
+ set "CONDA_BACKUP_WINDMC=%WINDMC%"
54
+ set "WINDMC=@CHOST@-windmc.exe"
55
+
56
+ set "CONDA_BACKUP_WINDRES=%WINDRES%"
57
+ set "WINDRES=@CHOST@-windres.exe"
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/activate-binutils.ps1 ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $Env:CONDA_BACKUP_ADDR2LINE=$Env:ADDR2LINE
2
+ $Env:ADDR2LINE="@CHOST@-addr2line.exe"
3
+
4
+ $Env:CONDA_BACKUP_AR=$Env:AR
5
+ $Env:AR="@CHOST@-ar.exe"
6
+
7
+ $Env:CONDA_BACKUP_AS=$Env:AS
8
+ $Env:AS="@CHOST@-as.exe"
9
+
10
+ $Env:CONDA_BACKUP_CXXFILT=$Env:CXXFILT
11
+ $Env:CXXFILT="@CHOST@-c++filt.exe"
12
+
13
+ $Env:CONDA_BACKUP_ELFEDIT=$Env:ELFEDIT
14
+ $Env:ELFEDIT="@CHOST@-elfedit.exe"
15
+
16
+ $Env:CONDA_BACKUP_GPROF=$Env:GPROF
17
+ $Env:GPROF="@CHOST@-gprof.exe"
18
+
19
+ $Env:CONDA_BACKUP_LD=$Env:LD
20
+ $Env:LD="@CHOST@-ld.exe"
21
+
22
+ $Env:CONDA_BACKUP_NM=$Env:NM
23
+ $Env:NM="@CHOST@-nm.exe"
24
+
25
+ $Env:CONDA_BACKUP_OBJCOPY=$Env:OBJCOPY
26
+ $Env:OBJCOPY="@CHOST@-objcopy.exe"
27
+
28
+ $Env:CONDA_BACKUP_OBJDUMP=$Env:OBJDUMP
29
+ $Env:OBJDUMP="@CHOST@-objdump.exe"
30
+
31
+ $Env:CONDA_BACKUP_RANLIB=$Env:RANLIB
32
+ $Env:RANLIB="@CHOST@-ranlib.exe"
33
+
34
+ $Env:CONDA_BACKUP_READELF=$Env:READELF
35
+ $Env:READELF="@CHOST@-readelf.exe"
36
+
37
+ $Env:CONDA_BACKUP_SIZE=$Env:SIZE
38
+ $Env:SIZE="@CHOST@-size.exe"
39
+
40
+ $Env:CONDA_BACKUP_STRINGS=$Env:STRINGS
41
+ $Env:STRINGS="@CHOST@-strings.exe"
42
+
43
+ $Env:CONDA_BACKUP_STRIP=$Env:STRIP
44
+ $Env:STRIP="@CHOST@-strip.exe"
45
+
46
+ $Env:CONDA_BACKUP_DLLTOOL=$Env:DLLTOOL
47
+ $Env:DLLTOOL="@CHOST@-dlltool.exe"
48
+
49
+ $Env:CONDA_BACKUP_DLLWRAP=$Env:DLLWRAP
50
+ $Env:DLLWRAP="@CHOST@-dllwrap.exe"
51
+
52
+ $Env:CONDA_BACKUP_WINDMC=$Env:WINDMC
53
+ $Env:WINDMC="@CHOST@-windmc.exe"
54
+
55
+ $Env:CONDA_BACKUP_WINDRES=$Env:WINDRES
56
+ $Env:WINDRES="@CHOST@-windres.exe"
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/activate-binutils.sh ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # shellcheck shell=sh
2
+
3
+ # This function takes no arguments
4
+ # It tries to determine the name of this file in a programatic way.
5
+ _get_sourced_filename() {
6
+ # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded
7
+ if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then
8
+ # shellcheck disable=SC3054 # non-POSIX array access is guarded
9
+ basename "${BASH_SOURCE[0]}"
10
+ elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then
11
+ # in zsh use prompt-style expansion to introspect the same information
12
+ # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh
13
+ # shellcheck disable=SC2296 # bad '(' is guarded
14
+ basename "${(%):-%x}"
15
+ else
16
+ echo "UNKNOWN FILE"
17
+ fi
18
+ }
19
+
20
+ # The arguments to this are:
21
+ # 1. activation nature {activate|deactivate}
22
+ # 2. toolchain nature {build|host|ccc}
23
+ # 3. machine (should match -dumpmachine)
24
+ # 4. prefix (including any final -)
25
+ # 5+ program (or environment var comma value)
26
+ # The format for 5+ is name{,,value}. If value is specified
27
+ # then name taken to be an environment variable, otherwise
28
+ # it is taken to be a program. In this case, which is used
29
+ # to find the full filename during activation. The original
30
+ # value is stored in environment variable CONDA_BACKUP_NAME
31
+ # For deactivation, the distinction is irrelevant as in all
32
+ # cases NAME simply gets reset to CONDA_BACKUP_NAME. It is
33
+ # a fatal error if a program is identified but not present.
34
+ _tc_activation() {
35
+ local act_nature="$1"; shift
36
+ local tc_prefix="$1"; shift
37
+ local thing
38
+ local newval
39
+ local from
40
+ local to
41
+ local pass
42
+
43
+ if [ "${act_nature}" = "activate" ]; then
44
+ from=""
45
+ to="CONDA_BACKUP_"
46
+ else
47
+ from="CONDA_BACKUP_"
48
+ to=""
49
+ fi
50
+
51
+ for pass in check apply; do
52
+ for thing in "$@"; do
53
+ case "${thing}" in
54
+ *,*)
55
+ newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,")
56
+ thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,")
57
+ ;;
58
+ *)
59
+ newval="${CONDA_PREFIX}@LIBRARY_PREFIX@/bin/${tc_prefix}${thing}"
60
+ if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then
61
+ echo "ERROR: This cross-compiler package contains no program ${newval}"
62
+ return 1
63
+ fi
64
+ ;;
65
+ esac
66
+ if [ "${pass}" = "apply" ]; then
67
+ thing=$(echo "${thing}" | tr 'a-z+-.' 'A-ZX__')
68
+ eval oldval="\$${from}$thing"
69
+ if [ -n "${oldval}" ]; then
70
+ eval export "${to}'${thing}'=\"${oldval}\""
71
+ else
72
+ eval unset '${to}${thing}'
73
+ fi
74
+ if [ -n "${newval}" ]; then
75
+ eval export "'${from}${thing}=${newval}'"
76
+ else
77
+ eval unset '${from}${thing}'
78
+ fi
79
+ fi
80
+ done
81
+ done
82
+ return 0
83
+ }
84
+
85
+ if [ "@IS_WIN@" = "1" ]; then
86
+ CONDA_PREFIX=$(echo "${CONDA_PREFIX:-}" | sed 's,\\,\/,g')
87
+ fi
88
+
89
+ if [ "${CONDA_BUILD:-0}" = "1" ]; then
90
+ if [ -f /tmp/old-env-$$.txt ]; then
91
+ rm -f /tmp/old-env-$$.txt || true
92
+ fi
93
+ env > /tmp/old-env-$$.txt
94
+ fi
95
+
96
+ _tc_activation \
97
+ activate @CHOST@- @TOOLS@
98
+
99
+ if [ $? -ne 0 ]; then
100
+ echo "ERROR: $(_get_sourced_filename) failed, see above for details"
101
+ #exit 1
102
+ else
103
+ if [ "${CONDA_BUILD:-0}" = "1" ]; then
104
+ if [ -f /tmp/new-env-$$.txt ]; then
105
+ rm -f /tmp/new-env-$$.txt || true
106
+ fi
107
+ env > /tmp/new-env-$$.txt
108
+
109
+ echo "INFO: $(_get_sourced_filename) made the following environmental changes:"
110
+ diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort
111
+ rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true
112
+ fi
113
+ fi
114
+
115
+ if [ "@IS_WIN@" = "1" ]; then
116
+ CONDA_PREFIX=$(echo "${CONDA_PREFIX:-}" | sed 's,\/,\\,g')
117
+ fi
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/deactivate-binutils.bat ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ set "ADDR2LINE=%CONDA_BACKUP_ADDR2LINE%"
3
+ set "CONDA_BACKUP_ADDR2LINE="
4
+
5
+ set "AR=%CONDA_BACKUP_AR%"
6
+ set "CONDA_BACKUP_AR="
7
+
8
+ set "AS=%CONDA_BACKUP_AS%"
9
+ set "CONDA_BACKUP_AS="
10
+
11
+ set "CXXFILT=%CONDA_BACKUP_CXXFILT%"
12
+ set "CONDA_BACKUP_CXXFILT="
13
+
14
+ set "ELFEDIT=%CONDA_BACKUP_ELFEDIT%"
15
+ set "CONDA_BACKUP_ELFEDIT="
16
+
17
+ set "GPROF=%CONDA_BACKUP_GPROF%"
18
+ set "CONDA_BACKUP_GPROF="
19
+
20
+ set "LD=%CONDA_BACKUP_LD%"
21
+ set "CONDA_BACKUP_LD="
22
+
23
+ set "NM=%CONDA_BACKUP_NM%"
24
+ set "CONDA_BACKUP_NM="
25
+
26
+ set "OBJCOPY=%CONDA_BACKUP_OBJCOPY%"
27
+ set "CONDA_BACKUP_OBJCOPY="
28
+
29
+ set "OBJDUMP=%CONDA_BACKUP_OBJDUMP%"
30
+ set "CONDA_BACKUP_OBJDUMP="
31
+
32
+ set "RANLIB=%CONDA_BACKUP_RANLIB%"
33
+ set "CONDA_BACKUP_RANLIB="
34
+
35
+ set "READELF=%CONDA_BACKUP_READELF%"
36
+ set "CONDA_BACKUP_READELF="
37
+
38
+ set "SIZE=%CONDA_BACKUP_SIZE%"
39
+ set "CONDA_BACKUP_SIZE="
40
+
41
+ set "STRINGS=%CONDA_BACKUP_STRINGS%"
42
+ set "CONDA_BACKUP_STRINGS="
43
+
44
+ set "STRIP=%CONDA_BACKUP_STRIP%"
45
+ set "CONDA_BACKUP_STRIP="
46
+
47
+ set "DLLTOOL=%CONDA_BACKUP_DLLTOOL%"
48
+ set "CONDA_BACKUP_DLLTOOL="
49
+
50
+ set "DLLWRAP=%CONDA_BACKUP_DLLWRAP%"
51
+ set "CONDA_BACKUP_DLLWRAP="
52
+
53
+ set "WINDMC=%CONDA_BACKUP_WINDMC%"
54
+ set "CONDA_BACKUP_WINDMC="
55
+
56
+ set "WINDRES=%CONDA_BACKUP_WINDRES%"
57
+ set "CONDA_BACKUP_WINDRES="
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/deactivate-binutils.ps1 ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $Env:ADDR2LINE=$Env:CONDA_BACKUP_ADDR2LINE
2
+ $Env:CONDA_BACKUP_ADDR2LINE=$null
3
+
4
+ $Env:AR=$Env:CONDA_BACKUP_AR
5
+ $Env:CONDA_BACKUP_AR=$null
6
+
7
+ $Env:AS=$Env:CONDA_BACKUP_AS
8
+ $Env:CONDA_BACKUP_AS=$null
9
+
10
+ $Env:CXXFILT=$Env:CONDA_BACKUP_CXXFILT
11
+ $Env:CONDA_BACKUP_CXXFILT=$null
12
+
13
+ $Env:ELFEDIT=$Env:CONDA_BACKUP_ELFEDIT
14
+ $Env:CONDA_BACKUP_ELFEDIT=$null
15
+
16
+ $Env:GPROF=$Env:CONDA_BACKUP_GPROF
17
+ $Env:CONDA_BACKUP_GPROF=$null
18
+
19
+ $Env:LD=$Env:CONDA_BACKUP_LD
20
+ $Env:CONDA_BACKUP_LD=$null
21
+
22
+ $Env:NM=$Env:CONDA_BACKUP_NM
23
+ $Env:CONDA_BACKUP_NM=$null
24
+
25
+ $Env:OBJCOPY=$Env:CONDA_BACKUP_OBJCOPY
26
+ $Env:CONDA_BACKUP_OBJCOPY=$null
27
+
28
+ $Env:OBJDUMP=$Env:CONDA_BACKUP_OBJDUMP
29
+ $Env:CONDA_BACKUP_OBJDUMP=$null
30
+
31
+ $Env:RANLIB=$Env:CONDA_BACKUP_RANLIB
32
+ $Env:CONDA_BACKUP_RANLIB=$null
33
+
34
+ $Env:READELF=$Env:CONDA_BACKUP_READELF
35
+ $Env:CONDA_BACKUP_READELF=$null
36
+
37
+ $Env:SIZE=$Env:CONDA_BACKUP_SIZE
38
+ $Env:CONDA_BACKUP_SIZE=$null
39
+
40
+ $Env:STRINGS=$Env:CONDA_BACKUP_STRINGS
41
+ $Env:CONDA_BACKUP_STRINGS=$null
42
+
43
+ $Env:STRIP=$Env:CONDA_BACKUP_STRIP
44
+ $Env:CONDA_BACKUP_STRIP=$null
45
+
46
+ $Env:DLLTOOL=$Env:CONDA_BACKUP_DLLTOOL
47
+ $Env:CONDA_BACKUP_DLLTOOL=$null
48
+
49
+ $Env:DLLWRAP=$Env:CONDA_BACKUP_DLLWRAP
50
+ $Env:CONDA_BACKUP_DLLWRAP=$null
51
+
52
+ $Env:WINDMC=$Env:CONDA_BACKUP_WINDMC
53
+ $Env:CONDA_BACKUP_WINDMC=$null
54
+
55
+ $Env:WINDRES=$Env:CONDA_BACKUP_WINDRES
56
+ $Env:CONDA_BACKUP_WINDRES=$null
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/scripts/deactivate-binutils.sh ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # shellcheck shell=sh
2
+
3
+ # This function takes no arguments
4
+ # It tries to determine the name of this file in a programatic way.
5
+ _get_sourced_filename() {
6
+ # shellcheck disable=SC3054,SC2296 # non-POSIX array access and bad '(' are guarded
7
+ if [ -n "${BASH_SOURCE+x}" ] && [ -n "${BASH_SOURCE[0]}" ]; then
8
+ # shellcheck disable=SC3054 # non-POSIX array access is guarded
9
+ basename "${BASH_SOURCE[0]}"
10
+ elif [ -n "$ZSH_NAME" ] && [ -n "${(%):-%x}" ]; then
11
+ # in zsh use prompt-style expansion to introspect the same information
12
+ # see http://stackoverflow.com/questions/9901210/bash-source0-equivalent-in-zsh
13
+ # shellcheck disable=SC2296 # bad '(' is guarded
14
+ basename "${(%):-%x}"
15
+ else
16
+ echo "UNKNOWN FILE"
17
+ fi
18
+ }
19
+
20
+ # The arguments to this are:
21
+ # 1. activation nature {activate|deactivate}
22
+ # 2. toolchain nature {build|host|ccc}
23
+ # 3. machine (should match -dumpmachine)
24
+ # 4. prefix (including any final -)
25
+ # 5+ program (or environment var comma value)
26
+ # The format for 5+ is name{,,value}. If value is specified
27
+ # then name taken to be an environment variable, otherwise
28
+ # it is taken to be a program. In this case, which is used
29
+ # to find the full filename during activation. The original
30
+ # value is stored in environment variable CONDA_BACKUP_NAME
31
+ # For deactivation, the distinction is irrelevant as in all
32
+ # cases NAME simply gets reset to CONDA_BACKUP_NAME. It is
33
+ # a fatal error if a program is identified but not present.
34
+ _tc_activation() {
35
+ local act_nature="$1"; shift
36
+ local tc_prefix="$1"; shift
37
+ local thing
38
+ local newval
39
+ local from
40
+ local to
41
+ local pass
42
+
43
+ if [ "${act_nature}" = "activate" ]; then
44
+ from=""
45
+ to="CONDA_BACKUP_"
46
+ else
47
+ from="CONDA_BACKUP_"
48
+ to=""
49
+ fi
50
+
51
+ for pass in check apply; do
52
+ for thing in "$@"; do
53
+ case "${thing}" in
54
+ *,*)
55
+ newval=$(echo "${thing}" | sed "s,^[^\,]*\,\(.*\),\1,")
56
+ thing=$(echo "${thing}" | sed "s,^\([^\,]*\)\,.*,\1,")
57
+ ;;
58
+ *)
59
+ newval="${CONDA_PREFIX}@LIBRARY_PREFIX@/bin/${tc_prefix}${thing}"
60
+ if [ ! -x "${newval}" ] && [ "${pass}" = "check" ]; then
61
+ echo "ERROR: This cross-compiler package contains no program ${newval}"
62
+ return 1
63
+ fi
64
+ ;;
65
+ esac
66
+ if [ "${pass}" = "apply" ]; then
67
+ thing=$(echo "${thing}" | tr 'a-z+-.' 'A-ZX__')
68
+ eval oldval="\$${from}$thing"
69
+ if [ -n "${oldval}" ]; then
70
+ eval export "${to}'${thing}'=\"${oldval}\""
71
+ else
72
+ eval unset '${to}${thing}'
73
+ fi
74
+ if [ -n "${newval}" ]; then
75
+ eval export "'${from}${thing}=${newval}'"
76
+ else
77
+ eval unset '${from}${thing}'
78
+ fi
79
+ fi
80
+ done
81
+ done
82
+ return 0
83
+ }
84
+
85
+ if [ "@IS_WIN@" = "1" ]; then
86
+ CONDA_PREFIX=$(echo "${CONDA_PREFIX:-}" | sed 's,\\,\/,g')
87
+ fi
88
+
89
+ if [ "${CONDA_BUILD:-0}" = "1" ]; then
90
+ if [ -f /tmp/old-env-$$.txt ]; then
91
+ rm -f /tmp/old-env-$$.txt || true
92
+ fi
93
+ env > /tmp/old-env-$$.txt
94
+ fi
95
+
96
+ _tc_activation \
97
+ deactivate @CHOST@- @TOOLS@
98
+
99
+ if [ $? -ne 0 ]; then
100
+ echo "ERROR: $(_get_sourced_filename) failed, see above for details"
101
+ #exit 1
102
+ else
103
+ if [ "${CONDA_BUILD:-0}" = "1" ]; then
104
+ if [ -f /tmp/new-env-$$.txt ]; then
105
+ rm -f /tmp/new-env-$$.txt || true
106
+ fi
107
+ env > /tmp/new-env-$$.txt
108
+
109
+ echo "INFO: $(_get_sourced_filename) made the following environmental changes:"
110
+ diff -U 0 -rN /tmp/old-env-$$.txt /tmp/new-env-$$.txt | tail -n +4 | grep "^-.*\|^+.*" | grep -v "CONDA_BACKUP_" | sort
111
+ rm -f /tmp/old-env-$$.txt /tmp/new-env-$$.txt || true
112
+ fi
113
+ fi
114
+
115
+ if [ "@IS_WIN@" = "1" ]; then
116
+ CONDA_PREFIX=$(echo "${CONDA_PREFIX:-}" | sed 's,\/,\\,g')
117
+ fi
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/tests/aligned_alloc.c ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #include <stdio.h>
2
+ #include <stdlib.h>
3
+
4
+ int main(void)
5
+ {
6
+ int *p2 = (int*)aligned_alloc(1024, 1024*sizeof *p2);
7
+ printf("1024-byte aligned addr: %p\n", (void*)p2);
8
+ free(p2);
9
+ }
data/miniconda3/pkgs/binutils_linux-64-2.44-hc03a8fd_2/info/recipe/parent/tests/fortomp/CMakeLists.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.3...4.0 FATAL_ERROR)
2
+ project(fortomp
3
+ LANGUAGES Fortran)
4
+
5
+ find_package(OpenMP REQUIRED)
data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/about.json ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "channels": [
3
+ "file:///jenkins/agent/cia-tf-rocky9-jenkins-master-1.client.nvidia.com/workspace/kitpicks/cuda-r12-8/conda-cuda-r12-8-linux-x86-64/scratch/out",
4
+ "file:///jenkins/agent/cia-tf-rocky9-jenkins-master-1.client.nvidia.com/workspace/kitpicks/cuda-r12-8/conda-cuda-r12-8-linux-x86-64/scratch/input",
5
+ "https://repo.anaconda.com/pkgs/main"
6
+ ],
7
+ "conda_build_version": "24.1.2",
8
+ "conda_version": "24.1.2",
9
+ "description": "Meta-package containing all toolkit packages for CUDA development\n",
10
+ "doc_url": "https://docs.nvidia.com/cuda/index.html",
11
+ "env_vars": {
12
+ "CIO_TEST": "<not set>"
13
+ },
14
+ "extra": {
15
+ "copy_test_source_files": true,
16
+ "final": true,
17
+ "recipe-maintainers": [
18
+ "conda-forge/cuda"
19
+ ]
20
+ },
21
+ "home": "https://developer.nvidia.com/cuda-toolkit",
22
+ "identifiers": [],
23
+ "keywords": [],
24
+ "license": "LicenseRef-NVIDIA-End-User-License-Agreement",
25
+ "license_file": "LICENSE.txt",
26
+ "license_url": "https://docs.nvidia.com/cuda/eula/index.html",
27
+ "root_pkgs": [
28
+ "_libgcc_mutex 0.1 main",
29
+ "_openmp_mutex 5.1 1_gnu",
30
+ "archspec 0.2.1 pyhd3eb1b0_0",
31
+ "boltons 23.0.0 py312h06a4308_0",
32
+ "brotli-python 1.0.9 py312h6a678d5_7",
33
+ "bzip2 1.0.8 h7b6447c_0",
34
+ "c-ares 1.19.1 h5eee18b_0",
35
+ "ca-certificates 2023.12.12 h06a4308_0",
36
+ "certifi 2024.2.2 py312h06a4308_0",
37
+ "cffi 1.16.0 py312h5eee18b_0",
38
+ "charset-normalizer 2.0.4 pyhd3eb1b0_0",
39
+ "conda 24.1.2 py312h06a4308_0",
40
+ "conda-content-trust 0.2.0 py312h06a4308_0",
41
+ "conda-libmamba-solver 23.12.0 pyhd3eb1b0_1",
42
+ "conda-package-handling 2.2.0 py312h06a4308_0",
43
+ "conda-package-streaming 0.9.0 py312h06a4308_0",
44
+ "cryptography 41.0.7 py312hdda0065_0",
45
+ "distro 1.8.0 py312h06a4308_0",
46
+ "expat 2.5.0 h6a678d5_0",
47
+ "fmt 9.1.0 hdb19cb5_0",
48
+ "icu 73.1 h6a678d5_0",
49
+ "idna 3.4 py312h06a4308_0",
50
+ "jsonpatch 1.32 pyhd3eb1b0_0",
51
+ "jsonpointer 2.1 pyhd3eb1b0_0",
52
+ "krb5 1.20.1 h143b758_1",
53
+ "ld_impl_linux-64 2.38 h1181459_1",
54
+ "libarchive 3.6.2 h6ac8c49_2",
55
+ "libcurl 8.5.0 h251f7ec_0",
56
+ "libedit 3.1.20230828 h5eee18b_0",
57
+ "libev 4.33 h7f8727e_1",
58
+ "libffi 3.4.4 h6a678d5_0",
59
+ "libgcc-ng 11.2.0 h1234567_1",
60
+ "libgomp 11.2.0 h1234567_1",
61
+ "libmamba 1.5.3 haf1ee3a_0",
62
+ "libmambapy 1.5.3 py312h2dafd23_0",
63
+ "libnghttp2 1.57.0 h2d74bed_0",
64
+ "libsolv 0.7.24 he621ea3_0",
65
+ "libssh2 1.10.0 hdbd6064_2",
66
+ "libstdcxx-ng 11.2.0 h1234567_1",
67
+ "libuuid 1.41.5 h5eee18b_0",
68
+ "libxml2 2.10.4 hf1b16e4_1",
69
+ "lz4-c 1.9.4 h6a678d5_0",
70
+ "menuinst 2.0.2 py312h06a4308_0",
71
+ "ncurses 6.4 h6a678d5_0",
72
+ "openssl 3.0.13 h7f8727e_0",
73
+ "packaging 23.1 py312h06a4308_0",
74
+ "pcre2 10.42 hebb0a14_0",
75
+ "pip 23.3.1 py312h06a4308_0",
76
+ "platformdirs 3.10.0 py312h06a4308_0",
77
+ "pluggy 1.0.0 py312h06a4308_1",
78
+ "pybind11-abi 4 hd3eb1b0_1",
79
+ "pycosat 0.6.6 py312h5eee18b_0",
80
+ "pycparser 2.21 pyhd3eb1b0_0",
81
+ "pysocks 1.7.1 py312h06a4308_0",
82
+ "python 3.12.1 h996f2a0_0",
83
+ "readline 8.2 h5eee18b_0",
84
+ "reproc 14.2.4 h295c915_1",
85
+ "reproc-cpp 14.2.4 h295c915_1",
86
+ "requests 2.31.0 py312h06a4308_1",
87
+ "ruamel.yaml 0.17.21 py312h5eee18b_0",
88
+ "setuptools 68.2.2 py312h06a4308_0",
89
+ "sqlite 3.41.2 h5eee18b_0",
90
+ "tk 8.6.12 h1ccaba5_0",
91
+ "tqdm 4.65.0 py312he106c6f_0",
92
+ "truststore 0.8.0 py312h06a4308_0",
93
+ "tzdata 2023d h04d1e81_0",
94
+ "urllib3 2.1.0 py312h06a4308_1",
95
+ "wheel 0.41.2 py312h06a4308_0",
96
+ "xz 5.4.5 h5eee18b_0",
97
+ "yaml-cpp 0.8.0 h6a678d5_0",
98
+ "zlib 1.2.13 h5eee18b_0",
99
+ "zstandard 0.19.0 py312h5eee18b_0",
100
+ "zstd 1.5.5 hc292b87_0",
101
+ "anaconda-anon-usage 0.4.3 py312hfc0e8ea_100",
102
+ "anaconda-client 1.12.3 py312h06a4308_0",
103
+ "attrs 23.1.0 py312h06a4308_0",
104
+ "beautifulsoup4 4.12.2 py312h06a4308_0",
105
+ "chardet 4.0.0 py312h06a4308_1003",
106
+ "click 8.1.7 py312h06a4308_0",
107
+ "conda-build 24.1.2 py312h06a4308_0",
108
+ "conda-index 0.4.0 pyhd3eb1b0_0",
109
+ "defusedxml 0.7.1 pyhd3eb1b0_0",
110
+ "filelock 3.13.1 py312h06a4308_0",
111
+ "jinja2 3.1.3 py312h06a4308_0",
112
+ "jsonschema 4.19.2 py312h06a4308_0",
113
+ "jsonschema-specifications 2023.7.1 py312h06a4308_0",
114
+ "jupyter_core 5.5.0 py312h06a4308_0",
115
+ "liblief 0.12.3 h6a678d5_0",
116
+ "markupsafe 2.1.3 py312h5eee18b_0",
117
+ "more-itertools 10.1.0 py312h06a4308_0",
118
+ "nbformat 5.9.2 py312h06a4308_0",
119
+ "patch 2.7.6 h7b6447c_1001",
120
+ "patchelf 0.17.2 h6a678d5_0",
121
+ "pkginfo 1.9.6 py312h06a4308_0",
122
+ "psutil 5.9.0 py312h5eee18b_0",
123
+ "py-lief 0.12.3 py312h6a678d5_0",
124
+ "python-dateutil 2.8.2 pyhd3eb1b0_0",
125
+ "python-fastjsonschema 2.16.2 py312h06a4308_0",
126
+ "python-libarchive-c 2.9 pyhd3eb1b0_1",
127
+ "pytz 2023.3.post1 py312h06a4308_0",
128
+ "pyyaml 6.0.1 py312h5eee18b_0",
129
+ "referencing 0.30.2 py312h06a4308_0",
130
+ "requests-toolbelt 1.0.0 py312h06a4308_0",
131
+ "rpds-py 0.10.6 py312hb02cf49_0",
132
+ "six 1.16.0 pyhd3eb1b0_1",
133
+ "soupsieve 2.5 py312h06a4308_0",
134
+ "traitlets 5.7.1 py312h06a4308_0",
135
+ "yaml 0.2.5 h7b6447c_0"
136
+ ],
137
+ "summary": "Meta-package containing all toolkit packages for CUDA development",
138
+ "tags": []
139
+ }
data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/files ADDED
File without changes
data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/git ADDED
File without changes
data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/index.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "arch": "x86_64",
3
+ "build": "0",
4
+ "build_number": 0,
5
+ "depends": [
6
+ "__linux",
7
+ "cuda-compiler 12.8.1.*",
8
+ "cuda-libraries 12.8.1.*",
9
+ "cuda-libraries-dev 12.8.1.*",
10
+ "cuda-nvml-dev 12.8.90.*",
11
+ "cuda-tools 12.8.1.*"
12
+ ],
13
+ "license": "LicenseRef-NVIDIA-End-User-License-Agreement",
14
+ "name": "cuda-toolkit",
15
+ "platform": "linux",
16
+ "subdir": "linux-64",
17
+ "timestamp": 1741064563670,
18
+ "version": "12.8.1"
19
+ }
data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/licenses/LICENSE.txt ADDED
@@ -0,0 +1,1632 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ End User License Agreement
2
+ --------------------------
3
+
4
+ NVIDIA Software License Agreement and CUDA Supplement to
5
+ Software License Agreement.
6
+
7
+ The CUDA Toolkit End User License Agreement applies to the
8
+ NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA
9
+ Display Driver, NVIDIA Nsight tools (Visual Studio Edition),
10
+ and the associated documentation on CUDA APIs, programming
11
+ model and development tools. If you do not agree with the
12
+ terms and conditions of the license agreement, then do not
13
+ download or use the software.
14
+
15
+ Last updated: January 12, 2024.
16
+
17
+
18
+ Preface
19
+ -------
20
+
21
+ The Software License Agreement in Chapter 1 and the Supplement
22
+ in Chapter 2 contain license terms and conditions that govern
23
+ the use of NVIDIA toolkit. By accepting this agreement, you
24
+ agree to comply with all the terms and conditions applicable
25
+ to the product(s) included herein.
26
+
27
+
28
+ NVIDIA Driver
29
+
30
+
31
+ Description
32
+
33
+ This package contains the operating system driver and
34
+ fundamental system software components for NVIDIA GPUs.
35
+
36
+
37
+ NVIDIA CUDA Toolkit
38
+
39
+
40
+ Description
41
+
42
+ The NVIDIA CUDA Toolkit provides command-line and graphical
43
+ tools for building, debugging and optimizing the performance
44
+ of applications accelerated by NVIDIA GPUs, runtime and math
45
+ libraries, and documentation including programming guides,
46
+ user manuals, and API references.
47
+
48
+
49
+ Default Install Location of CUDA Toolkit
50
+
51
+ Windows platform:
52
+
53
+ %ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v#.#
54
+
55
+ Linux platform:
56
+
57
+ /usr/local/cuda-#.#
58
+
59
+ Mac platform:
60
+
61
+ /Developer/NVIDIA/CUDA-#.#
62
+
63
+
64
+ NVIDIA CUDA Samples
65
+
66
+
67
+ Description
68
+
69
+ CUDA Samples are now located in
70
+ https://github.com/nvidia/cuda-samples, which includes
71
+ instructions for obtaining, building, and running the samples.
72
+ They are no longer included in the CUDA toolkit.
73
+
74
+
75
+ NVIDIA Nsight Visual Studio Edition (Windows only)
76
+
77
+
78
+ Description
79
+
80
+ NVIDIA Nsight Development Platform, Visual Studio Edition is a
81
+ development environment integrated into Microsoft Visual
82
+ Studio that provides tools for debugging, profiling, analyzing
83
+ and optimizing your GPU computing and graphics applications.
84
+
85
+
86
+ Default Install Location of Nsight Visual Studio Edition
87
+
88
+ Windows platform:
89
+
90
+ %ProgramFiles(x86)%\NVIDIA Corporation\Nsight Visual Studio Edition #.#
91
+
92
+
93
+ 1. License Agreement for NVIDIA Software Development Kits
94
+ ---------------------------------------------------------
95
+
96
+
97
+ Important Notice—Read before downloading, installing,
98
+ copying or using the licensed software:
99
+ -------------------------------------------------------
100
+
101
+ This license agreement, including exhibits attached
102
+ ("Agreement”) is a legal agreement between you and NVIDIA
103
+ Corporation ("NVIDIA") and governs your use of a NVIDIA
104
+ software development kit (“SDK”).
105
+
106
+ Each SDK has its own set of software and materials, but here
107
+ is a description of the types of items that may be included in
108
+ a SDK: source code, header files, APIs, data sets and assets
109
+ (examples include images, textures, models, scenes, videos,
110
+ native API input/output files), binary software, sample code,
111
+ libraries, utility programs, programming code and
112
+ documentation.
113
+
114
+ This Agreement can be accepted only by an adult of legal age
115
+ of majority in the country in which the SDK is used.
116
+
117
+ If you are entering into this Agreement on behalf of a company
118
+ or other legal entity, you represent that you have the legal
119
+ authority to bind the entity to this Agreement, in which case
120
+ “you” will mean the entity you represent.
121
+
122
+ If you don’t have the required age or authority to accept
123
+ this Agreement, or if you don’t accept all the terms and
124
+ conditions of this Agreement, do not download, install or use
125
+ the SDK.
126
+
127
+ You agree to use the SDK only for purposes that are permitted
128
+ by (a) this Agreement, and (b) any applicable law, regulation
129
+ or generally accepted practices or guidelines in the relevant
130
+ jurisdictions.
131
+
132
+
133
+ 1.1. License
134
+
135
+
136
+ 1.1.1. License Grant
137
+
138
+ Subject to the terms of this Agreement, NVIDIA hereby grants
139
+ you a non-exclusive, non-transferable license, without the
140
+ right to sublicense (except as expressly provided in this
141
+ Agreement) to:
142
+
143
+ 1. Install and use the SDK,
144
+
145
+ 2. Modify and create derivative works of sample source code
146
+ delivered in the SDK, and
147
+
148
+ 3. Distribute those portions of the SDK that are identified
149
+ in this Agreement as distributable, as incorporated in
150
+ object code format into a software application that meets
151
+ the distribution requirements indicated in this Agreement.
152
+
153
+
154
+ 1.1.2. Distribution Requirements
155
+
156
+ These are the distribution requirements for you to exercise
157
+ the distribution grant:
158
+
159
+ 1. Your application must have material additional
160
+ functionality, beyond the included portions of the SDK.
161
+
162
+ 2. The distributable portions of the SDK shall only be
163
+ accessed by your application.
164
+
165
+ 3. The following notice shall be included in modifications
166
+ and derivative works of sample source code distributed:
167
+ “This software contains source code provided by NVIDIA
168
+ Corporation.”
169
+
170
+ 4. Unless a developer tool is identified in this Agreement
171
+ as distributable, it is delivered for your internal use
172
+ only.
173
+
174
+ 5. The terms under which you distribute your application
175
+ must be consistent with the terms of this Agreement,
176
+ including (without limitation) terms relating to the
177
+ license grant and license restrictions and protection of
178
+ NVIDIA’s intellectual property rights. Additionally, you
179
+ agree that you will protect the privacy, security and
180
+ legal rights of your application users.
181
+
182
+ 6. You agree to notify NVIDIA in writing of any known or
183
+ suspected distribution or use of the SDK not in compliance
184
+ with the requirements of this Agreement, and to enforce
185
+ the terms of your agreements with respect to distributed
186
+ SDK.
187
+
188
+
189
+ 1.1.3. Authorized Users
190
+
191
+ You may allow employees and contractors of your entity or of
192
+ your subsidiary(ies) to access and use the SDK from your
193
+ secure network to perform work on your behalf.
194
+
195
+ If you are an academic institution you may allow users
196
+ enrolled or employed by the academic institution to access and
197
+ use the SDK from your secure network.
198
+
199
+ You are responsible for the compliance with the terms of this
200
+ Agreement by your authorized users. If you become aware that
201
+ your authorized users didn’t follow the terms of this
202
+ Agreement, you agree to take reasonable steps to resolve the
203
+ non-compliance and prevent new occurrences.
204
+
205
+
206
+ 1.1.4. Pre-Release SDK
207
+
208
+ The SDK versions identified as alpha, beta, preview or
209
+ otherwise as pre-release, may not be fully functional, may
210
+ contain errors or design flaws, and may have reduced or
211
+ different security, privacy, accessibility, availability, and
212
+ reliability standards relative to commercial versions of
213
+ NVIDIA software and materials. Use of a pre-release SDK may
214
+ result in unexpected results, loss of data, project delays or
215
+ other unpredictable damage or loss.
216
+
217
+ You may use a pre-release SDK at your own risk, understanding
218
+ that pre-release SDKs are not intended for use in production
219
+ or business-critical systems.
220
+
221
+ NVIDIA may choose not to make available a commercial version
222
+ of any pre-release SDK. NVIDIA may also choose to abandon
223
+ development and terminate the availability of a pre-release
224
+ SDK at any time without liability.
225
+
226
+
227
+ 1.1.5. Updates
228
+
229
+ NVIDIA may, at its option, make available patches, workarounds
230
+ or other updates to this SDK. Unless the updates are provided
231
+ with their separate governing terms, they are deemed part of
232
+ the SDK licensed to you as provided in this Agreement. You
233
+ agree that the form and content of the SDK that NVIDIA
234
+ provides may change without prior notice to you. While NVIDIA
235
+ generally maintains compatibility between versions, NVIDIA may
236
+ in some cases make changes that introduce incompatibilities in
237
+ future versions of the SDK.
238
+
239
+
240
+ 1.1.6. Components Under Other Licenses
241
+
242
+ The SDK may come bundled with, or otherwise include or be
243
+ distributed with, NVIDIA or third-party components with
244
+ separate legal notices or terms as may be described in
245
+ proprietary notices accompanying the SDK. If and to the extent
246
+ there is a conflict between the terms in this Agreement and
247
+ the license terms associated with the component, the license
248
+ terms associated with the components control only to the
249
+ extent necessary to resolve the conflict.
250
+
251
+ Subject to the other terms of this Agreement, you may use the
252
+ SDK to develop and test applications released under Open
253
+ Source Initiative (OSI) approved open source software
254
+ licenses.
255
+
256
+
257
+ 1.1.7. Reservation of Rights
258
+
259
+ NVIDIA reserves all rights, title, and interest in and to the
260
+ SDK, not expressly granted to you under this Agreement.
261
+
262
+
263
+ 1.2. Limitations
264
+
265
+ The following license limitations apply to your use of the
266
+ SDK:
267
+
268
+ 1. You may not reverse engineer, decompile or disassemble,
269
+ or remove copyright or other proprietary notices from any
270
+ portion of the SDK or copies of the SDK.
271
+
272
+ 2. Except as expressly provided in this Agreement, you may
273
+ not copy, sell, rent, sublicense, transfer, distribute,
274
+ modify, or create derivative works of any portion of the
275
+ SDK. For clarity, you may not distribute or sublicense the
276
+ SDK as a stand-alone product.
277
+
278
+ 3. Unless you have an agreement with NVIDIA for this
279
+ purpose, you may not indicate that an application created
280
+ with the SDK is sponsored or endorsed by NVIDIA.
281
+
282
+ 4. You may not bypass, disable, or circumvent any
283
+ encryption, security, digital rights management or
284
+ authentication mechanism in the SDK.
285
+
286
+ 5. You may not use the SDK in any manner that would cause it
287
+ to become subject to an open source software license. As
288
+ examples, licenses that require as a condition of use,
289
+ modification, and/or distribution that the SDK be:
290
+
291
+ a. Disclosed or distributed in source code form;
292
+
293
+ b. Licensed for the purpose of making derivative works;
294
+ or
295
+
296
+ c. Redistributable at no charge.
297
+
298
+ 6. You acknowledge that the SDK as delivered is not tested
299
+ or certified by NVIDIA for use in connection with the
300
+ design, construction, maintenance, and/or operation of any
301
+ system where the use or failure of such system could
302
+ result in a situation that threatens the safety of human
303
+ life or results in catastrophic damages (each, a "Critical
304
+ Application"). Examples of Critical Applications include
305
+ use in avionics, navigation, autonomous vehicle
306
+ applications, ai solutions for automotive products,
307
+ military, medical, life support or other life critical
308
+ applications. NVIDIA shall not be liable to you or any
309
+ third party, in whole or in part, for any claims or
310
+ damages arising from such uses. You are solely responsible
311
+ for ensuring that any product or service developed with
312
+ the SDK as a whole includes sufficient features to comply
313
+ with all applicable legal and regulatory standards and
314
+ requirements.
315
+
316
+ 7. You agree to defend, indemnify and hold harmless NVIDIA
317
+ and its affiliates, and their respective employees,
318
+ contractors, agents, officers and directors, from and
319
+ against any and all claims, damages, obligations, losses,
320
+ liabilities, costs or debt, fines, restitutions and
321
+ expenses (including but not limited to attorney’s fees
322
+ and costs incident to establishing the right of
323
+ indemnification) arising out of or related to products or
324
+ services that use the SDK in or for Critical Applications,
325
+ and for use of the SDK outside of the scope of this
326
+ Agreement or not in compliance with its terms.
327
+
328
+ 8. You may not reverse engineer, decompile or disassemble
329
+ any portion of the output generated using SDK elements for
330
+ the purpose of translating such output artifacts to target
331
+ a non-NVIDIA platform.
332
+
333
+
334
+ 1.3. Ownership
335
+
336
+ 1. NVIDIA or its licensors hold all rights, title and
337
+ interest in and to the SDK and its modifications and
338
+ derivative works, including their respective intellectual
339
+ property rights, subject to your rights under Section
340
+ 1.3.2. This SDK may include software and materials from
341
+ NVIDIA’s licensors, and these licensors are intended
342
+ third party beneficiaries that may enforce this Agreement
343
+ with respect to their intellectual property rights.
344
+
345
+ 2. You hold all rights, title and interest in and to your
346
+ applications and your derivative works of the sample
347
+ source code delivered in the SDK, including their
348
+ respective intellectual property rights, subject to
349
+ NVIDIA’s rights under Section 1.3.1.
350
+
351
+ 3. You may, but don’t have to, provide to NVIDIA
352
+ suggestions, feature requests or other feedback regarding
353
+ the SDK, including possible enhancements or modifications
354
+ to the SDK. For any feedback that you voluntarily provide,
355
+ you hereby grant NVIDIA and its affiliates a perpetual,
356
+ non-exclusive, worldwide, irrevocable license to use,
357
+ reproduce, modify, license, sublicense (through multiple
358
+ tiers of sublicensees), and distribute (through multiple
359
+ tiers of distributors) it without the payment of any
360
+ royalties or fees to you. NVIDIA will use feedback at its
361
+ choice. NVIDIA is constantly looking for ways to improve
362
+ its products, so you may send feedback to NVIDIA through
363
+ the developer portal at https://developer.nvidia.com.
364
+
365
+
366
+ 1.4. No Warranties
367
+
368
+ THE SDK IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL
369
+ FAULTS.” TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND
370
+ ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND
371
+ OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING,
372
+ BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
373
+ FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THE
374
+ ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO
375
+ WARRANTY IS MADE ON THE BASIS OF TRADE USAGE, COURSE OF
376
+ DEALING OR COURSE OF TRADE.
377
+
378
+
379
+ 1.5. Limitation of Liability
380
+
381
+ TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS
382
+ AFFILIATES SHALL NOT BE LIABLE FOR ANY (I) SPECIAL, INCIDENTAL,
383
+ PUNITIVE OR CONSEQUENTIAL DAMAGES, OR (II) DAMAGES FOR (A) ANY
384
+ LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL,
385
+ OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF
386
+ OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE
387
+ OF THE SDK, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED
388
+ UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING
389
+ NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR
390
+ THEORY OF LIABILITY. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES
391
+ TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS
392
+ AGREEMENT EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE
393
+ NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS
394
+ LIMIT.
395
+
396
+ These exclusions and limitations of liability shall apply
397
+ regardless if NVIDIA or its affiliates have been advised of
398
+ the possibility of such damages, and regardless of whether a
399
+ remedy fails its essential purpose. These exclusions and
400
+ limitations of liability form an essential basis of the
401
+ bargain between the parties, and, absent any of these
402
+ exclusions or limitations of liability, the provisions of this
403
+ Agreement, including, without limitation, the economic terms,
404
+ would be substantially different.
405
+
406
+
407
+ 1.6. Termination
408
+
409
+ 1. This Agreement will continue to apply until terminated by
410
+ either you or NVIDIA as described below.
411
+
412
+ 2. If you want to terminate this Agreement, you may do so by
413
+ stopping to use the SDK.
414
+
415
+ 3. NVIDIA may, at any time, terminate this Agreement if:
416
+
417
+ a. (i) you fail to comply with any term of this
418
+ Agreement and the non-compliance is not fixed within
419
+ thirty (30) days following notice from NVIDIA (or
420
+ immediately if you violate NVIDIA’s intellectual
421
+ property rights);
422
+
423
+ b. (ii) you commence or participate in any legal
424
+ proceeding against NVIDIA with respect to the SDK; or
425
+
426
+ c. (iii) NVIDIA decides to no longer provide the SDK in
427
+ a country or, in NVIDIA’s sole discretion, the
428
+ continued use of it is no longer commercially viable.
429
+
430
+ 4. Upon any termination of this Agreement, you agree to
431
+ promptly discontinue use of the SDK and destroy all copies
432
+ in your possession or control. Your prior distributions in
433
+ accordance with this Agreement are not affected by the
434
+ termination of this Agreement. Upon written request, you
435
+ will certify in writing that you have complied with your
436
+ commitments under this section. Upon any termination of
437
+ this Agreement all provisions survive except for the
438
+ license grant provisions.
439
+
440
+
441
+ 1.7. General
442
+
443
+ If you wish to assign this Agreement or your rights and
444
+ obligations, including by merger, consolidation, dissolution
445
+ or operation of law, contact NVIDIA to ask for permission. Any
446
+ attempted assignment not approved by NVIDIA in writing shall
447
+ be void and of no effect. NVIDIA may assign, delegate or
448
+ transfer this Agreement and its rights and obligations, and if
449
+ to a non-affiliate you will be notified.
450
+
451
+ You agree to cooperate with NVIDIA and provide reasonably
452
+ requested information to verify your compliance with this
453
+ Agreement.
454
+
455
+ This Agreement will be governed in all respects by the laws of
456
+ the United States and of the State of Delaware, without regard to the
457
+ conflicts of laws principles. The United Nations Convention on
458
+ Contracts for the International Sale of Goods is specifically
459
+ disclaimed. You agree to all terms of this Agreement in the
460
+ English language.
461
+
462
+ The state or federal courts residing in Santa Clara County,
463
+ California shall have exclusive jurisdiction over any dispute
464
+ or claim arising out of this Agreement. Notwithstanding this,
465
+ you agree that NVIDIA shall still be allowed to apply for
466
+ injunctive remedies or an equivalent type of urgent legal
467
+ relief in any jurisdiction.
468
+
469
+ If any court of competent jurisdiction determines that any
470
+ provision of this Agreement is illegal, invalid or
471
+ unenforceable, such provision will be construed as limited to
472
+ the extent necessary to be consistent with and fully
473
+ enforceable under the law and the remaining provisions will
474
+ remain in full force and effect. Unless otherwise specified,
475
+ remedies are cumulative.
476
+
477
+ Each party acknowledges and agrees that the other is an
478
+ independent contractor in the performance of this Agreement.
479
+
480
+ The SDK has been developed entirely at private expense and is
481
+ “commercial items” consisting of “commercial computer
482
+ software” and “commercial computer software
483
+ documentation” provided with RESTRICTED RIGHTS. Use,
484
+ duplication or disclosure by the U.S. Government or a U.S.
485
+ Government subcontractor is subject to the restrictions in
486
+ this Agreement pursuant to DFARS 227.7202-3(a) or as set forth
487
+ in subparagraphs (c)(1) and (2) of the Commercial Computer
488
+ Software - Restricted Rights clause at FAR 52.227-19, as
489
+ applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas
490
+ Expressway, Santa Clara, CA 95051.
491
+
492
+ The SDK is subject to United States export laws and
493
+ regulations. You agree that you will not ship, transfer or
494
+ export the SDK into any country, or use the SDK in any manner,
495
+ prohibited by the United States Bureau of Industry and
496
+ Security or economic sanctions regulations administered by the
497
+ U.S. Department of Treasury’s Office of Foreign Assets
498
+ Control (OFAC), or any applicable export laws, restrictions or
499
+ regulations. These laws include restrictions on destinations,
500
+ end users and end use. By accepting this Agreement, you
501
+ confirm that you are not located in a country currently
502
+ embargoed by the U.S. or otherwise prohibited from receiving
503
+ the SDK under U.S. law.
504
+
505
+ Any notice delivered by NVIDIA to you under this Agreement
506
+ will be delivered via mail, email or fax. You agree that any
507
+ notices that NVIDIA sends you electronically will satisfy any
508
+ legal communication requirements. Please direct your legal
509
+ notices or other correspondence to NVIDIA Corporation, 2788
510
+ San Tomas Expressway, Santa Clara, California 95051, United
511
+ States of America, Attention: Legal Department.
512
+
513
+ This Agreement and any exhibits incorporated into this
514
+ Agreement constitute the entire agreement of the parties with
515
+ respect to the subject matter of this Agreement and supersede
516
+ all prior negotiations or documentation exchanged between the
517
+ parties relating to this SDK license. Any additional and/or
518
+ conflicting terms on documents issued by you are null, void,
519
+ and invalid. Any amendment or waiver under this Agreement
520
+ shall be in writing and signed by representatives of both
521
+ parties.
522
+
523
+
524
+ 2. CUDA Toolkit Supplement to Software License Agreement for
525
+ NVIDIA Software Development Kits
526
+ ------------------------------------------------------------
527
+
528
+ The terms in this supplement govern your use of the NVIDIA
529
+ CUDA Toolkit SDK under the terms of your license agreement
530
+ (“Agreement”) as modified by this supplement. Capitalized
531
+ terms used but not defined below have the meaning assigned to
532
+ them in the Agreement.
533
+
534
+ This supplement is an exhibit to the Agreement and is
535
+ incorporated as an integral part of the Agreement. In the
536
+ event of conflict between the terms in this supplement and the
537
+ terms in the Agreement, the terms in this supplement govern.
538
+
539
+
540
+ 2.1. License Scope
541
+
542
+ The SDK is licensed for you to develop applications only for
543
+ use in systems with NVIDIA GPUs.
544
+
545
+
546
+ 2.2. Distribution
547
+
548
+ The portions of the SDK that are distributable under the
549
+ Agreement are listed in Attachment A.
550
+
551
+
552
+ 2.3. Operating Systems
553
+
554
+ Those portions of the SDK designed exclusively for use on the
555
+ Linux or FreeBSD operating systems, or other operating systems
556
+ derived from the source code to these operating systems, may
557
+ be copied and redistributed for use in accordance with this
558
+ Agreement, provided that the object code files are not
559
+ modified in any way (except for unzipping of compressed
560
+ files).
561
+
562
+
563
+ 2.4. Audio and Video Encoders and Decoders
564
+
565
+ You acknowledge and agree that it is your sole responsibility
566
+ to obtain any additional third-party licenses required to
567
+ make, have made, use, have used, sell, import, and offer for
568
+ sale your products or services that include or incorporate any
569
+ third-party software and content relating to audio and/or
570
+ video encoders and decoders from, including but not limited
571
+ to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A.,
572
+ MPEG-LA, and Coding Technologies. NVIDIA does not grant to you
573
+ under this Agreement any necessary patent or other rights with
574
+ respect to any audio and/or video encoders and decoders.
575
+
576
+
577
+ 2.5. Licensing
578
+
579
+ If the distribution terms in this Agreement are not suitable
580
+ for your organization, or for any questions regarding this
581
+ Agreement, please contact NVIDIA at
582
+ nvidia-compute-license-questions@nvidia.com.
583
+
584
+
585
+ 2.6. Attachment A
586
+
587
+ The following CUDA Toolkit files may be distributed with
588
+ applications developed by you, including certain
589
+ variations of these files that have version number or
590
+ architecture specific information embedded in the file name -
591
+ as an example only, for release version 9.0 of the 64-bit
592
+ Windows software, the file cudart64_90.dll is redistributable.
593
+
594
+ Component
595
+
596
+ CUDA Runtime
597
+
598
+ Windows
599
+
600
+ cudart.dll, cudart_static.lib, cudadevrt.lib
601
+
602
+ Mac OSX
603
+
604
+ libcudart.dylib, libcudart_static.a, libcudadevrt.a
605
+
606
+ Linux
607
+
608
+ libcudart.so, libcudart_static.a, libcudadevrt.a
609
+
610
+ Android
611
+
612
+ libcudart.so, libcudart_static.a, libcudadevrt.a
613
+
614
+ Component
615
+
616
+ CUDA FFT Library
617
+
618
+ Windows
619
+
620
+ cufft.dll, cufftw.dll, cufft.lib, cufftw.lib
621
+
622
+ Mac OSX
623
+
624
+ libcufft.dylib, libcufft_static.a, libcufftw.dylib,
625
+ libcufftw_static.a
626
+
627
+ Linux
628
+
629
+ libcufft.so, libcufft_static.a, libcufftw.so,
630
+ libcufftw_static.a
631
+
632
+ Android
633
+
634
+ libcufft.so, libcufft_static.a, libcufftw.so,
635
+ libcufftw_static.a
636
+
637
+ Component
638
+
639
+ CUDA BLAS Library
640
+
641
+ Windows
642
+
643
+ cublas.dll, cublasLt.dll
644
+
645
+ Mac OSX
646
+
647
+ libcublas.dylib, libcublasLt.dylib, libcublas_static.a,
648
+ libcublasLt_static.a
649
+
650
+ Linux
651
+
652
+ libcublas.so, libcublasLt.so, libcublas_static.a,
653
+ libcublasLt_static.a
654
+
655
+ Android
656
+
657
+ libcublas.so, libcublasLt.so, libcublas_static.a,
658
+ libcublasLt_static.a
659
+
660
+ Component
661
+
662
+ NVIDIA "Drop-in" BLAS Library
663
+
664
+ Windows
665
+
666
+ nvblas.dll
667
+
668
+ Mac OSX
669
+
670
+ libnvblas.dylib
671
+
672
+ Linux
673
+
674
+ libnvblas.so
675
+
676
+ Component
677
+
678
+ CUDA Sparse Matrix Library
679
+
680
+ Windows
681
+
682
+ cusparse.dll, cusparse.lib
683
+
684
+ Mac OSX
685
+
686
+ libcusparse.dylib, libcusparse_static.a
687
+
688
+ Linux
689
+
690
+ libcusparse.so, libcusparse_static.a
691
+
692
+ Android
693
+
694
+ libcusparse.so, libcusparse_static.a
695
+
696
+ Component
697
+
698
+ CUDA Linear Solver Library
699
+
700
+ Windows
701
+
702
+ cusolver.dll, cusolver.lib
703
+
704
+ Mac OSX
705
+
706
+ libcusolver.dylib, libcusolver_static.a
707
+
708
+ Linux
709
+
710
+ libcusolver.so, libcusolver_static.a
711
+
712
+ Android
713
+
714
+ libcusolver.so, libcusolver_static.a
715
+
716
+ Component
717
+
718
+ CUDA Random Number Generation Library
719
+
720
+ Windows
721
+
722
+ curand.dll, curand.lib
723
+
724
+ Mac OSX
725
+
726
+ libcurand.dylib, libcurand_static.a
727
+
728
+ Linux
729
+
730
+ libcurand.so, libcurand_static.a
731
+
732
+ Android
733
+
734
+ libcurand.so, libcurand_static.a
735
+
736
+ Component
737
+
738
+ NVIDIA Performance Primitives Library
739
+
740
+ Windows
741
+
742
+ nppc.dll, nppc.lib, nppial.dll, nppial.lib, nppicc.dll,
743
+ nppicc.lib, nppicom.dll, nppicom.lib, nppidei.dll,
744
+ nppidei.lib, nppif.dll, nppif.lib, nppig.dll, nppig.lib,
745
+ nppim.dll, nppim.lib, nppist.dll, nppist.lib, nppisu.dll,
746
+ nppisu.lib, nppitc.dll, nppitc.lib, npps.dll, npps.lib
747
+
748
+ Mac OSX
749
+
750
+ libnppc.dylib, libnppc_static.a, libnppial.dylib,
751
+ libnppial_static.a, libnppicc.dylib, libnppicc_static.a,
752
+ libnppicom.dylib, libnppicom_static.a, libnppidei.dylib,
753
+ libnppidei_static.a, libnppif.dylib, libnppif_static.a,
754
+ libnppig.dylib, libnppig_static.a, libnppim.dylib,
755
+ libnppisu_static.a, libnppitc.dylib, libnppitc_static.a,
756
+ libnpps.dylib, libnpps_static.a
757
+
758
+ Linux
759
+
760
+ libnppc.so, libnppc_static.a, libnppial.so,
761
+ libnppial_static.a, libnppicc.so, libnppicc_static.a,
762
+ libnppicom.so, libnppicom_static.a, libnppidei.so,
763
+ libnppidei_static.a, libnppif.so, libnppif_static.a
764
+ libnppig.so, libnppig_static.a, libnppim.so,
765
+ libnppim_static.a, libnppist.so, libnppist_static.a,
766
+ libnppisu.so, libnppisu_static.a, libnppitc.so
767
+ libnppitc_static.a, libnpps.so, libnpps_static.a
768
+
769
+ Android
770
+
771
+ libnppc.so, libnppc_static.a, libnppial.so,
772
+ libnppial_static.a, libnppicc.so, libnppicc_static.a,
773
+ libnppicom.so, libnppicom_static.a, libnppidei.so,
774
+ libnppidei_static.a, libnppif.so, libnppif_static.a
775
+ libnppig.so, libnppig_static.a, libnppim.so,
776
+ libnppim_static.a, libnppist.so, libnppist_static.a,
777
+ libnppisu.so, libnppisu_static.a, libnppitc.so
778
+ libnppitc_static.a, libnpps.so, libnpps_static.a
779
+
780
+ Component
781
+
782
+ NVIDIA JPEG Library
783
+
784
+ Windows
785
+
786
+ nvjpeg.lib, nvjpeg.dll
787
+
788
+ Linux
789
+
790
+ libnvjpeg.so, libnvjpeg_static.a
791
+
792
+ Component
793
+
794
+ Internal common library required for statically linking to
795
+ cuBLAS, cuSPARSE, cuFFT, cuRAND, nvJPEG and NPP
796
+
797
+ Mac OSX
798
+
799
+ libculibos.a
800
+
801
+ Linux
802
+
803
+ libculibos.a
804
+
805
+ Component
806
+
807
+ NVIDIA Runtime Compilation Library and Header
808
+
809
+ All
810
+
811
+ nvrtc.h
812
+
813
+ Windows
814
+
815
+ nvrtc.dll, nvrtc-builtins.dll
816
+
817
+ Mac OSX
818
+
819
+ libnvrtc.dylib, libnvrtc-builtins.dylib
820
+
821
+ Linux
822
+
823
+ libnvrtc.so, libnvrtc-builtins.so, libnvrtc_static.a, libnvrtx-builtins_static.a
824
+
825
+ Component
826
+
827
+ NVIDIA Optimizing Compiler Library
828
+
829
+ Windows
830
+
831
+ nvvm.dll
832
+
833
+ Mac OSX
834
+
835
+ libnvvm.dylib
836
+
837
+ Linux
838
+
839
+ libnvvm.so
840
+
841
+ Component
842
+
843
+ NVIDIA JIT Linking Library
844
+
845
+ Windows
846
+
847
+ libnvJitLink.dll, libnvJitLink.lib
848
+
849
+ Linux
850
+
851
+ libnvJitLink.so, libnvJitLink_static.a
852
+
853
+ Component
854
+
855
+ NVIDIA Common Device Math Functions Library
856
+
857
+ Windows
858
+
859
+ libdevice.10.bc
860
+
861
+ Mac OSX
862
+
863
+ libdevice.10.bc
864
+
865
+ Linux
866
+
867
+ libdevice.10.bc
868
+
869
+ Component
870
+
871
+ CUDA Occupancy Calculation Header Library
872
+
873
+ All
874
+
875
+ cuda_occupancy.h
876
+
877
+ Component
878
+
879
+ CUDA Half Precision Headers
880
+
881
+ All
882
+
883
+ cuda_fp16.h, cuda_fp16.hpp
884
+
885
+ Component
886
+
887
+ CUDA Profiling Tools Interface (CUPTI) Library
888
+
889
+ Windows
890
+
891
+ cupti.dll
892
+
893
+ Mac OSX
894
+
895
+ libcupti.dylib
896
+
897
+ Linux
898
+
899
+ libcupti.so
900
+
901
+ Component
902
+
903
+ NVIDIA Tools Extension Library
904
+
905
+ Windows
906
+
907
+ nvToolsExt.dll, nvToolsExt.lib
908
+
909
+ Mac OSX
910
+
911
+ libnvToolsExt.dylib
912
+
913
+ Linux
914
+
915
+ libnvToolsExt.so
916
+
917
+ Component
918
+
919
+ NVIDIA CUDA Driver Libraries
920
+
921
+ Linux
922
+
923
+ libcuda.so, libnvidia-ptxjitcompiler.so, libnvptxcompiler_static.a
924
+
925
+ Component
926
+
927
+ NVIDIA CUDA File IO Libraries and Header
928
+
929
+ All
930
+
931
+ cufile.h
932
+
933
+ Linux
934
+
935
+ libcufile.so, libcufile_rdma.so, libcufile_static.a,
936
+ libcufile_rdma_static.a
937
+
938
+ In addition to the rights above, for parties that are
939
+ developing software intended solely for use on Jetson
940
+ development kits or Jetson modules, and running Linux for
941
+ Tegra software, the following shall apply:
942
+
943
+ * The SDK may be distributed in its entirety, as provided by
944
+ NVIDIA, and without separation of its components, for you
945
+ and/or your licensees to create software development kits
946
+ for use only on the Jetson platform and running Linux for
947
+ Tegra software.
948
+
949
+
950
+ 2.7. Attachment B
951
+
952
+
953
+ Additional Licensing Obligations
954
+
955
+ The following third party components included in the SOFTWARE
956
+ are licensed to Licensee pursuant to the following terms and
957
+ conditions:
958
+
959
+ 1. Licensee's use of the GDB third party component is
960
+ subject to the terms and conditions of GNU GPL v3:
961
+
962
+ This product includes copyrighted third-party software licensed
963
+ under the terms of the GNU General Public License v3 ("GPL v3").
964
+ All third-party software packages are copyright by their respective
965
+ authors. GPL v3 terms and conditions are hereby incorporated into
966
+ the Agreement by this reference: http://www.gnu.org/licenses/gpl.txt
967
+
968
+ Consistent with these licensing requirements, the software
969
+ listed below is provided under the terms of the specified
970
+ open source software licenses. To obtain source code for
971
+ software provided under licenses that require
972
+ redistribution of source code, including the GNU General
973
+ Public License (GPL) and GNU Lesser General Public License
974
+ (LGPL), contact oss-requests@nvidia.com. This offer is
975
+ valid for a period of three (3) years from the date of the
976
+ distribution of this product by NVIDIA CORPORATION.
977
+
978
+ Component License
979
+ CUDA-GDB GPL v3
980
+
981
+ 2. Licensee represents and warrants that any and all third
982
+ party licensing and/or royalty payment obligations in
983
+ connection with Licensee's use of the H.264 video codecs
984
+ are solely the responsibility of Licensee.
985
+
986
+ 3. Licensee's use of the Thrust library is subject to the
987
+ terms and conditions of the Apache License Version 2.0.
988
+ All third-party software packages are copyright by their
989
+ respective authors. Apache License Version 2.0 terms and
990
+ conditions are hereby incorporated into the Agreement by
991
+ this reference.
992
+ http://www.apache.org/licenses/LICENSE-2.0.html
993
+
994
+ In addition, Licensee acknowledges the following notice:
995
+ Thrust includes source code from the Boost Iterator,
996
+ Tuple, System, and Random Number libraries.
997
+
998
+ Boost Software License - Version 1.0 - August 17th, 2003
999
+ . . . .
1000
+
1001
+ Permission is hereby granted, free of charge, to any person or
1002
+ organization obtaining a copy of the software and accompanying
1003
+ documentation covered by this license (the "Software") to use,
1004
+ reproduce, display, distribute, execute, and transmit the Software,
1005
+ and to prepare derivative works of the Software, and to permit
1006
+ third-parties to whom the Software is furnished to do so, all
1007
+ subject to the following:
1008
+
1009
+ The copyright notices in the Software and this entire statement,
1010
+ including the above license grant, this restriction and the following
1011
+ disclaimer, must be included in all copies of the Software, in whole
1012
+ or in part, and all derivative works of the Software, unless such
1013
+ copies or derivative works are solely in the form of machine-executable
1014
+ object code generated by a source language processor.
1015
+
1016
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1017
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1018
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
1019
+ NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
1020
+ ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR
1021
+ OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING
1022
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1023
+ OTHER DEALINGS IN THE SOFTWARE.
1024
+
1025
+ 4. Licensee's use of the LLVM third party component is
1026
+ subject to the following terms and conditions:
1027
+
1028
+ ======================================================
1029
+ LLVM Release License
1030
+ ======================================================
1031
+ University of Illinois/NCSA
1032
+ Open Source License
1033
+
1034
+ Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1035
+ All rights reserved.
1036
+
1037
+ Developed by:
1038
+
1039
+ LLVM Team
1040
+
1041
+ University of Illinois at Urbana-Champaign
1042
+
1043
+ http://llvm.org
1044
+
1045
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1046
+ of this software and associated documentation files (the "Software"), to
1047
+ deal with the Software without restriction, including without limitation the
1048
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1049
+ sell copies of the Software, and to permit persons to whom the Software is
1050
+ furnished to do so, subject to the following conditions:
1051
+
1052
+ * Redistributions of source code must retain the above copyright notice,
1053
+ this list of conditions and the following disclaimers.
1054
+
1055
+ * Redistributions in binary form must reproduce the above copyright
1056
+ notice, this list of conditions and the following disclaimers in the
1057
+ documentation and/or other materials provided with the distribution.
1058
+
1059
+ * Neither the names of the LLVM Team, University of Illinois at Urbana-
1060
+ Champaign, nor the names of its contributors may be used to endorse or
1061
+ promote products derived from this Software without specific prior
1062
+ written permission.
1063
+
1064
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1065
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1066
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1067
+ THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
1068
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1069
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1070
+ DEALINGS WITH THE SOFTWARE.
1071
+
1072
+ 5. Licensee's use of the PCRE third party component is
1073
+ subject to the following terms and conditions:
1074
+
1075
+ ------------
1076
+ PCRE LICENCE
1077
+ ------------
1078
+ PCRE is a library of functions to support regular expressions whose syntax
1079
+ and semantics are as close as possible to those of the Perl 5 language.
1080
+ Release 8 of PCRE is distributed under the terms of the "BSD" licence, as
1081
+ specified below. The documentation for PCRE, supplied in the "doc"
1082
+ directory, is distributed under the same terms as the software itself. The
1083
+ basic library functions are written in C and are freestanding. Also
1084
+ included in the distribution is a set of C++ wrapper functions, and a just-
1085
+ in-time compiler that can be used to optimize pattern matching. These are
1086
+ both optional features that can be omitted when the library is built.
1087
+
1088
+ THE BASIC LIBRARY FUNCTIONS
1089
+ ---------------------------
1090
+ Written by: Philip Hazel
1091
+ Email local part: ph10
1092
+ Email domain: cam.ac.uk
1093
+ University of Cambridge Computing Service,
1094
+ Cambridge, England.
1095
+ Copyright (c) 1997-2012 University of Cambridge
1096
+ All rights reserved.
1097
+
1098
+ PCRE JUST-IN-TIME COMPILATION SUPPORT
1099
+ -------------------------------------
1100
+ Written by: Zoltan Herczeg
1101
+ Email local part: hzmester
1102
+ Emain domain: freemail.hu
1103
+ Copyright(c) 2010-2012 Zoltan Herczeg
1104
+ All rights reserved.
1105
+
1106
+ STACK-LESS JUST-IN-TIME COMPILER
1107
+ --------------------------------
1108
+ Written by: Zoltan Herczeg
1109
+ Email local part: hzmester
1110
+ Emain domain: freemail.hu
1111
+ Copyright(c) 2009-2012 Zoltan Herczeg
1112
+ All rights reserved.
1113
+
1114
+ THE C++ WRAPPER FUNCTIONS
1115
+ -------------------------
1116
+ Contributed by: Google Inc.
1117
+ Copyright (c) 2007-2012, Google Inc.
1118
+ All rights reserved.
1119
+
1120
+ THE "BSD" LICENCE
1121
+ -----------------
1122
+ Redistribution and use in source and binary forms, with or without
1123
+ modification, are permitted provided that the following conditions are met:
1124
+
1125
+ * Redistributions of source code must retain the above copyright notice,
1126
+ this list of conditions and the following disclaimer.
1127
+
1128
+ * Redistributions in binary form must reproduce the above copyright
1129
+ notice, this list of conditions and the following disclaimer in the
1130
+ documentation and/or other materials provided with the distribution.
1131
+
1132
+ * Neither the name of the University of Cambridge nor the name of Google
1133
+ Inc. nor the names of their contributors may be used to endorse or
1134
+ promote products derived from this software without specific prior
1135
+ written permission.
1136
+
1137
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1138
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1139
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1140
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
1141
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1142
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1143
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1144
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1145
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1146
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1147
+ POSSIBILITY OF SUCH DAMAGE.
1148
+
1149
+ 6. Some of the cuBLAS library routines were written by or
1150
+ derived from code written by Vasily Volkov and are subject
1151
+ to the Modified Berkeley Software Distribution License as
1152
+ follows:
1153
+
1154
+ Copyright (c) 2007-2009, Regents of the University of California
1155
+
1156
+ All rights reserved.
1157
+
1158
+ Redistribution and use in source and binary forms, with or without
1159
+ modification, are permitted provided that the following conditions are
1160
+ met:
1161
+ * Redistributions of source code must retain the above copyright
1162
+ notice, this list of conditions and the following disclaimer.
1163
+ * Redistributions in binary form must reproduce the above
1164
+ copyright notice, this list of conditions and the following
1165
+ disclaimer in the documentation and/or other materials provided
1166
+ with the distribution.
1167
+ * Neither the name of the University of California, Berkeley nor
1168
+ the names of its contributors may be used to endorse or promote
1169
+ products derived from this software without specific prior
1170
+ written permission.
1171
+
1172
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
1173
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1174
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1175
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
1176
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1177
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1178
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1179
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1180
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
1181
+ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1182
+ POSSIBILITY OF SUCH DAMAGE.
1183
+
1184
+ 7. Some of the cuBLAS library routines were written by or
1185
+ derived from code written by Davide Barbieri and are
1186
+ subject to the Modified Berkeley Software Distribution
1187
+ License as follows:
1188
+
1189
+ Copyright (c) 2008-2009 Davide Barbieri @ University of Rome Tor Vergata.
1190
+
1191
+ All rights reserved.
1192
+
1193
+ Redistribution and use in source and binary forms, with or without
1194
+ modification, are permitted provided that the following conditions are
1195
+ met:
1196
+ * Redistributions of source code must retain the above copyright
1197
+ notice, this list of conditions and the following disclaimer.
1198
+ * Redistributions in binary form must reproduce the above
1199
+ copyright notice, this list of conditions and the following
1200
+ disclaimer in the documentation and/or other materials provided
1201
+ with the distribution.
1202
+ * The name of the author may not be used to endorse or promote
1203
+ products derived from this software without specific prior
1204
+ written permission.
1205
+
1206
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
1207
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1208
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1209
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
1210
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1211
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1212
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1213
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1214
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
1215
+ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1216
+ POSSIBILITY OF SUCH DAMAGE.
1217
+
1218
+ 8. Some of the cuBLAS library routines were derived from
1219
+ code developed by the University of Tennessee and are
1220
+ subject to the Modified Berkeley Software Distribution
1221
+ License as follows:
1222
+
1223
+ Copyright (c) 2010 The University of Tennessee.
1224
+
1225
+ All rights reserved.
1226
+
1227
+ Redistribution and use in source and binary forms, with or without
1228
+ modification, are permitted provided that the following conditions are
1229
+ met:
1230
+ * Redistributions of source code must retain the above copyright
1231
+ notice, this list of conditions and the following disclaimer.
1232
+ * Redistributions in binary form must reproduce the above
1233
+ copyright notice, this list of conditions and the following
1234
+ disclaimer listed in this license in the documentation and/or
1235
+ other materials provided with the distribution.
1236
+ * Neither the name of the copyright holders nor the names of its
1237
+ contributors may be used to endorse or promote products derived
1238
+ from this software without specific prior written permission.
1239
+
1240
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1241
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1242
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1243
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1244
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1245
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1246
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1247
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1248
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1249
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1250
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1251
+
1252
+ 9. Some of the cuBLAS library routines were written by or
1253
+ derived from code written by Jonathan Hogg and are subject
1254
+ to the Modified Berkeley Software Distribution License as
1255
+ follows:
1256
+
1257
+ Copyright (c) 2012, The Science and Technology Facilities Council (STFC).
1258
+
1259
+ All rights reserved.
1260
+
1261
+ Redistribution and use in source and binary forms, with or without
1262
+ modification, are permitted provided that the following conditions are
1263
+ met:
1264
+ * Redistributions of source code must retain the above copyright
1265
+ notice, this list of conditions and the following disclaimer.
1266
+ * Redistributions in binary form must reproduce the above
1267
+ copyright notice, this list of conditions and the following
1268
+ disclaimer in the documentation and/or other materials provided
1269
+ with the distribution.
1270
+ * Neither the name of the STFC nor the names of its contributors
1271
+ may be used to endorse or promote products derived from this
1272
+ software without specific prior written permission.
1273
+
1274
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1275
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1276
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1277
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE STFC BE
1278
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1279
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1280
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
1281
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1282
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
1283
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
1284
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1285
+
1286
+ 10. Some of the cuBLAS library routines were written by or
1287
+ derived from code written by Ahmad M. Abdelfattah, David
1288
+ Keyes, and Hatem Ltaief, and are subject to the Apache
1289
+ License, Version 2.0, as follows:
1290
+
1291
+ -- (C) Copyright 2013 King Abdullah University of Science and Technology
1292
+ Authors:
1293
+ Ahmad Abdelfattah (ahmad.ahmad@kaust.edu.sa)
1294
+ David Keyes (david.keyes@kaust.edu.sa)
1295
+ Hatem Ltaief (hatem.ltaief@kaust.edu.sa)
1296
+
1297
+ Redistribution and use in source and binary forms, with or without
1298
+ modification, are permitted provided that the following conditions
1299
+ are met:
1300
+
1301
+ * Redistributions of source code must retain the above copyright
1302
+ notice, this list of conditions and the following disclaimer.
1303
+ * Redistributions in binary form must reproduce the above copyright
1304
+ notice, this list of conditions and the following disclaimer in the
1305
+ documentation and/or other materials provided with the distribution.
1306
+ * Neither the name of the King Abdullah University of Science and
1307
+ Technology nor the names of its contributors may be used to endorse
1308
+ or promote products derived from this software without specific prior
1309
+ written permission.
1310
+
1311
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1312
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1313
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1314
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1315
+ HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1316
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1317
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1318
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1319
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1320
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1321
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
1322
+
1323
+ 11. Some of the cuSPARSE library routines were written by or
1324
+ derived from code written by Li-Wen Chang and are subject
1325
+ to the NCSA Open Source License as follows:
1326
+
1327
+ Copyright (c) 2012, University of Illinois.
1328
+
1329
+ All rights reserved.
1330
+
1331
+ Developed by: IMPACT Group, University of Illinois, http://impact.crhc.illinois.edu
1332
+
1333
+ Permission is hereby granted, free of charge, to any person obtaining
1334
+ a copy of this software and associated documentation files (the
1335
+ "Software"), to deal with the Software without restriction, including
1336
+ without limitation the rights to use, copy, modify, merge, publish,
1337
+ distribute, sublicense, and/or sell copies of the Software, and to
1338
+ permit persons to whom the Software is furnished to do so, subject to
1339
+ the following conditions:
1340
+ * Redistributions of source code must retain the above copyright
1341
+ notice, this list of conditions and the following disclaimer.
1342
+ * Redistributions in binary form must reproduce the above
1343
+ copyright notice, this list of conditions and the following
1344
+ disclaimers in the documentation and/or other materials provided
1345
+ with the distribution.
1346
+ * Neither the names of IMPACT Group, University of Illinois, nor
1347
+ the names of its contributors may be used to endorse or promote
1348
+ products derived from this Software without specific prior
1349
+ written permission.
1350
+
1351
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1352
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1353
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1354
+ NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
1355
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1356
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1357
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
1358
+ SOFTWARE.
1359
+
1360
+ 12. Some of the cuRAND library routines were written by or
1361
+ derived from code written by Mutsuo Saito and Makoto
1362
+ Matsumoto and are subject to the following license:
1363
+
1364
+ Copyright (c) 2009, 2010 Mutsuo Saito, Makoto Matsumoto and Hiroshima
1365
+ University. All rights reserved.
1366
+
1367
+ Copyright (c) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima
1368
+ University and University of Tokyo. All rights reserved.
1369
+
1370
+ Redistribution and use in source and binary forms, with or without
1371
+ modification, are permitted provided that the following conditions are
1372
+ met:
1373
+ * Redistributions of source code must retain the above copyright
1374
+ notice, this list of conditions and the following disclaimer.
1375
+ * Redistributions in binary form must reproduce the above
1376
+ copyright notice, this list of conditions and the following
1377
+ disclaimer in the documentation and/or other materials provided
1378
+ with the distribution.
1379
+ * Neither the name of the Hiroshima University nor the names of
1380
+ its contributors may be used to endorse or promote products
1381
+ derived from this software without specific prior written
1382
+ permission.
1383
+
1384
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1385
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1386
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1387
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1388
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1389
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1390
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1391
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1392
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1393
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1394
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1395
+
1396
+ 13. Some of the cuRAND library routines were derived from
1397
+ code developed by D. E. Shaw Research and are subject to
1398
+ the following license:
1399
+
1400
+ Copyright 2010-2011, D. E. Shaw Research.
1401
+
1402
+ All rights reserved.
1403
+
1404
+ Redistribution and use in source and binary forms, with or without
1405
+ modification, are permitted provided that the following conditions are
1406
+ met:
1407
+ * Redistributions of source code must retain the above copyright
1408
+ notice, this list of conditions, and the following disclaimer.
1409
+ * Redistributions in binary form must reproduce the above
1410
+ copyright notice, this list of conditions, and the following
1411
+ disclaimer in the documentation and/or other materials provided
1412
+ with the distribution.
1413
+ * Neither the name of D. E. Shaw Research nor the names of its
1414
+ contributors may be used to endorse or promote products derived
1415
+ from this software without specific prior written permission.
1416
+
1417
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1418
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1419
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1420
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1421
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1422
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1423
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1424
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1425
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1426
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1427
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1428
+
1429
+ 14. Some of the Math library routines were written by or
1430
+ derived from code developed by Norbert Juffa and are
1431
+ subject to the following license:
1432
+
1433
+ Copyright (c) 2015-2017, Norbert Juffa
1434
+ All rights reserved.
1435
+
1436
+ Redistribution and use in source and binary forms, with or without
1437
+ modification, are permitted provided that the following conditions
1438
+ are met:
1439
+
1440
+ 1. Redistributions of source code must retain the above copyright
1441
+ notice, this list of conditions and the following disclaimer.
1442
+
1443
+ 2. Redistributions in binary form must reproduce the above copyright
1444
+ notice, this list of conditions and the following disclaimer in the
1445
+ documentation and/or other materials provided with the distribution.
1446
+
1447
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1448
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1449
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1450
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1451
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1452
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1453
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1454
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1455
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1456
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1457
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1458
+
1459
+ 15. Licensee's use of the lz4 third party component is
1460
+ subject to the following terms and conditions:
1461
+
1462
+ Copyright (C) 2011-2013, Yann Collet.
1463
+ BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
1464
+
1465
+ Redistribution and use in source and binary forms, with or without
1466
+ modification, are permitted provided that the following conditions are
1467
+ met:
1468
+
1469
+ * Redistributions of source code must retain the above copyright
1470
+ notice, this list of conditions and the following disclaimer.
1471
+ * Redistributions in binary form must reproduce the above
1472
+ copyright notice, this list of conditions and the following disclaimer
1473
+ in the documentation and/or other materials provided with the
1474
+ distribution.
1475
+
1476
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1477
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1478
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1479
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1480
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1481
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1482
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1483
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1484
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1485
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1486
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1487
+
1488
+ 16. The NPP library uses code from the Boost Math Toolkit,
1489
+ and is subject to the following license:
1490
+
1491
+ Boost Software License - Version 1.0 - August 17th, 2003
1492
+ . . . .
1493
+
1494
+ Permission is hereby granted, free of charge, to any person or
1495
+ organization obtaining a copy of the software and accompanying
1496
+ documentation covered by this license (the "Software") to use,
1497
+ reproduce, display, distribute, execute, and transmit the Software,
1498
+ and to prepare derivative works of the Software, and to permit
1499
+ third-parties to whom the Software is furnished to do so, all
1500
+ subject to the following:
1501
+
1502
+ The copyright notices in the Software and this entire statement,
1503
+ including the above license grant, this restriction and the following
1504
+ disclaimer, must be included in all copies of the Software, in whole
1505
+ or in part, and all derivative works of the Software, unless such
1506
+ copies or derivative works are solely in the form of machine-executable
1507
+ object code generated by a source language processor.
1508
+
1509
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1510
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1511
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
1512
+ NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
1513
+ ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR
1514
+ OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING
1515
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1516
+ OTHER DEALINGS IN THE SOFTWARE.
1517
+
1518
+ 17. Portions of the Nsight Eclipse Edition is subject to the
1519
+ following license:
1520
+
1521
+ The Eclipse Foundation makes available all content in this plug-in
1522
+ ("Content"). Unless otherwise indicated below, the Content is provided
1523
+ to you under the terms and conditions of the Eclipse Public License
1524
+ Version 1.0 ("EPL"). A copy of the EPL is available at http://
1525
+ www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, "Program"
1526
+ will mean the Content.
1527
+
1528
+ If you did not receive this Content directly from the Eclipse
1529
+ Foundation, the Content is being redistributed by another party
1530
+ ("Redistributor") and different terms and conditions may apply to your
1531
+ use of any object code in the Content. Check the Redistributor's
1532
+ license that was provided with the Content. If no such license exists,
1533
+ contact the Redistributor. Unless otherwise indicated below, the terms
1534
+ and conditions of the EPL still apply to any source code in the
1535
+ Content and such source code may be obtained at http://www.eclipse.org.
1536
+
1537
+ 18. Some of the cuBLAS library routines uses code from
1538
+ OpenAI, which is subject to the following license:
1539
+
1540
+ License URL
1541
+ https://github.com/openai/openai-gemm/blob/master/LICENSE
1542
+
1543
+ License Text
1544
+ The MIT License
1545
+
1546
+ Copyright (c) 2016 OpenAI (http://openai.com), 2016 Google Inc.
1547
+
1548
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1549
+ of this software and associated documentation files (the "Software"), to deal
1550
+ in the Software without restriction, including without limitation the rights
1551
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1552
+ copies of the Software, and to permit persons to whom the Software is
1553
+ furnished to do so, subject to the following conditions:
1554
+
1555
+ The above copyright notice and this permission notice shall be included in
1556
+ all copies or substantial portions of the Software.
1557
+
1558
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1559
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1560
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1561
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1562
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1563
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1564
+ THE SOFTWARE.
1565
+
1566
+ 19. Licensee's use of the Visual Studio Setup Configuration
1567
+ Samples is subject to the following license:
1568
+
1569
+ The MIT License (MIT)
1570
+ Copyright (C) Microsoft Corporation. All rights reserved.
1571
+
1572
+ Permission is hereby granted, free of charge, to any person
1573
+ obtaining a copy of this software and associated documentation
1574
+ files (the "Software"), to deal in the Software without restriction,
1575
+ including without limitation the rights to use, copy, modify, merge,
1576
+ publish, distribute, sublicense, and/or sell copies of the Software,
1577
+ and to permit persons to whom the Software is furnished to do so,
1578
+ subject to the following conditions:
1579
+
1580
+ The above copyright notice and this permission notice shall be included
1581
+ in all copies or substantial portions of the Software.
1582
+
1583
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1584
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1585
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1586
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1587
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1588
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1589
+
1590
+ 20. Licensee's use of linmath.h header for CPU functions for
1591
+ GL vector/matrix operations from lunarG is subject to the
1592
+ Apache License Version 2.0.
1593
+
1594
+ 21. The DX12-CUDA sample uses the d3dx12.h header, which is
1595
+ subject to the MIT license.
1596
+
1597
+ 22. Components of the driver and compiler used for binary management, including
1598
+ nvFatBin, nvcc, and cuobjdump, use the Zstandard library which is subject to
1599
+ the following license:
1600
+
1601
+ BSD License
1602
+
1603
+ For Zstandard software
1604
+
1605
+ Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
1606
+
1607
+ Redistribution and use in source and binary forms, with or without modification,
1608
+ are permitted provided that the following conditions are met:
1609
+
1610
+ * Redistributions of source code must retain the above copyright notice, this
1611
+ list of conditions and the following disclaimer.
1612
+
1613
+ * Redistributions in binary form must reproduce the above copyright notice,
1614
+ this list of conditions and the following disclaimer in the documentation
1615
+ and/or other materials provided with the distribution.
1616
+
1617
+ * Neither the name Facebook, nor Meta, nor the names of its contributors may
1618
+ be used to endorse or promote products derived from this software without
1619
+ specific prior written permission.
1620
+
1621
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1622
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1623
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1624
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
1625
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
1626
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
1627
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1628
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1629
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
1630
+ OF SUCH DAMAGE.
1631
+
1632
+ -----------------
data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/paths.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "paths": [],
3
+ "paths_version": 1
4
+ }
data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/repodata_record.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cuda-toolkit",
3
+ "version": "12.8.1",
4
+ "build": "0",
5
+ "build_number": 0,
6
+ "channel": "https://conda.anaconda.org/nvidia/linux-64",
7
+ "subdir": "linux-64",
8
+ "fn": "cuda-toolkit-12.8.1-0.conda",
9
+ "md5": "2440cfd39c0a83d02764b212257478f0",
10
+ "url": "https://conda.anaconda.org/nvidia/linux-64/cuda-toolkit-12.8.1-0.conda",
11
+ "sha256": "668c52c58d16a6201cde99d19a1a5bc2651ba57d1591255681d374235ba549e5",
12
+ "arch": "x86_64",
13
+ "platform": "linux",
14
+ "depends": [
15
+ "__linux",
16
+ "cuda-compiler 12.8.1.*",
17
+ "cuda-libraries 12.8.1.*",
18
+ "cuda-libraries-dev 12.8.1.*",
19
+ "cuda-nvml-dev 12.8.90.*",
20
+ "cuda-tools 12.8.1.*"
21
+ ],
22
+ "constrains": [],
23
+ "license": "LicenseRef-NVIDIA-End-User-License-Agreement",
24
+ "timestamp": 1741064563000,
25
+ "size": 16948
26
+ }
data/miniconda3/pkgs/cuda-toolkit-12.8.1-0/info/test/run_test.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ set -ex
4
+
5
+
6
+
7
+ exit 0
8
+ exit 0
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/2to3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.11
2
+ import sys
3
+ from lib2to3.main import main
4
+
5
+ sys.exit(main("lib2to3.fixes"))
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/2to3-3.11 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.11
2
+ import sys
3
+ from lib2to3.main import main
4
+
5
+ sys.exit(main("lib2to3.fixes"))
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/idle3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.11
2
+
3
+ from idlelib.pyshell import main
4
+ if __name__ == '__main__':
5
+ main()
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/idle3.11 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.11
2
+
3
+ from idlelib.pyshell import main
4
+ if __name__ == '__main__':
5
+ main()
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/pydoc ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.11
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/pydoc3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.11
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/pydoc3.11 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.11
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/python3-config ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Keep this script in sync with python-config.in
4
+
5
+ exit_with_usage ()
6
+ {
7
+ echo "Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed"
8
+ exit $1
9
+ }
10
+
11
+ if [ "$1" = "" ] ; then
12
+ exit_with_usage 1
13
+ fi
14
+
15
+ # Returns the actual prefix where this script was installed to.
16
+ installed_prefix ()
17
+ {
18
+ RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
19
+ if which readlink >/dev/null 2>&1 ; then
20
+ if readlink -f "$RESULT" >/dev/null 2>&1; then
21
+ RESULT=$(readlink -f "$RESULT")
22
+ fi
23
+ fi
24
+ echo $RESULT
25
+ }
26
+
27
+ prefix_real=$(installed_prefix "$0")
28
+
29
+ # Use sed to fix paths from their built-to locations to their installed-to
30
+ # locations. Keep prefix & exec_prefix using their original values in case
31
+ # they are referenced in other configure variables, to prevent double
32
+ # substitution, issue #22140.
33
+ prefix="/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol"
34
+ exec_prefix="${prefix}"
35
+ exec_prefix_real=${prefix_real}
36
+ includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
37
+ libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
38
+ CFLAGS=$(echo "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/include -fdebug-prefix-map=/home/task_177324838993876/croot/python-split_1773249007352/work=/usr/local/src/conda/python-3.11.15 -fdebug-prefix-map=/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto" | sed "s#$prefix#$prefix_real#")
39
+ VERSION="3.11"
40
+ LIBM="-lm"
41
+ LIBC=""
42
+ SYSLIBS="$LIBM $LIBC"
43
+ ABIFLAGS=""
44
+ LIBS=" -lpthread -ldl -lutil $SYSLIBS"
45
+ LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lpthread -ldl -lutil $SYSLIBS"
46
+ BASECFLAGS=""
47
+ LDLIBRARY="libpython${VERSION}${ABIFLAGS}.a"
48
+ OPT="-DNDEBUG -fwrapv -O3 -Wall"
49
+ PY_ENABLE_SHARED="0"
50
+ LDVERSION="${VERSION}${ABIFLAGS}"
51
+ LIBDEST=${prefix_real}/lib/python${VERSION}
52
+ LIBPL=$(echo "${prefix}/lib/python3.11/config-${VERSION}${ABIFLAGS}-x86_64-linux-gnu" | sed "s#$prefix#$prefix_real#")
53
+ SO=".cpython-311-x86_64-linux-gnu.so"
54
+ PYTHONFRAMEWORK=""
55
+ INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
56
+ PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
57
+ PY_EMBED=0
58
+
59
+ # Scan for --help or unknown argument.
60
+ for ARG in $*
61
+ do
62
+ case $ARG in
63
+ --help)
64
+ exit_with_usage 0
65
+ ;;
66
+ --embed)
67
+ PY_EMBED=1
68
+ ;;
69
+ --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
70
+ ;;
71
+ *)
72
+ exit_with_usage 1
73
+ ;;
74
+ esac
75
+ done
76
+
77
+ if [ $PY_EMBED = 1 ] ; then
78
+ LIBS="$LIBS_EMBED"
79
+ fi
80
+
81
+ for ARG in "$@"
82
+ do
83
+ case "$ARG" in
84
+ --prefix)
85
+ echo "$prefix_real"
86
+ ;;
87
+ --exec-prefix)
88
+ echo "$exec_prefix_real"
89
+ ;;
90
+ --includes)
91
+ echo "$INCDIR $PLATINCDIR"
92
+ ;;
93
+ --cflags)
94
+ echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT"
95
+ ;;
96
+ --libs)
97
+ echo "$LIBS"
98
+ ;;
99
+ --ldflags)
100
+ LIBPLUSED=
101
+ if [ "$PY_ENABLE_SHARED" = "0" ] ; then
102
+ LIBPLUSED="-L$LIBPL"
103
+ fi
104
+ echo "$LIBPLUSED -L$libdir $LIBS"
105
+ ;;
106
+ --extension-suffix)
107
+ echo "$SO"
108
+ ;;
109
+ --abiflags)
110
+ echo "$ABIFLAGS"
111
+ ;;
112
+ --configdir)
113
+ echo "$LIBPL"
114
+ ;;
115
+ esac
116
+ done
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/bin/python3.11-config ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Keep this script in sync with python-config.in
4
+
5
+ exit_with_usage ()
6
+ {
7
+ echo "Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed"
8
+ exit $1
9
+ }
10
+
11
+ if [ "$1" = "" ] ; then
12
+ exit_with_usage 1
13
+ fi
14
+
15
+ # Returns the actual prefix where this script was installed to.
16
+ installed_prefix ()
17
+ {
18
+ RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
19
+ if which readlink >/dev/null 2>&1 ; then
20
+ if readlink -f "$RESULT" >/dev/null 2>&1; then
21
+ RESULT=$(readlink -f "$RESULT")
22
+ fi
23
+ fi
24
+ echo $RESULT
25
+ }
26
+
27
+ prefix_real=$(installed_prefix "$0")
28
+
29
+ # Use sed to fix paths from their built-to locations to their installed-to
30
+ # locations. Keep prefix & exec_prefix using their original values in case
31
+ # they are referenced in other configure variables, to prevent double
32
+ # substitution, issue #22140.
33
+ prefix="/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol"
34
+ exec_prefix="${prefix}"
35
+ exec_prefix_real=${prefix_real}
36
+ includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
37
+ libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
38
+ CFLAGS=$(echo "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/include -fdebug-prefix-map=/home/task_177324838993876/croot/python-split_1773249007352/work=/usr/local/src/conda/python-3.11.15 -fdebug-prefix-map=/home/task_177324838993876/croot/python-split_1773249007352/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto" | sed "s#$prefix#$prefix_real#")
39
+ VERSION="3.11"
40
+ LIBM="-lm"
41
+ LIBC=""
42
+ SYSLIBS="$LIBM $LIBC"
43
+ ABIFLAGS=""
44
+ LIBS=" -lpthread -ldl -lutil $SYSLIBS"
45
+ LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lpthread -ldl -lutil $SYSLIBS"
46
+ BASECFLAGS=""
47
+ LDLIBRARY="libpython${VERSION}${ABIFLAGS}.a"
48
+ OPT="-DNDEBUG -fwrapv -O3 -Wall"
49
+ PY_ENABLE_SHARED="0"
50
+ LDVERSION="${VERSION}${ABIFLAGS}"
51
+ LIBDEST=${prefix_real}/lib/python${VERSION}
52
+ LIBPL=$(echo "${prefix}/lib/python3.11/config-${VERSION}${ABIFLAGS}-x86_64-linux-gnu" | sed "s#$prefix#$prefix_real#")
53
+ SO=".cpython-311-x86_64-linux-gnu.so"
54
+ PYTHONFRAMEWORK=""
55
+ INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
56
+ PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
57
+ PY_EMBED=0
58
+
59
+ # Scan for --help or unknown argument.
60
+ for ARG in $*
61
+ do
62
+ case $ARG in
63
+ --help)
64
+ exit_with_usage 0
65
+ ;;
66
+ --embed)
67
+ PY_EMBED=1
68
+ ;;
69
+ --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
70
+ ;;
71
+ *)
72
+ exit_with_usage 1
73
+ ;;
74
+ esac
75
+ done
76
+
77
+ if [ $PY_EMBED = 1 ] ; then
78
+ LIBS="$LIBS_EMBED"
79
+ fi
80
+
81
+ for ARG in "$@"
82
+ do
83
+ case "$ARG" in
84
+ --prefix)
85
+ echo "$prefix_real"
86
+ ;;
87
+ --exec-prefix)
88
+ echo "$exec_prefix_real"
89
+ ;;
90
+ --includes)
91
+ echo "$INCDIR $PLATINCDIR"
92
+ ;;
93
+ --cflags)
94
+ echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT"
95
+ ;;
96
+ --libs)
97
+ echo "$LIBS"
98
+ ;;
99
+ --ldflags)
100
+ LIBPLUSED=
101
+ if [ "$PY_ENABLE_SHARED" = "0" ] ; then
102
+ LIBPLUSED="-L$LIBPL"
103
+ fi
104
+ echo "$LIBPLUSED -L$libdir $LIBS"
105
+ ;;
106
+ --extension-suffix)
107
+ echo "$SO"
108
+ ;;
109
+ --abiflags)
110
+ echo "$ABIFLAGS"
111
+ ;;
112
+ --configdir)
113
+ echo "$LIBPL"
114
+ ;;
115
+ esac
116
+ done
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/compiler_compat/README ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Files in this folder are to enhance backwards compatibility of anaconda software with older compilers.
2
+ See: https://github.com/conda/conda/issues/6030 for more information.
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/Python.h ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Entry point of the Python C API.
2
+ // C extensions should only #include <Python.h>, and not include directly
3
+ // the other Python header files included by <Python.h>.
4
+
5
+ #ifndef Py_PYTHON_H
6
+ #define Py_PYTHON_H
7
+
8
+ // Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" {
9
+
10
+ // Include Python header files
11
+ #include "patchlevel.h"
12
+ #include "pyconfig.h"
13
+ #include "pymacconfig.h"
14
+
15
+ #if defined(__sgi) && !defined(_SGI_MP_SOURCE)
16
+ # define _SGI_MP_SOURCE
17
+ #endif
18
+
19
+ // stdlib.h, stdio.h, errno.h and string.h headers are not used by Python
20
+ // headers, but kept for backward compatibility. They are excluded from the
21
+ // limited C API of Python 3.11.
22
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
23
+ # include <stdlib.h>
24
+ # include <stdio.h> // FILE*
25
+ # include <errno.h> // errno
26
+ # include <string.h> // memcpy()
27
+ #endif
28
+ #ifndef MS_WINDOWS
29
+ # include <unistd.h>
30
+ #endif
31
+ #ifdef HAVE_STDDEF_H
32
+ # include <stddef.h> // size_t
33
+ #endif
34
+
35
+ #include <assert.h> // assert()
36
+ #include <wchar.h> // wchar_t
37
+
38
+ #include "pyport.h"
39
+ #include "pymacro.h"
40
+ #include "pymath.h"
41
+ #include "pymem.h"
42
+ #include "pytypedefs.h"
43
+ #include "pybuffer.h"
44
+ #include "object.h"
45
+ #include "objimpl.h"
46
+ #include "typeslots.h"
47
+ #include "pyhash.h"
48
+ #include "cpython/pydebug.h"
49
+ #include "bytearrayobject.h"
50
+ #include "bytesobject.h"
51
+ #include "unicodeobject.h"
52
+ #include "cpython/code.h"
53
+ #include "cpython/initconfig.h"
54
+ #include "pystate.h"
55
+ #include "pyerrors.h"
56
+ #include "longobject.h"
57
+ #include "cpython/longintrepr.h"
58
+ #include "boolobject.h"
59
+ #include "floatobject.h"
60
+ #include "complexobject.h"
61
+ #include "rangeobject.h"
62
+ #include "memoryobject.h"
63
+ #include "tupleobject.h"
64
+ #include "listobject.h"
65
+ #include "dictobject.h"
66
+ #include "cpython/odictobject.h"
67
+ #include "enumobject.h"
68
+ #include "setobject.h"
69
+ #include "methodobject.h"
70
+ #include "moduleobject.h"
71
+ #include "cpython/funcobject.h"
72
+ #include "cpython/classobject.h"
73
+ #include "fileobject.h"
74
+ #include "pycapsule.h"
75
+ #include "pyframe.h"
76
+ #include "traceback.h"
77
+ #include "sliceobject.h"
78
+ #include "cpython/cellobject.h"
79
+ #include "iterobject.h"
80
+ #include "cpython/genobject.h"
81
+ #include "descrobject.h"
82
+ #include "genericaliasobject.h"
83
+ #include "warnings.h"
84
+ #include "weakrefobject.h"
85
+ #include "structseq.h"
86
+ #include "cpython/picklebufobject.h"
87
+ #include "cpython/pytime.h"
88
+ #include "codecs.h"
89
+ #include "pythread.h"
90
+ #include "cpython/context.h"
91
+ #include "modsupport.h"
92
+ #include "compile.h"
93
+ #include "pythonrun.h"
94
+ #include "pylifecycle.h"
95
+ #include "ceval.h"
96
+ #include "sysmodule.h"
97
+ #include "osmodule.h"
98
+ #include "intrcheck.h"
99
+ #include "import.h"
100
+ #include "abstract.h"
101
+ #include "bltinmodule.h"
102
+ #include "cpython/pyctype.h"
103
+ #include "pystrtod.h"
104
+ #include "pystrcmp.h"
105
+ #include "fileutils.h"
106
+ #include "cpython/pyfpe.h"
107
+ #include "tracemalloc.h"
108
+
109
+ #endif /* !Py_PYTHON_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/abstract.h ADDED
@@ -0,0 +1,873 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Abstract Object Interface (many thanks to Jim Fulton) */
2
+
3
+ #ifndef Py_ABSTRACTOBJECT_H
4
+ #define Py_ABSTRACTOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ /* === Object Protocol ================================================== */
10
+
11
+ /* Implemented elsewhere:
12
+
13
+ int PyObject_Print(PyObject *o, FILE *fp, int flags);
14
+
15
+ Print an object 'o' on file 'fp'. Returns -1 on error. The flags argument
16
+ is used to enable certain printing options. The only option currently
17
+ supported is Py_Print_RAW.
18
+
19
+ (What should be said about Py_Print_RAW?). */
20
+
21
+
22
+ /* Implemented elsewhere:
23
+
24
+ int PyObject_HasAttrString(PyObject *o, const char *attr_name);
25
+
26
+ Returns 1 if object 'o' has the attribute attr_name, and 0 otherwise.
27
+
28
+ This is equivalent to the Python expression: hasattr(o,attr_name).
29
+
30
+ This function always succeeds. */
31
+
32
+
33
+ /* Implemented elsewhere:
34
+
35
+ PyObject* PyObject_GetAttrString(PyObject *o, const char *attr_name);
36
+
37
+ Retrieve an attributed named attr_name form object o.
38
+ Returns the attribute value on success, or NULL on failure.
39
+
40
+ This is the equivalent of the Python expression: o.attr_name. */
41
+
42
+
43
+ /* Implemented elsewhere:
44
+
45
+ int PyObject_HasAttr(PyObject *o, PyObject *attr_name);
46
+
47
+ Returns 1 if o has the attribute attr_name, and 0 otherwise.
48
+
49
+ This is equivalent to the Python expression: hasattr(o,attr_name).
50
+
51
+ This function always succeeds. */
52
+
53
+ /* Implemented elsewhere:
54
+
55
+ PyObject* PyObject_GetAttr(PyObject *o, PyObject *attr_name);
56
+
57
+ Retrieve an attributed named 'attr_name' form object 'o'.
58
+ Returns the attribute value on success, or NULL on failure.
59
+
60
+ This is the equivalent of the Python expression: o.attr_name. */
61
+
62
+
63
+ /* Implemented elsewhere:
64
+
65
+ int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v);
66
+
67
+ Set the value of the attribute named attr_name, for object 'o',
68
+ to the value 'v'. Raise an exception and return -1 on failure; return 0 on
69
+ success.
70
+
71
+ This is the equivalent of the Python statement o.attr_name=v. */
72
+
73
+
74
+ /* Implemented elsewhere:
75
+
76
+ int PyObject_SetAttr(PyObject *o, PyObject *attr_name, PyObject *v);
77
+
78
+ Set the value of the attribute named attr_name, for object 'o', to the value
79
+ 'v'. an exception and return -1 on failure; return 0 on success.
80
+
81
+ This is the equivalent of the Python statement o.attr_name=v. */
82
+
83
+ /* Implemented as a macro:
84
+
85
+ int PyObject_DelAttrString(PyObject *o, const char *attr_name);
86
+
87
+ Delete attribute named attr_name, for object o. Returns
88
+ -1 on failure.
89
+
90
+ This is the equivalent of the Python statement: del o.attr_name. */
91
+ #define PyObject_DelAttrString(O,A) PyObject_SetAttrString((O),(A), NULL)
92
+
93
+
94
+ /* Implemented as a macro:
95
+
96
+ int PyObject_DelAttr(PyObject *o, PyObject *attr_name);
97
+
98
+ Delete attribute named attr_name, for object o. Returns -1
99
+ on failure. This is the equivalent of the Python
100
+ statement: del o.attr_name. */
101
+ #define PyObject_DelAttr(O,A) PyObject_SetAttr((O),(A), NULL)
102
+
103
+
104
+ /* Implemented elsewhere:
105
+
106
+ PyObject *PyObject_Repr(PyObject *o);
107
+
108
+ Compute the string representation of object 'o'. Returns the
109
+ string representation on success, NULL on failure.
110
+
111
+ This is the equivalent of the Python expression: repr(o).
112
+
113
+ Called by the repr() built-in function. */
114
+
115
+
116
+ /* Implemented elsewhere:
117
+
118
+ PyObject *PyObject_Str(PyObject *o);
119
+
120
+ Compute the string representation of object, o. Returns the
121
+ string representation on success, NULL on failure.
122
+
123
+ This is the equivalent of the Python expression: str(o).
124
+
125
+ Called by the str() and print() built-in functions. */
126
+
127
+
128
+ /* Declared elsewhere
129
+
130
+ PyAPI_FUNC(int) PyCallable_Check(PyObject *o);
131
+
132
+ Determine if the object, o, is callable. Return 1 if the object is callable
133
+ and 0 otherwise.
134
+
135
+ This function always succeeds. */
136
+
137
+
138
+ #ifdef PY_SSIZE_T_CLEAN
139
+ # define PyObject_CallFunction _PyObject_CallFunction_SizeT
140
+ # define PyObject_CallMethod _PyObject_CallMethod_SizeT
141
+ #endif
142
+
143
+
144
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03090000
145
+ /* Call a callable Python object without any arguments */
146
+ PyAPI_FUNC(PyObject *) PyObject_CallNoArgs(PyObject *func);
147
+ #endif
148
+
149
+
150
+ /* Call a callable Python object 'callable' with arguments given by the
151
+ tuple 'args' and keywords arguments given by the dictionary 'kwargs'.
152
+
153
+ 'args' must not be NULL, use an empty tuple if no arguments are
154
+ needed. If no named arguments are needed, 'kwargs' can be NULL.
155
+
156
+ This is the equivalent of the Python expression:
157
+ callable(*args, **kwargs). */
158
+ PyAPI_FUNC(PyObject *) PyObject_Call(PyObject *callable,
159
+ PyObject *args, PyObject *kwargs);
160
+
161
+
162
+ /* Call a callable Python object 'callable', with arguments given by the
163
+ tuple 'args'. If no arguments are needed, then 'args' can be NULL.
164
+
165
+ Returns the result of the call on success, or NULL on failure.
166
+
167
+ This is the equivalent of the Python expression:
168
+ callable(*args). */
169
+ PyAPI_FUNC(PyObject *) PyObject_CallObject(PyObject *callable,
170
+ PyObject *args);
171
+
172
+ /* Call a callable Python object, callable, with a variable number of C
173
+ arguments. The C arguments are described using a mkvalue-style format
174
+ string.
175
+
176
+ The format may be NULL, indicating that no arguments are provided.
177
+
178
+ Returns the result of the call on success, or NULL on failure.
179
+
180
+ This is the equivalent of the Python expression:
181
+ callable(arg1, arg2, ...). */
182
+ PyAPI_FUNC(PyObject *) PyObject_CallFunction(PyObject *callable,
183
+ const char *format, ...);
184
+
185
+ /* Call the method named 'name' of object 'obj' with a variable number of
186
+ C arguments. The C arguments are described by a mkvalue format string.
187
+
188
+ The format can be NULL, indicating that no arguments are provided.
189
+
190
+ Returns the result of the call on success, or NULL on failure.
191
+
192
+ This is the equivalent of the Python expression:
193
+ obj.name(arg1, arg2, ...). */
194
+ PyAPI_FUNC(PyObject *) PyObject_CallMethod(PyObject *obj,
195
+ const char *name,
196
+ const char *format, ...);
197
+
198
+ PyAPI_FUNC(PyObject *) _PyObject_CallFunction_SizeT(PyObject *callable,
199
+ const char *format,
200
+ ...);
201
+
202
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethod_SizeT(PyObject *obj,
203
+ const char *name,
204
+ const char *format,
205
+ ...);
206
+
207
+ /* Call a callable Python object 'callable' with a variable number of C
208
+ arguments. The C arguments are provided as PyObject* values, terminated
209
+ by a NULL.
210
+
211
+ Returns the result of the call on success, or NULL on failure.
212
+
213
+ This is the equivalent of the Python expression:
214
+ callable(arg1, arg2, ...). */
215
+ PyAPI_FUNC(PyObject *) PyObject_CallFunctionObjArgs(PyObject *callable,
216
+ ...);
217
+
218
+ /* Call the method named 'name' of object 'obj' with a variable number of
219
+ C arguments. The C arguments are provided as PyObject* values, terminated
220
+ by NULL.
221
+
222
+ Returns the result of the call on success, or NULL on failure.
223
+
224
+ This is the equivalent of the Python expression: obj.name(*args). */
225
+
226
+ PyAPI_FUNC(PyObject *) PyObject_CallMethodObjArgs(
227
+ PyObject *obj,
228
+ PyObject *name,
229
+ ...);
230
+
231
+
232
+ /* Implemented elsewhere:
233
+
234
+ Py_hash_t PyObject_Hash(PyObject *o);
235
+
236
+ Compute and return the hash, hash_value, of an object, o. On
237
+ failure, return -1.
238
+
239
+ This is the equivalent of the Python expression: hash(o). */
240
+
241
+
242
+ /* Implemented elsewhere:
243
+
244
+ int PyObject_IsTrue(PyObject *o);
245
+
246
+ Returns 1 if the object, o, is considered to be true, 0 if o is
247
+ considered to be false and -1 on failure.
248
+
249
+ This is equivalent to the Python expression: not not o. */
250
+
251
+
252
+ /* Implemented elsewhere:
253
+
254
+ int PyObject_Not(PyObject *o);
255
+
256
+ Returns 0 if the object, o, is considered to be true, 1 if o is
257
+ considered to be false and -1 on failure.
258
+
259
+ This is equivalent to the Python expression: not o. */
260
+
261
+
262
+ /* Get the type of an object.
263
+
264
+ On success, returns a type object corresponding to the object type of object
265
+ 'o'. On failure, returns NULL.
266
+
267
+ This is equivalent to the Python expression: type(o) */
268
+ PyAPI_FUNC(PyObject *) PyObject_Type(PyObject *o);
269
+
270
+
271
+ /* Return the size of object 'o'. If the object 'o' provides both sequence and
272
+ mapping protocols, the sequence size is returned.
273
+
274
+ On error, -1 is returned.
275
+
276
+ This is the equivalent to the Python expression: len(o) */
277
+ PyAPI_FUNC(Py_ssize_t) PyObject_Size(PyObject *o);
278
+
279
+
280
+ /* For DLL compatibility */
281
+ #undef PyObject_Length
282
+ PyAPI_FUNC(Py_ssize_t) PyObject_Length(PyObject *o);
283
+ #define PyObject_Length PyObject_Size
284
+
285
+ /* Return element of 'o' corresponding to the object 'key'. Return NULL
286
+ on failure.
287
+
288
+ This is the equivalent of the Python expression: o[key] */
289
+ PyAPI_FUNC(PyObject *) PyObject_GetItem(PyObject *o, PyObject *key);
290
+
291
+
292
+ /* Map the object 'key' to the value 'v' into 'o'.
293
+
294
+ Raise an exception and return -1 on failure; return 0 on success.
295
+
296
+ This is the equivalent of the Python statement: o[key]=v. */
297
+ PyAPI_FUNC(int) PyObject_SetItem(PyObject *o, PyObject *key, PyObject *v);
298
+
299
+ /* Remove the mapping for the string 'key' from the object 'o'.
300
+ Returns -1 on failure.
301
+
302
+ This is equivalent to the Python statement: del o[key]. */
303
+ PyAPI_FUNC(int) PyObject_DelItemString(PyObject *o, const char *key);
304
+
305
+ /* Delete the mapping for the object 'key' from the object 'o'.
306
+ Returns -1 on failure.
307
+
308
+ This is the equivalent of the Python statement: del o[key]. */
309
+ PyAPI_FUNC(int) PyObject_DelItem(PyObject *o, PyObject *key);
310
+
311
+
312
+ /* === Old Buffer API ============================================ */
313
+
314
+ /* FIXME: usage of these should all be replaced in Python itself
315
+ but for backwards compatibility we will implement them.
316
+ Their usage without a corresponding "unlock" mechanism
317
+ may create issues (but they would already be there). */
318
+
319
+ /* Takes an arbitrary object which must support the (character, single segment)
320
+ buffer interface and returns a pointer to a read-only memory location
321
+ usable as character based input for subsequent processing.
322
+
323
+ Return 0 on success. buffer and buffer_len are only set in case no error
324
+ occurs. Otherwise, -1 is returned and an exception set. */
325
+ Py_DEPRECATED(3.0)
326
+ PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj,
327
+ const char **buffer,
328
+ Py_ssize_t *buffer_len);
329
+
330
+ /* Checks whether an arbitrary object supports the (character, single segment)
331
+ buffer interface.
332
+
333
+ Returns 1 on success, 0 on failure. */
334
+ Py_DEPRECATED(3.0) PyAPI_FUNC(int) PyObject_CheckReadBuffer(PyObject *obj);
335
+
336
+ /* Same as PyObject_AsCharBuffer() except that this API expects (readable,
337
+ single segment) buffer interface and returns a pointer to a read-only memory
338
+ location which can contain arbitrary data.
339
+
340
+ 0 is returned on success. buffer and buffer_len are only set in case no
341
+ error occurs. Otherwise, -1 is returned and an exception set. */
342
+ Py_DEPRECATED(3.0)
343
+ PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
344
+ const void **buffer,
345
+ Py_ssize_t *buffer_len);
346
+
347
+ /* Takes an arbitrary object which must support the (writable, single segment)
348
+ buffer interface and returns a pointer to a writable memory location in
349
+ buffer of size 'buffer_len'.
350
+
351
+ Return 0 on success. buffer and buffer_len are only set in case no error
352
+ occurs. Otherwise, -1 is returned and an exception set. */
353
+ Py_DEPRECATED(3.0)
354
+ PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
355
+ void **buffer,
356
+ Py_ssize_t *buffer_len);
357
+
358
+
359
+ /* === New Buffer API ============================================ */
360
+
361
+ /* Takes an arbitrary object and returns the result of calling
362
+ obj.__format__(format_spec). */
363
+ PyAPI_FUNC(PyObject *) PyObject_Format(PyObject *obj,
364
+ PyObject *format_spec);
365
+
366
+
367
+ /* ==== Iterators ================================================ */
368
+
369
+ /* Takes an object and returns an iterator for it.
370
+ This is typically a new iterator but if the argument is an iterator, this
371
+ returns itself. */
372
+ PyAPI_FUNC(PyObject *) PyObject_GetIter(PyObject *);
373
+
374
+ /* Takes an AsyncIterable object and returns an AsyncIterator for it.
375
+ This is typically a new iterator but if the argument is an AsyncIterator,
376
+ this returns itself. */
377
+ PyAPI_FUNC(PyObject *) PyObject_GetAIter(PyObject *);
378
+
379
+ /* Returns non-zero if the object 'obj' provides iterator protocols, and 0 otherwise.
380
+
381
+ This function always succeeds. */
382
+ PyAPI_FUNC(int) PyIter_Check(PyObject *);
383
+
384
+ /* Returns non-zero if the object 'obj' provides AsyncIterator protocols, and 0 otherwise.
385
+
386
+ This function always succeeds. */
387
+ PyAPI_FUNC(int) PyAIter_Check(PyObject *);
388
+
389
+ /* Takes an iterator object and calls its tp_iternext slot,
390
+ returning the next value.
391
+
392
+ If the iterator is exhausted, this returns NULL without setting an
393
+ exception.
394
+
395
+ NULL with an exception means an error occurred. */
396
+ PyAPI_FUNC(PyObject *) PyIter_Next(PyObject *);
397
+
398
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
399
+
400
+ /* Takes generator, coroutine or iterator object and sends the value into it.
401
+ Returns:
402
+ - PYGEN_RETURN (0) if generator has returned.
403
+ 'result' parameter is filled with return value
404
+ - PYGEN_ERROR (-1) if exception was raised.
405
+ 'result' parameter is NULL
406
+ - PYGEN_NEXT (1) if generator has yielded.
407
+ 'result' parameter is filled with yielded value. */
408
+ PyAPI_FUNC(PySendResult) PyIter_Send(PyObject *, PyObject *, PyObject **);
409
+ #endif
410
+
411
+
412
+ /* === Number Protocol ================================================== */
413
+
414
+ /* Returns 1 if the object 'o' provides numeric protocols, and 0 otherwise.
415
+
416
+ This function always succeeds. */
417
+ PyAPI_FUNC(int) PyNumber_Check(PyObject *o);
418
+
419
+ /* Returns the result of adding o1 and o2, or NULL on failure.
420
+
421
+ This is the equivalent of the Python expression: o1 + o2. */
422
+ PyAPI_FUNC(PyObject *) PyNumber_Add(PyObject *o1, PyObject *o2);
423
+
424
+ /* Returns the result of subtracting o2 from o1, or NULL on failure.
425
+
426
+ This is the equivalent of the Python expression: o1 - o2. */
427
+ PyAPI_FUNC(PyObject *) PyNumber_Subtract(PyObject *o1, PyObject *o2);
428
+
429
+ /* Returns the result of multiplying o1 and o2, or NULL on failure.
430
+
431
+ This is the equivalent of the Python expression: o1 * o2. */
432
+ PyAPI_FUNC(PyObject *) PyNumber_Multiply(PyObject *o1, PyObject *o2);
433
+
434
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
435
+ /* This is the equivalent of the Python expression: o1 @ o2. */
436
+ PyAPI_FUNC(PyObject *) PyNumber_MatrixMultiply(PyObject *o1, PyObject *o2);
437
+ #endif
438
+
439
+ /* Returns the result of dividing o1 by o2 giving an integral result,
440
+ or NULL on failure.
441
+
442
+ This is the equivalent of the Python expression: o1 // o2. */
443
+ PyAPI_FUNC(PyObject *) PyNumber_FloorDivide(PyObject *o1, PyObject *o2);
444
+
445
+ /* Returns the result of dividing o1 by o2 giving a float result, or NULL on
446
+ failure.
447
+
448
+ This is the equivalent of the Python expression: o1 / o2. */
449
+ PyAPI_FUNC(PyObject *) PyNumber_TrueDivide(PyObject *o1, PyObject *o2);
450
+
451
+ /* Returns the remainder of dividing o1 by o2, or NULL on failure.
452
+
453
+ This is the equivalent of the Python expression: o1 % o2. */
454
+ PyAPI_FUNC(PyObject *) PyNumber_Remainder(PyObject *o1, PyObject *o2);
455
+
456
+ /* See the built-in function divmod.
457
+
458
+ Returns NULL on failure.
459
+
460
+ This is the equivalent of the Python expression: divmod(o1, o2). */
461
+ PyAPI_FUNC(PyObject *) PyNumber_Divmod(PyObject *o1, PyObject *o2);
462
+
463
+ /* See the built-in function pow. Returns NULL on failure.
464
+
465
+ This is the equivalent of the Python expression: pow(o1, o2, o3),
466
+ where o3 is optional. */
467
+ PyAPI_FUNC(PyObject *) PyNumber_Power(PyObject *o1, PyObject *o2,
468
+ PyObject *o3);
469
+
470
+ /* Returns the negation of o on success, or NULL on failure.
471
+
472
+ This is the equivalent of the Python expression: -o. */
473
+ PyAPI_FUNC(PyObject *) PyNumber_Negative(PyObject *o);
474
+
475
+ /* Returns the positive of o on success, or NULL on failure.
476
+
477
+ This is the equivalent of the Python expression: +o. */
478
+ PyAPI_FUNC(PyObject *) PyNumber_Positive(PyObject *o);
479
+
480
+ /* Returns the absolute value of 'o', or NULL on failure.
481
+
482
+ This is the equivalent of the Python expression: abs(o). */
483
+ PyAPI_FUNC(PyObject *) PyNumber_Absolute(PyObject *o);
484
+
485
+ /* Returns the bitwise negation of 'o' on success, or NULL on failure.
486
+
487
+ This is the equivalent of the Python expression: ~o. */
488
+ PyAPI_FUNC(PyObject *) PyNumber_Invert(PyObject *o);
489
+
490
+ /* Returns the result of left shifting o1 by o2 on success, or NULL on failure.
491
+
492
+ This is the equivalent of the Python expression: o1 << o2. */
493
+ PyAPI_FUNC(PyObject *) PyNumber_Lshift(PyObject *o1, PyObject *o2);
494
+
495
+ /* Returns the result of right shifting o1 by o2 on success, or NULL on
496
+ failure.
497
+
498
+ This is the equivalent of the Python expression: o1 >> o2. */
499
+ PyAPI_FUNC(PyObject *) PyNumber_Rshift(PyObject *o1, PyObject *o2);
500
+
501
+ /* Returns the result of bitwise and of o1 and o2 on success, or NULL on
502
+ failure.
503
+
504
+ This is the equivalent of the Python expression: o1 & o2. */
505
+ PyAPI_FUNC(PyObject *) PyNumber_And(PyObject *o1, PyObject *o2);
506
+
507
+ /* Returns the bitwise exclusive or of o1 by o2 on success, or NULL on failure.
508
+
509
+ This is the equivalent of the Python expression: o1 ^ o2. */
510
+ PyAPI_FUNC(PyObject *) PyNumber_Xor(PyObject *o1, PyObject *o2);
511
+
512
+ /* Returns the result of bitwise or on o1 and o2 on success, or NULL on
513
+ failure.
514
+
515
+ This is the equivalent of the Python expression: o1 | o2. */
516
+ PyAPI_FUNC(PyObject *) PyNumber_Or(PyObject *o1, PyObject *o2);
517
+
518
+ /* Returns 1 if obj is an index integer (has the nb_index slot of the
519
+ tp_as_number structure filled in), and 0 otherwise. */
520
+ PyAPI_FUNC(int) PyIndex_Check(PyObject *);
521
+
522
+ /* Returns the object 'o' converted to a Python int, or NULL with an exception
523
+ raised on failure. */
524
+ PyAPI_FUNC(PyObject *) PyNumber_Index(PyObject *o);
525
+
526
+ /* Returns the object 'o' converted to Py_ssize_t by going through
527
+ PyNumber_Index() first.
528
+
529
+ If an overflow error occurs while converting the int to Py_ssize_t, then the
530
+ second argument 'exc' is the error-type to return. If it is NULL, then the
531
+ overflow error is cleared and the value is clipped. */
532
+ PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
533
+
534
+ /* Returns the object 'o' converted to an integer object on success, or NULL
535
+ on failure.
536
+
537
+ This is the equivalent of the Python expression: int(o). */
538
+ PyAPI_FUNC(PyObject *) PyNumber_Long(PyObject *o);
539
+
540
+ /* Returns the object 'o' converted to a float object on success, or NULL
541
+ on failure.
542
+
543
+ This is the equivalent of the Python expression: float(o). */
544
+ PyAPI_FUNC(PyObject *) PyNumber_Float(PyObject *o);
545
+
546
+
547
+ /* --- In-place variants of (some of) the above number protocol functions -- */
548
+
549
+ /* Returns the result of adding o2 to o1, possibly in-place, or NULL
550
+ on failure.
551
+
552
+ This is the equivalent of the Python expression: o1 += o2. */
553
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2);
554
+
555
+ /* Returns the result of subtracting o2 from o1, possibly in-place or
556
+ NULL on failure.
557
+
558
+ This is the equivalent of the Python expression: o1 -= o2. */
559
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceSubtract(PyObject *o1, PyObject *o2);
560
+
561
+ /* Returns the result of multiplying o1 by o2, possibly in-place, or NULL on
562
+ failure.
563
+
564
+ This is the equivalent of the Python expression: o1 *= o2. */
565
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceMultiply(PyObject *o1, PyObject *o2);
566
+
567
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
568
+ /* This is the equivalent of the Python expression: o1 @= o2. */
569
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceMatrixMultiply(PyObject *o1, PyObject *o2);
570
+ #endif
571
+
572
+ /* Returns the result of dividing o1 by o2 giving an integral result, possibly
573
+ in-place, or NULL on failure.
574
+
575
+ This is the equivalent of the Python expression: o1 /= o2. */
576
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceFloorDivide(PyObject *o1,
577
+ PyObject *o2);
578
+
579
+ /* Returns the result of dividing o1 by o2 giving a float result, possibly
580
+ in-place, or null on failure.
581
+
582
+ This is the equivalent of the Python expression: o1 /= o2. */
583
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceTrueDivide(PyObject *o1,
584
+ PyObject *o2);
585
+
586
+ /* Returns the remainder of dividing o1 by o2, possibly in-place, or NULL on
587
+ failure.
588
+
589
+ This is the equivalent of the Python expression: o1 %= o2. */
590
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2);
591
+
592
+ /* Returns the result of raising o1 to the power of o2, possibly in-place,
593
+ or NULL on failure.
594
+
595
+ This is the equivalent of the Python expression: o1 **= o2,
596
+ or o1 = pow(o1, o2, o3) if o3 is present. */
597
+ PyAPI_FUNC(PyObject *) PyNumber_InPlacePower(PyObject *o1, PyObject *o2,
598
+ PyObject *o3);
599
+
600
+ /* Returns the result of left shifting o1 by o2, possibly in-place, or NULL
601
+ on failure.
602
+
603
+ This is the equivalent of the Python expression: o1 <<= o2. */
604
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceLshift(PyObject *o1, PyObject *o2);
605
+
606
+ /* Returns the result of right shifting o1 by o2, possibly in-place or NULL
607
+ on failure.
608
+
609
+ This is the equivalent of the Python expression: o1 >>= o2. */
610
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceRshift(PyObject *o1, PyObject *o2);
611
+
612
+ /* Returns the result of bitwise and of o1 and o2, possibly in-place, or NULL
613
+ on failure.
614
+
615
+ This is the equivalent of the Python expression: o1 &= o2. */
616
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceAnd(PyObject *o1, PyObject *o2);
617
+
618
+ /* Returns the bitwise exclusive or of o1 by o2, possibly in-place, or NULL
619
+ on failure.
620
+
621
+ This is the equivalent of the Python expression: o1 ^= o2. */
622
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceXor(PyObject *o1, PyObject *o2);
623
+
624
+ /* Returns the result of bitwise or of o1 and o2, possibly in-place,
625
+ or NULL on failure.
626
+
627
+ This is the equivalent of the Python expression: o1 |= o2. */
628
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
629
+
630
+ /* Returns the integer n converted to a string with a base, with a base
631
+ marker of 0b, 0o or 0x prefixed if applicable.
632
+
633
+ If n is not an int object, it is converted with PyNumber_Index first. */
634
+ PyAPI_FUNC(PyObject *) PyNumber_ToBase(PyObject *n, int base);
635
+
636
+
637
+ /* === Sequence protocol ================================================ */
638
+
639
+ /* Return 1 if the object provides sequence protocol, and zero
640
+ otherwise.
641
+
642
+ This function always succeeds. */
643
+ PyAPI_FUNC(int) PySequence_Check(PyObject *o);
644
+
645
+ /* Return the size of sequence object o, or -1 on failure. */
646
+ PyAPI_FUNC(Py_ssize_t) PySequence_Size(PyObject *o);
647
+
648
+ /* For DLL compatibility */
649
+ #undef PySequence_Length
650
+ PyAPI_FUNC(Py_ssize_t) PySequence_Length(PyObject *o);
651
+ #define PySequence_Length PySequence_Size
652
+
653
+
654
+ /* Return the concatenation of o1 and o2 on success, and NULL on failure.
655
+
656
+ This is the equivalent of the Python expression: o1 + o2. */
657
+ PyAPI_FUNC(PyObject *) PySequence_Concat(PyObject *o1, PyObject *o2);
658
+
659
+ /* Return the result of repeating sequence object 'o' 'count' times,
660
+ or NULL on failure.
661
+
662
+ This is the equivalent of the Python expression: o * count. */
663
+ PyAPI_FUNC(PyObject *) PySequence_Repeat(PyObject *o, Py_ssize_t count);
664
+
665
+ /* Return the ith element of o, or NULL on failure.
666
+
667
+ This is the equivalent of the Python expression: o[i]. */
668
+ PyAPI_FUNC(PyObject *) PySequence_GetItem(PyObject *o, Py_ssize_t i);
669
+
670
+ /* Return the slice of sequence object o between i1 and i2, or NULL on failure.
671
+
672
+ This is the equivalent of the Python expression: o[i1:i2]. */
673
+ PyAPI_FUNC(PyObject *) PySequence_GetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
674
+
675
+ /* Assign object 'v' to the ith element of the sequence 'o'. Raise an exception
676
+ and return -1 on failure; return 0 on success.
677
+
678
+ This is the equivalent of the Python statement o[i] = v. */
679
+ PyAPI_FUNC(int) PySequence_SetItem(PyObject *o, Py_ssize_t i, PyObject *v);
680
+
681
+ /* Delete the 'i'-th element of the sequence 'v'. Returns -1 on failure.
682
+
683
+ This is the equivalent of the Python statement: del o[i]. */
684
+ PyAPI_FUNC(int) PySequence_DelItem(PyObject *o, Py_ssize_t i);
685
+
686
+ /* Assign the sequence object 'v' to the slice in sequence object 'o',
687
+ from 'i1' to 'i2'. Returns -1 on failure.
688
+
689
+ This is the equivalent of the Python statement: o[i1:i2] = v. */
690
+ PyAPI_FUNC(int) PySequence_SetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2,
691
+ PyObject *v);
692
+
693
+ /* Delete the slice in sequence object 'o' from 'i1' to 'i2'.
694
+ Returns -1 on failure.
695
+
696
+ This is the equivalent of the Python statement: del o[i1:i2]. */
697
+ PyAPI_FUNC(int) PySequence_DelSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
698
+
699
+ /* Returns the sequence 'o' as a tuple on success, and NULL on failure.
700
+
701
+ This is equivalent to the Python expression: tuple(o). */
702
+ PyAPI_FUNC(PyObject *) PySequence_Tuple(PyObject *o);
703
+
704
+ /* Returns the sequence 'o' as a list on success, and NULL on failure.
705
+ This is equivalent to the Python expression: list(o) */
706
+ PyAPI_FUNC(PyObject *) PySequence_List(PyObject *o);
707
+
708
+ /* Return the sequence 'o' as a list, unless it's already a tuple or list.
709
+
710
+ Use PySequence_Fast_GET_ITEM to access the members of this list, and
711
+ PySequence_Fast_GET_SIZE to get its length.
712
+
713
+ Returns NULL on failure. If the object does not support iteration, raises a
714
+ TypeError exception with 'm' as the message text. */
715
+ PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m);
716
+
717
+ /* Return the size of the sequence 'o', assuming that 'o' was returned by
718
+ PySequence_Fast and is not NULL. */
719
+ #define PySequence_Fast_GET_SIZE(o) \
720
+ (PyList_Check(o) ? PyList_GET_SIZE(o) : PyTuple_GET_SIZE(o))
721
+
722
+ /* Return the 'i'-th element of the sequence 'o', assuming that o was returned
723
+ by PySequence_Fast, and that i is within bounds. */
724
+ #define PySequence_Fast_GET_ITEM(o, i)\
725
+ (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i))
726
+
727
+ /* Return a pointer to the underlying item array for
728
+ an object returned by PySequence_Fast */
729
+ #define PySequence_Fast_ITEMS(sf) \
730
+ (PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \
731
+ : ((PyTupleObject *)(sf))->ob_item)
732
+
733
+ /* Return the number of occurrences on value on 'o', that is, return
734
+ the number of keys for which o[key] == value.
735
+
736
+ On failure, return -1. This is equivalent to the Python expression:
737
+ o.count(value). */
738
+ PyAPI_FUNC(Py_ssize_t) PySequence_Count(PyObject *o, PyObject *value);
739
+
740
+ /* Return 1 if 'ob' is in the sequence 'seq'; 0 if 'ob' is not in the sequence
741
+ 'seq'; -1 on error.
742
+
743
+ Use __contains__ if possible, else _PySequence_IterSearch(). */
744
+ PyAPI_FUNC(int) PySequence_Contains(PyObject *seq, PyObject *ob);
745
+
746
+ /* For DLL-level backwards compatibility */
747
+ #undef PySequence_In
748
+ /* Determine if the sequence 'o' contains 'value'. If an item in 'o' is equal
749
+ to 'value', return 1, otherwise return 0. On error, return -1.
750
+
751
+ This is equivalent to the Python expression: value in o. */
752
+ PyAPI_FUNC(int) PySequence_In(PyObject *o, PyObject *value);
753
+
754
+ /* For source-level backwards compatibility */
755
+ #define PySequence_In PySequence_Contains
756
+
757
+
758
+ /* Return the first index for which o[i] == value.
759
+ On error, return -1.
760
+
761
+ This is equivalent to the Python expression: o.index(value). */
762
+ PyAPI_FUNC(Py_ssize_t) PySequence_Index(PyObject *o, PyObject *value);
763
+
764
+
765
+ /* --- In-place versions of some of the above Sequence functions --- */
766
+
767
+ /* Append sequence 'o2' to sequence 'o1', in-place when possible. Return the
768
+ resulting object, which could be 'o1', or NULL on failure.
769
+
770
+ This is the equivalent of the Python expression: o1 += o2. */
771
+ PyAPI_FUNC(PyObject *) PySequence_InPlaceConcat(PyObject *o1, PyObject *o2);
772
+
773
+ /* Repeat sequence 'o' by 'count', in-place when possible. Return the resulting
774
+ object, which could be 'o', or NULL on failure.
775
+
776
+ This is the equivalent of the Python expression: o1 *= count. */
777
+ PyAPI_FUNC(PyObject *) PySequence_InPlaceRepeat(PyObject *o, Py_ssize_t count);
778
+
779
+
780
+ /* === Mapping protocol ================================================= */
781
+
782
+ /* Return 1 if the object provides mapping protocol, and 0 otherwise.
783
+
784
+ This function always succeeds. */
785
+ PyAPI_FUNC(int) PyMapping_Check(PyObject *o);
786
+
787
+ /* Returns the number of keys in mapping object 'o' on success, and -1 on
788
+ failure. This is equivalent to the Python expression: len(o). */
789
+ PyAPI_FUNC(Py_ssize_t) PyMapping_Size(PyObject *o);
790
+
791
+ /* For DLL compatibility */
792
+ #undef PyMapping_Length
793
+ PyAPI_FUNC(Py_ssize_t) PyMapping_Length(PyObject *o);
794
+ #define PyMapping_Length PyMapping_Size
795
+
796
+
797
+ /* Implemented as a macro:
798
+
799
+ int PyMapping_DelItemString(PyObject *o, const char *key);
800
+
801
+ Remove the mapping for the string 'key' from the mapping 'o'. Returns -1 on
802
+ failure.
803
+
804
+ This is equivalent to the Python statement: del o[key]. */
805
+ #define PyMapping_DelItemString(O,K) PyObject_DelItemString((O),(K))
806
+
807
+ /* Implemented as a macro:
808
+
809
+ int PyMapping_DelItem(PyObject *o, PyObject *key);
810
+
811
+ Remove the mapping for the object 'key' from the mapping object 'o'.
812
+ Returns -1 on failure.
813
+
814
+ This is equivalent to the Python statement: del o[key]. */
815
+ #define PyMapping_DelItem(O,K) PyObject_DelItem((O),(K))
816
+
817
+ /* On success, return 1 if the mapping object 'o' has the key 'key',
818
+ and 0 otherwise.
819
+
820
+ This is equivalent to the Python expression: key in o.
821
+
822
+ This function always succeeds. */
823
+ PyAPI_FUNC(int) PyMapping_HasKeyString(PyObject *o, const char *key);
824
+
825
+ /* Return 1 if the mapping object has the key 'key', and 0 otherwise.
826
+
827
+ This is equivalent to the Python expression: key in o.
828
+
829
+ This function always succeeds. */
830
+ PyAPI_FUNC(int) PyMapping_HasKey(PyObject *o, PyObject *key);
831
+
832
+ /* On success, return a list or tuple of the keys in mapping object 'o'.
833
+ On failure, return NULL. */
834
+ PyAPI_FUNC(PyObject *) PyMapping_Keys(PyObject *o);
835
+
836
+ /* On success, return a list or tuple of the values in mapping object 'o'.
837
+ On failure, return NULL. */
838
+ PyAPI_FUNC(PyObject *) PyMapping_Values(PyObject *o);
839
+
840
+ /* On success, return a list or tuple of the items in mapping object 'o',
841
+ where each item is a tuple containing a key-value pair. On failure, return
842
+ NULL. */
843
+ PyAPI_FUNC(PyObject *) PyMapping_Items(PyObject *o);
844
+
845
+ /* Return element of 'o' corresponding to the string 'key' or NULL on failure.
846
+
847
+ This is the equivalent of the Python expression: o[key]. */
848
+ PyAPI_FUNC(PyObject *) PyMapping_GetItemString(PyObject *o,
849
+ const char *key);
850
+
851
+ /* Map the string 'key' to the value 'v' in the mapping 'o'.
852
+ Returns -1 on failure.
853
+
854
+ This is the equivalent of the Python statement: o[key]=v. */
855
+ PyAPI_FUNC(int) PyMapping_SetItemString(PyObject *o, const char *key,
856
+ PyObject *value);
857
+
858
+ /* isinstance(object, typeorclass) */
859
+ PyAPI_FUNC(int) PyObject_IsInstance(PyObject *object, PyObject *typeorclass);
860
+
861
+ /* issubclass(object, typeorclass) */
862
+ PyAPI_FUNC(int) PyObject_IsSubclass(PyObject *object, PyObject *typeorclass);
863
+
864
+ #ifndef Py_LIMITED_API
865
+ # define Py_CPYTHON_ABSTRACTOBJECT_H
866
+ # include "cpython/abstract.h"
867
+ # undef Py_CPYTHON_ABSTRACTOBJECT_H
868
+ #endif
869
+
870
+ #ifdef __cplusplus
871
+ }
872
+ #endif
873
+ #endif /* Py_ABSTRACTOBJECT_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/bltinmodule.h ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_BLTINMODULE_H
2
+ #define Py_BLTINMODULE_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ PyAPI_DATA(PyTypeObject) PyFilter_Type;
8
+ PyAPI_DATA(PyTypeObject) PyMap_Type;
9
+ PyAPI_DATA(PyTypeObject) PyZip_Type;
10
+
11
+ #ifdef __cplusplus
12
+ }
13
+ #endif
14
+ #endif /* !Py_BLTINMODULE_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/boolobject.h ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Boolean object interface */
2
+
3
+ #ifndef Py_BOOLOBJECT_H
4
+ #define Py_BOOLOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+
10
+ PyAPI_DATA(PyTypeObject) PyBool_Type;
11
+
12
+ #define PyBool_Check(x) Py_IS_TYPE(x, &PyBool_Type)
13
+
14
+ /* Py_False and Py_True are the only two bools in existence.
15
+ Don't forget to apply Py_INCREF() when returning either!!! */
16
+
17
+ /* Don't use these directly */
18
+ PyAPI_DATA(PyLongObject) _Py_FalseStruct;
19
+ PyAPI_DATA(PyLongObject) _Py_TrueStruct;
20
+
21
+ /* Use these macros */
22
+ #define Py_False ((PyObject *) &_Py_FalseStruct)
23
+ #define Py_True ((PyObject *) &_Py_TrueStruct)
24
+
25
+ // Test if an object is the True singleton, the same as "x is True" in Python.
26
+ PyAPI_FUNC(int) Py_IsTrue(PyObject *x);
27
+ #define Py_IsTrue(x) Py_Is((x), Py_True)
28
+
29
+ // Test if an object is the False singleton, the same as "x is False" in Python.
30
+ PyAPI_FUNC(int) Py_IsFalse(PyObject *x);
31
+ #define Py_IsFalse(x) Py_Is((x), Py_False)
32
+
33
+ /* Macros for returning Py_True or Py_False, respectively */
34
+ #define Py_RETURN_TRUE return Py_NewRef(Py_True)
35
+ #define Py_RETURN_FALSE return Py_NewRef(Py_False)
36
+
37
+ /* Function to return a bool from a C long */
38
+ PyAPI_FUNC(PyObject *) PyBool_FromLong(long);
39
+
40
+ #ifdef __cplusplus
41
+ }
42
+ #endif
43
+ #endif /* !Py_BOOLOBJECT_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/bytearrayobject.h ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ByteArray object interface */
2
+
3
+ #ifndef Py_BYTEARRAYOBJECT_H
4
+ #define Py_BYTEARRAYOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ /* Type PyByteArrayObject represents a mutable array of bytes.
10
+ * The Python API is that of a sequence;
11
+ * the bytes are mapped to ints in [0, 256).
12
+ * Bytes are not characters; they may be used to encode characters.
13
+ * The only way to go between bytes and str/unicode is via encoding
14
+ * and decoding.
15
+ * For the convenience of C programmers, the bytes type is considered
16
+ * to contain a char pointer, not an unsigned char pointer.
17
+ */
18
+
19
+ /* Type object */
20
+ PyAPI_DATA(PyTypeObject) PyByteArray_Type;
21
+ PyAPI_DATA(PyTypeObject) PyByteArrayIter_Type;
22
+
23
+ /* Type check macros */
24
+ #define PyByteArray_Check(self) PyObject_TypeCheck(self, &PyByteArray_Type)
25
+ #define PyByteArray_CheckExact(self) Py_IS_TYPE(self, &PyByteArray_Type)
26
+
27
+ /* Direct API functions */
28
+ PyAPI_FUNC(PyObject *) PyByteArray_FromObject(PyObject *);
29
+ PyAPI_FUNC(PyObject *) PyByteArray_Concat(PyObject *, PyObject *);
30
+ PyAPI_FUNC(PyObject *) PyByteArray_FromStringAndSize(const char *, Py_ssize_t);
31
+ PyAPI_FUNC(Py_ssize_t) PyByteArray_Size(PyObject *);
32
+ PyAPI_FUNC(char *) PyByteArray_AsString(PyObject *);
33
+ PyAPI_FUNC(int) PyByteArray_Resize(PyObject *, Py_ssize_t);
34
+
35
+ #ifndef Py_LIMITED_API
36
+ # define Py_CPYTHON_BYTEARRAYOBJECT_H
37
+ # include "cpython/bytearrayobject.h"
38
+ # undef Py_CPYTHON_BYTEARRAYOBJECT_H
39
+ #endif
40
+
41
+ #ifdef __cplusplus
42
+ }
43
+ #endif
44
+ #endif /* !Py_BYTEARRAYOBJECT_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/bytesobject.h ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* Bytes object interface */
3
+
4
+ #ifndef Py_BYTESOBJECT_H
5
+ #define Py_BYTESOBJECT_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ #include <stdarg.h> // va_list
11
+
12
+ /*
13
+ Type PyBytesObject represents a byte string. An extra zero byte is
14
+ reserved at the end to ensure it is zero-terminated, but a size is
15
+ present so strings with null bytes in them can be represented. This
16
+ is an immutable object type.
17
+
18
+ There are functions to create new bytes objects, to test
19
+ an object for bytes-ness, and to get the
20
+ byte string value. The latter function returns a null pointer
21
+ if the object is not of the proper type.
22
+ There is a variant that takes an explicit size as well as a
23
+ variant that assumes a zero-terminated string. Note that none of the
24
+ functions should be applied to NULL pointer.
25
+ */
26
+
27
+ PyAPI_DATA(PyTypeObject) PyBytes_Type;
28
+ PyAPI_DATA(PyTypeObject) PyBytesIter_Type;
29
+
30
+ #define PyBytes_Check(op) \
31
+ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS)
32
+ #define PyBytes_CheckExact(op) Py_IS_TYPE(op, &PyBytes_Type)
33
+
34
+ PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
35
+ PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
36
+ PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *);
37
+ PyAPI_FUNC(PyObject *) PyBytes_FromFormatV(const char*, va_list)
38
+ Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
39
+ PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
40
+ Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
41
+ PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *);
42
+ PyAPI_FUNC(char *) PyBytes_AsString(PyObject *);
43
+ PyAPI_FUNC(PyObject *) PyBytes_Repr(PyObject *, int);
44
+ PyAPI_FUNC(void) PyBytes_Concat(PyObject **, PyObject *);
45
+ PyAPI_FUNC(void) PyBytes_ConcatAndDel(PyObject **, PyObject *);
46
+ PyAPI_FUNC(PyObject *) PyBytes_DecodeEscape(const char *, Py_ssize_t,
47
+ const char *, Py_ssize_t,
48
+ const char *);
49
+
50
+ /* Provides access to the internal data buffer and size of a bytes object.
51
+ Passing NULL as len parameter will force the string buffer to be
52
+ 0-terminated (passing a string with embedded NUL characters will
53
+ cause an exception). */
54
+ PyAPI_FUNC(int) PyBytes_AsStringAndSize(
55
+ PyObject *obj, /* bytes object */
56
+ char **s, /* pointer to buffer variable */
57
+ Py_ssize_t *len /* pointer to length variable or NULL */
58
+ );
59
+
60
+ #ifndef Py_LIMITED_API
61
+ # define Py_CPYTHON_BYTESOBJECT_H
62
+ # include "cpython/bytesobject.h"
63
+ # undef Py_CPYTHON_BYTESOBJECT_H
64
+ #endif
65
+
66
+ #ifdef __cplusplus
67
+ }
68
+ #endif
69
+ #endif /* !Py_BYTESOBJECT_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/ceval.h ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Interface to random parts in ceval.c */
2
+
3
+ #ifndef Py_CEVAL_H
4
+ #define Py_CEVAL_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+
10
+ PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyObject *, PyObject *, PyObject *);
11
+
12
+ PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyObject *co,
13
+ PyObject *globals,
14
+ PyObject *locals,
15
+ PyObject *const *args, int argc,
16
+ PyObject *const *kwds, int kwdc,
17
+ PyObject *const *defs, int defc,
18
+ PyObject *kwdefs, PyObject *closure);
19
+
20
+ /* PyEval_CallObjectWithKeywords(), PyEval_CallObject(), PyEval_CallFunction
21
+ * and PyEval_CallMethod are deprecated. Since they are officially part of the
22
+ * stable ABI (PEP 384), they must be kept for backward compatibility.
23
+ * PyObject_Call(), PyObject_CallFunction() and PyObject_CallMethod() are
24
+ * recommended to call a callable object.
25
+ */
26
+
27
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
28
+ PyObject *callable,
29
+ PyObject *args,
30
+ PyObject *kwargs);
31
+
32
+ /* Deprecated since PyEval_CallObjectWithKeywords is deprecated */
33
+ #define PyEval_CallObject(callable, arg) \
34
+ PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
35
+
36
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction(
37
+ PyObject *callable, const char *format, ...);
38
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallMethod(
39
+ PyObject *obj, const char *name, const char *format, ...);
40
+
41
+ PyAPI_FUNC(PyObject *) PyEval_GetBuiltins(void);
42
+ PyAPI_FUNC(PyObject *) PyEval_GetGlobals(void);
43
+ PyAPI_FUNC(PyObject *) PyEval_GetLocals(void);
44
+ PyAPI_FUNC(PyFrameObject *) PyEval_GetFrame(void);
45
+
46
+ PyAPI_FUNC(int) Py_AddPendingCall(int (*func)(void *), void *arg);
47
+ PyAPI_FUNC(int) Py_MakePendingCalls(void);
48
+
49
+ /* Protection against deeply nested recursive calls
50
+
51
+ In Python 3.0, this protection has two levels:
52
+ * normal anti-recursion protection is triggered when the recursion level
53
+ exceeds the current recursion limit. It raises a RecursionError, and sets
54
+ the "overflowed" flag in the thread state structure. This flag
55
+ temporarily *disables* the normal protection; this allows cleanup code
56
+ to potentially outgrow the recursion limit while processing the
57
+ RecursionError.
58
+ * "last chance" anti-recursion protection is triggered when the recursion
59
+ level exceeds "current recursion limit + 50". By construction, this
60
+ protection can only be triggered when the "overflowed" flag is set. It
61
+ means the cleanup code has itself gone into an infinite loop, or the
62
+ RecursionError has been mistakingly ignored. When this protection is
63
+ triggered, the interpreter aborts with a Fatal Error.
64
+
65
+ In addition, the "overflowed" flag is automatically reset when the
66
+ recursion level drops below "current recursion limit - 50". This heuristic
67
+ is meant to ensure that the normal anti-recursion protection doesn't get
68
+ disabled too long.
69
+
70
+ Please note: this scheme has its own limitations. See:
71
+ http://mail.python.org/pipermail/python-dev/2008-August/082106.html
72
+ for some observations.
73
+ */
74
+ PyAPI_FUNC(void) Py_SetRecursionLimit(int);
75
+ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
76
+
77
+ PyAPI_FUNC(int) Py_EnterRecursiveCall(const char *where);
78
+ PyAPI_FUNC(void) Py_LeaveRecursiveCall(void);
79
+
80
+ PyAPI_FUNC(const char *) PyEval_GetFuncName(PyObject *);
81
+ PyAPI_FUNC(const char *) PyEval_GetFuncDesc(PyObject *);
82
+
83
+ PyAPI_FUNC(PyObject *) PyEval_EvalFrame(PyFrameObject *);
84
+ PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(PyFrameObject *f, int exc);
85
+
86
+ /* Interface for threads.
87
+
88
+ A module that plans to do a blocking system call (or something else
89
+ that lasts a long time and doesn't touch Python data) can allow other
90
+ threads to run as follows:
91
+
92
+ ...preparations here...
93
+ Py_BEGIN_ALLOW_THREADS
94
+ ...blocking system call here...
95
+ Py_END_ALLOW_THREADS
96
+ ...interpret result here...
97
+
98
+ The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a
99
+ {}-surrounded block.
100
+ To leave the block in the middle (e.g., with return), you must insert
101
+ a line containing Py_BLOCK_THREADS before the return, e.g.
102
+
103
+ if (...premature_exit...) {
104
+ Py_BLOCK_THREADS
105
+ PyErr_SetFromErrno(PyExc_OSError);
106
+ return NULL;
107
+ }
108
+
109
+ An alternative is:
110
+
111
+ Py_BLOCK_THREADS
112
+ if (...premature_exit...) {
113
+ PyErr_SetFromErrno(PyExc_OSError);
114
+ return NULL;
115
+ }
116
+ Py_UNBLOCK_THREADS
117
+
118
+ For convenience, that the value of 'errno' is restored across
119
+ Py_END_ALLOW_THREADS and Py_BLOCK_THREADS.
120
+
121
+ WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND
122
+ Py_END_ALLOW_THREADS!!!
123
+
124
+ Note that not yet all candidates have been converted to use this
125
+ mechanism!
126
+ */
127
+
128
+ PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void);
129
+ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
130
+
131
+ Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
132
+ Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
133
+ /* PyEval_AcquireLock() and PyEval_ReleaseLock() are part of stable ABI.
134
+ * They will be removed from this header file in the future version.
135
+ * But they will be remained in ABI until Python 4.0.
136
+ */
137
+ Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void);
138
+ Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_ReleaseLock(void);
139
+ PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
140
+ PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
141
+
142
+ #define Py_BEGIN_ALLOW_THREADS { \
143
+ PyThreadState *_save; \
144
+ _save = PyEval_SaveThread();
145
+ #define Py_BLOCK_THREADS PyEval_RestoreThread(_save);
146
+ #define Py_UNBLOCK_THREADS _save = PyEval_SaveThread();
147
+ #define Py_END_ALLOW_THREADS PyEval_RestoreThread(_save); \
148
+ }
149
+
150
+ /* Masks and values used by FORMAT_VALUE opcode. */
151
+ #define FVC_MASK 0x3
152
+ #define FVC_NONE 0x0
153
+ #define FVC_STR 0x1
154
+ #define FVC_REPR 0x2
155
+ #define FVC_ASCII 0x3
156
+ #define FVS_MASK 0x4
157
+ #define FVS_HAVE_SPEC 0x4
158
+
159
+ #ifndef Py_LIMITED_API
160
+ # define Py_CPYTHON_CEVAL_H
161
+ # include "cpython/ceval.h"
162
+ # undef Py_CPYTHON_CEVAL_H
163
+ #endif
164
+
165
+ #ifdef __cplusplus
166
+ }
167
+ #endif
168
+ #endif /* !Py_CEVAL_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/codecs.h ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CODECREGISTRY_H
2
+ #define Py_CODECREGISTRY_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ /* ------------------------------------------------------------------------
8
+
9
+ Python Codec Registry and support functions
10
+
11
+
12
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
13
+
14
+ Copyright (c) Corporation for National Research Initiatives.
15
+
16
+ ------------------------------------------------------------------------ */
17
+
18
+ /* Register a new codec search function.
19
+
20
+ As side effect, this tries to load the encodings package, if not
21
+ yet done, to make sure that it is always first in the list of
22
+ search functions.
23
+
24
+ The search_function's refcount is incremented by this function. */
25
+
26
+ PyAPI_FUNC(int) PyCodec_Register(
27
+ PyObject *search_function
28
+ );
29
+
30
+ /* Unregister a codec search function and clear the registry's cache.
31
+ If the search function is not registered, do nothing.
32
+ Return 0 on success. Raise an exception and return -1 on error. */
33
+
34
+ PyAPI_FUNC(int) PyCodec_Unregister(
35
+ PyObject *search_function
36
+ );
37
+
38
+ /* Codec registry lookup API.
39
+
40
+ Looks up the given encoding and returns a CodecInfo object with
41
+ function attributes which implement the different aspects of
42
+ processing the encoding.
43
+
44
+ The encoding string is looked up converted to all lower-case
45
+ characters. This makes encodings looked up through this mechanism
46
+ effectively case-insensitive.
47
+
48
+ If no codec is found, a KeyError is set and NULL returned.
49
+
50
+ As side effect, this tries to load the encodings package, if not
51
+ yet done. This is part of the lazy load strategy for the encodings
52
+ package.
53
+
54
+ */
55
+
56
+ #ifndef Py_LIMITED_API
57
+ PyAPI_FUNC(PyObject *) _PyCodec_Lookup(
58
+ const char *encoding
59
+ );
60
+
61
+ PyAPI_FUNC(int) _PyCodec_Forget(
62
+ const char *encoding
63
+ );
64
+ #endif
65
+
66
+ /* Codec registry encoding check API.
67
+
68
+ Returns 1/0 depending on whether there is a registered codec for
69
+ the given encoding.
70
+
71
+ */
72
+
73
+ PyAPI_FUNC(int) PyCodec_KnownEncoding(
74
+ const char *encoding
75
+ );
76
+
77
+ /* Generic codec based encoding API.
78
+
79
+ object is passed through the encoder function found for the given
80
+ encoding using the error handling method defined by errors. errors
81
+ may be NULL to use the default method defined for the codec.
82
+
83
+ Raises a LookupError in case no encoder can be found.
84
+
85
+ */
86
+
87
+ PyAPI_FUNC(PyObject *) PyCodec_Encode(
88
+ PyObject *object,
89
+ const char *encoding,
90
+ const char *errors
91
+ );
92
+
93
+ /* Generic codec based decoding API.
94
+
95
+ object is passed through the decoder function found for the given
96
+ encoding using the error handling method defined by errors. errors
97
+ may be NULL to use the default method defined for the codec.
98
+
99
+ Raises a LookupError in case no encoder can be found.
100
+
101
+ */
102
+
103
+ PyAPI_FUNC(PyObject *) PyCodec_Decode(
104
+ PyObject *object,
105
+ const char *encoding,
106
+ const char *errors
107
+ );
108
+
109
+ #ifndef Py_LIMITED_API
110
+ /* Text codec specific encoding and decoding API.
111
+
112
+ Checks the encoding against a list of codecs which do not
113
+ implement a str<->bytes encoding before attempting the
114
+ operation.
115
+
116
+ Please note that these APIs are internal and should not
117
+ be used in Python C extensions.
118
+
119
+ XXX (ncoghlan): should we make these, or something like them, public
120
+ in Python 3.5+?
121
+
122
+ */
123
+ PyAPI_FUNC(PyObject *) _PyCodec_LookupTextEncoding(
124
+ const char *encoding,
125
+ const char *alternate_command
126
+ );
127
+
128
+ PyAPI_FUNC(PyObject *) _PyCodec_EncodeText(
129
+ PyObject *object,
130
+ const char *encoding,
131
+ const char *errors
132
+ );
133
+
134
+ PyAPI_FUNC(PyObject *) _PyCodec_DecodeText(
135
+ PyObject *object,
136
+ const char *encoding,
137
+ const char *errors
138
+ );
139
+
140
+ /* These two aren't actually text encoding specific, but _io.TextIOWrapper
141
+ * is the only current API consumer.
142
+ */
143
+ PyAPI_FUNC(PyObject *) _PyCodecInfo_GetIncrementalDecoder(
144
+ PyObject *codec_info,
145
+ const char *errors
146
+ );
147
+
148
+ PyAPI_FUNC(PyObject *) _PyCodecInfo_GetIncrementalEncoder(
149
+ PyObject *codec_info,
150
+ const char *errors
151
+ );
152
+ #endif
153
+
154
+
155
+
156
+ /* --- Codec Lookup APIs --------------------------------------------------
157
+
158
+ All APIs return a codec object with incremented refcount and are
159
+ based on _PyCodec_Lookup(). The same comments w/r to the encoding
160
+ name also apply to these APIs.
161
+
162
+ */
163
+
164
+ /* Get an encoder function for the given encoding. */
165
+
166
+ PyAPI_FUNC(PyObject *) PyCodec_Encoder(
167
+ const char *encoding
168
+ );
169
+
170
+ /* Get a decoder function for the given encoding. */
171
+
172
+ PyAPI_FUNC(PyObject *) PyCodec_Decoder(
173
+ const char *encoding
174
+ );
175
+
176
+ /* Get an IncrementalEncoder object for the given encoding. */
177
+
178
+ PyAPI_FUNC(PyObject *) PyCodec_IncrementalEncoder(
179
+ const char *encoding,
180
+ const char *errors
181
+ );
182
+
183
+ /* Get an IncrementalDecoder object function for the given encoding. */
184
+
185
+ PyAPI_FUNC(PyObject *) PyCodec_IncrementalDecoder(
186
+ const char *encoding,
187
+ const char *errors
188
+ );
189
+
190
+ /* Get a StreamReader factory function for the given encoding. */
191
+
192
+ PyAPI_FUNC(PyObject *) PyCodec_StreamReader(
193
+ const char *encoding,
194
+ PyObject *stream,
195
+ const char *errors
196
+ );
197
+
198
+ /* Get a StreamWriter factory function for the given encoding. */
199
+
200
+ PyAPI_FUNC(PyObject *) PyCodec_StreamWriter(
201
+ const char *encoding,
202
+ PyObject *stream,
203
+ const char *errors
204
+ );
205
+
206
+ /* Unicode encoding error handling callback registry API */
207
+
208
+ /* Register the error handling callback function error under the given
209
+ name. This function will be called by the codec when it encounters
210
+ unencodable characters/undecodable bytes and doesn't know the
211
+ callback name, when name is specified as the error parameter
212
+ in the call to the encode/decode function.
213
+ Return 0 on success, -1 on error */
214
+ PyAPI_FUNC(int) PyCodec_RegisterError(const char *name, PyObject *error);
215
+
216
+ /* Lookup the error handling callback function registered under the given
217
+ name. As a special case NULL can be passed, in which case
218
+ the error handling callback for "strict" will be returned. */
219
+ PyAPI_FUNC(PyObject *) PyCodec_LookupError(const char *name);
220
+
221
+ /* raise exc as an exception */
222
+ PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc);
223
+
224
+ /* ignore the unicode error, skipping the faulty input */
225
+ PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc);
226
+
227
+ /* replace the unicode encode error with ? or U+FFFD */
228
+ PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc);
229
+
230
+ /* replace the unicode encode error with XML character references */
231
+ PyAPI_FUNC(PyObject *) PyCodec_XMLCharRefReplaceErrors(PyObject *exc);
232
+
233
+ /* replace the unicode encode error with backslash escapes (\x, \u and \U) */
234
+ PyAPI_FUNC(PyObject *) PyCodec_BackslashReplaceErrors(PyObject *exc);
235
+
236
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
237
+ /* replace the unicode encode error with backslash escapes (\N, \x, \u and \U) */
238
+ PyAPI_FUNC(PyObject *) PyCodec_NameReplaceErrors(PyObject *exc);
239
+ #endif
240
+
241
+ #ifndef Py_LIMITED_API
242
+ PyAPI_DATA(const char *) Py_hexdigits;
243
+ #endif
244
+
245
+ #ifdef __cplusplus
246
+ }
247
+ #endif
248
+ #endif /* !Py_CODECREGISTRY_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/compile.h ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_COMPILE_H
2
+ #define Py_COMPILE_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ /* These definitions must match corresponding definitions in graminit.h. */
8
+ #define Py_single_input 256
9
+ #define Py_file_input 257
10
+ #define Py_eval_input 258
11
+ #define Py_func_type_input 345
12
+
13
+ /* This doesn't need to match anything */
14
+ #define Py_fstring_input 800
15
+
16
+ #ifndef Py_LIMITED_API
17
+ # define Py_CPYTHON_COMPILE_H
18
+ # include "cpython/compile.h"
19
+ # undef Py_CPYTHON_COMPILE_H
20
+ #endif
21
+
22
+ #ifdef __cplusplus
23
+ }
24
+ #endif
25
+ #endif /* !Py_COMPILE_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/complexobject.h ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Complex number structure */
2
+
3
+ #ifndef Py_COMPLEXOBJECT_H
4
+ #define Py_COMPLEXOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ /* Complex object interface */
10
+
11
+ PyAPI_DATA(PyTypeObject) PyComplex_Type;
12
+
13
+ #define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
14
+ #define PyComplex_CheckExact(op) Py_IS_TYPE(op, &PyComplex_Type)
15
+
16
+ PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
17
+
18
+ PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op);
19
+ PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op);
20
+
21
+ #ifndef Py_LIMITED_API
22
+ # define Py_CPYTHON_COMPLEXOBJECT_H
23
+ # include "cpython/complexobject.h"
24
+ # undef Py_CPYTHON_COMPLEXOBJECT_H
25
+ #endif
26
+
27
+ #ifdef __cplusplus
28
+ }
29
+ #endif
30
+ #endif /* !Py_COMPLEXOBJECT_H */
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/cpython/abstract.h ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_ABSTRACTOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* === Object Protocol ================================================== */
6
+
7
+ #ifdef PY_SSIZE_T_CLEAN
8
+ # define _PyObject_CallMethodId _PyObject_CallMethodId_SizeT
9
+ #endif
10
+
11
+ /* Convert keyword arguments from the FASTCALL (stack: C array, kwnames: tuple)
12
+ format to a Python dictionary ("kwargs" dict).
13
+
14
+ The type of kwnames keys is not checked. The final function getting
15
+ arguments is responsible to check if all keys are strings, for example using
16
+ PyArg_ParseTupleAndKeywords() or PyArg_ValidateKeywordArguments().
17
+
18
+ Duplicate keys are merged using the last value. If duplicate keys must raise
19
+ an exception, the caller is responsible to implement an explicit keys on
20
+ kwnames. */
21
+ PyAPI_FUNC(PyObject *) _PyStack_AsDict(
22
+ PyObject *const *values,
23
+ PyObject *kwnames);
24
+
25
+ /* Suggested size (number of positional arguments) for arrays of PyObject*
26
+ allocated on a C stack to avoid allocating memory on the heap memory. Such
27
+ array is used to pass positional arguments to call functions of the
28
+ PyObject_Vectorcall() family.
29
+
30
+ The size is chosen to not abuse the C stack and so limit the risk of stack
31
+ overflow. The size is also chosen to allow using the small stack for most
32
+ function calls of the Python standard library. On 64-bit CPU, it allocates
33
+ 40 bytes on the stack. */
34
+ #define _PY_FASTCALL_SMALL_STACK 5
35
+
36
+ PyAPI_FUNC(PyObject *) _Py_CheckFunctionResult(
37
+ PyThreadState *tstate,
38
+ PyObject *callable,
39
+ PyObject *result,
40
+ const char *where);
41
+
42
+ /* === Vectorcall protocol (PEP 590) ============================= */
43
+
44
+ /* Call callable using tp_call. Arguments are like PyObject_Vectorcall()
45
+ or PyObject_FastCallDict() (both forms are supported),
46
+ except that nargs is plainly the number of arguments without flags. */
47
+ PyAPI_FUNC(PyObject *) _PyObject_MakeTpCall(
48
+ PyThreadState *tstate,
49
+ PyObject *callable,
50
+ PyObject *const *args, Py_ssize_t nargs,
51
+ PyObject *keywords);
52
+
53
+ #define PY_VECTORCALL_ARGUMENTS_OFFSET \
54
+ (_Py_STATIC_CAST(size_t, 1) << (8 * sizeof(size_t) - 1))
55
+
56
+ static inline Py_ssize_t
57
+ PyVectorcall_NARGS(size_t n)
58
+ {
59
+ return n & ~PY_VECTORCALL_ARGUMENTS_OFFSET;
60
+ }
61
+
62
+ PyAPI_FUNC(vectorcallfunc) PyVectorcall_Function(PyObject *callable);
63
+
64
+ PyAPI_FUNC(PyObject *) PyObject_Vectorcall(
65
+ PyObject *callable,
66
+ PyObject *const *args,
67
+ size_t nargsf,
68
+ PyObject *kwnames);
69
+
70
+ // Backwards compatibility aliases for API that was provisional in Python 3.8
71
+ #define _PyObject_Vectorcall PyObject_Vectorcall
72
+ #define _PyObject_VectorcallMethod PyObject_VectorcallMethod
73
+ #define _PyObject_FastCallDict PyObject_VectorcallDict
74
+ #define _PyVectorcall_Function PyVectorcall_Function
75
+ #define _PyObject_CallOneArg PyObject_CallOneArg
76
+ #define _PyObject_CallMethodNoArgs PyObject_CallMethodNoArgs
77
+ #define _PyObject_CallMethodOneArg PyObject_CallMethodOneArg
78
+
79
+ /* Same as PyObject_Vectorcall except that keyword arguments are passed as
80
+ dict, which may be NULL if there are no keyword arguments. */
81
+ PyAPI_FUNC(PyObject *) PyObject_VectorcallDict(
82
+ PyObject *callable,
83
+ PyObject *const *args,
84
+ size_t nargsf,
85
+ PyObject *kwargs);
86
+
87
+ /* Call "callable" (which must support vectorcall) with positional arguments
88
+ "tuple" and keyword arguments "dict". "dict" may also be NULL */
89
+ PyAPI_FUNC(PyObject *) PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *dict);
90
+
91
+ // Same as PyObject_Vectorcall(), except without keyword arguments
92
+ PyAPI_FUNC(PyObject *) _PyObject_FastCall(
93
+ PyObject *func,
94
+ PyObject *const *args,
95
+ Py_ssize_t nargs);
96
+
97
+ PyAPI_FUNC(PyObject *) PyObject_CallOneArg(PyObject *func, PyObject *arg);
98
+
99
+ PyAPI_FUNC(PyObject *) PyObject_VectorcallMethod(
100
+ PyObject *name, PyObject *const *args,
101
+ size_t nargsf, PyObject *kwnames);
102
+
103
+ static inline PyObject *
104
+ PyObject_CallMethodNoArgs(PyObject *self, PyObject *name)
105
+ {
106
+ size_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET;
107
+ return PyObject_VectorcallMethod(name, &self, nargsf, _Py_NULL);
108
+ }
109
+
110
+ static inline PyObject *
111
+ PyObject_CallMethodOneArg(PyObject *self, PyObject *name, PyObject *arg)
112
+ {
113
+ PyObject *args[2] = {self, arg};
114
+ size_t nargsf = 2 | PY_VECTORCALL_ARGUMENTS_OFFSET;
115
+ assert(arg != NULL);
116
+ return PyObject_VectorcallMethod(name, args, nargsf, _Py_NULL);
117
+ }
118
+
119
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethod(PyObject *obj,
120
+ PyObject *name,
121
+ const char *format, ...);
122
+
123
+ /* Like PyObject_CallMethod(), but expect a _Py_Identifier*
124
+ as the method name. */
125
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodId(PyObject *obj,
126
+ _Py_Identifier *name,
127
+ const char *format, ...);
128
+
129
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodId_SizeT(PyObject *obj,
130
+ _Py_Identifier *name,
131
+ const char *format,
132
+ ...);
133
+
134
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodIdObjArgs(
135
+ PyObject *obj,
136
+ _Py_Identifier *name,
137
+ ...);
138
+
139
+ static inline PyObject *
140
+ _PyObject_VectorcallMethodId(
141
+ _Py_Identifier *name, PyObject *const *args,
142
+ size_t nargsf, PyObject *kwnames)
143
+ {
144
+ PyObject *oname = _PyUnicode_FromId(name); /* borrowed */
145
+ if (!oname) {
146
+ return _Py_NULL;
147
+ }
148
+ return PyObject_VectorcallMethod(oname, args, nargsf, kwnames);
149
+ }
150
+
151
+ static inline PyObject *
152
+ _PyObject_CallMethodIdNoArgs(PyObject *self, _Py_Identifier *name)
153
+ {
154
+ size_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET;
155
+ return _PyObject_VectorcallMethodId(name, &self, nargsf, _Py_NULL);
156
+ }
157
+
158
+ static inline PyObject *
159
+ _PyObject_CallMethodIdOneArg(PyObject *self, _Py_Identifier *name, PyObject *arg)
160
+ {
161
+ PyObject *args[2] = {self, arg};
162
+ size_t nargsf = 2 | PY_VECTORCALL_ARGUMENTS_OFFSET;
163
+ assert(arg != NULL);
164
+ return _PyObject_VectorcallMethodId(name, args, nargsf, _Py_NULL);
165
+ }
166
+
167
+ PyAPI_FUNC(int) _PyObject_HasLen(PyObject *o);
168
+
169
+ /* Guess the size of object 'o' using len(o) or o.__length_hint__().
170
+ If neither of those return a non-negative value, then return the default
171
+ value. If one of the calls fails, this function returns -1. */
172
+ PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t);
173
+
174
+ /* === Sequence protocol ================================================ */
175
+
176
+ /* Assume tp_as_sequence and sq_item exist and that 'i' does not
177
+ need to be corrected for a negative index. */
178
+ #define PySequence_ITEM(o, i)\
179
+ ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
180
+
181
+ #define PY_ITERSEARCH_COUNT 1
182
+ #define PY_ITERSEARCH_INDEX 2
183
+ #define PY_ITERSEARCH_CONTAINS 3
184
+
185
+ /* Iterate over seq.
186
+
187
+ Result depends on the operation:
188
+
189
+ PY_ITERSEARCH_COUNT: return # of times obj appears in seq; -1 if
190
+ error.
191
+ PY_ITERSEARCH_INDEX: return 0-based index of first occurrence of
192
+ obj in seq; set ValueError and return -1 if none found;
193
+ also return -1 on error.
194
+ PY_ITERSEARCH_CONTAINS: return 1 if obj in seq, else 0; -1 on
195
+ error. */
196
+ PyAPI_FUNC(Py_ssize_t) _PySequence_IterSearch(PyObject *seq,
197
+ PyObject *obj, int operation);
198
+
199
+ /* === Mapping protocol ================================================= */
200
+
201
+ PyAPI_FUNC(int) _PyObject_RealIsInstance(PyObject *inst, PyObject *cls);
202
+
203
+ PyAPI_FUNC(int) _PyObject_RealIsSubclass(PyObject *derived, PyObject *cls);
204
+
205
+ PyAPI_FUNC(char *const *) _PySequence_BytesToCharpArray(PyObject* self);
206
+
207
+ PyAPI_FUNC(void) _Py_FreeCharPArray(char *const array[]);
208
+
209
+ /* For internal use by buffer API functions */
210
+ PyAPI_FUNC(void) _Py_add_one_to_index_F(int nd, Py_ssize_t *index,
211
+ const Py_ssize_t *shape);
212
+ PyAPI_FUNC(void) _Py_add_one_to_index_C(int nd, Py_ssize_t *index,
213
+ const Py_ssize_t *shape);
214
+
215
+ /* Convert Python int to Py_ssize_t. Do nothing if the argument is None. */
216
+ PyAPI_FUNC(int) _Py_convert_optional_to_ssize_t(PyObject *, void *);
217
+
218
+ /* Same as PyNumber_Index but can return an instance of a subclass of int. */
219
+ PyAPI_FUNC(PyObject *) _PyNumber_Index(PyObject *o);
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/cpython/bytearrayobject.h ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_BYTEARRAYOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* Object layout */
6
+ typedef struct {
7
+ PyObject_VAR_HEAD
8
+ Py_ssize_t ob_alloc; /* How many bytes allocated in ob_bytes */
9
+ char *ob_bytes; /* Physical backing buffer */
10
+ char *ob_start; /* Logical start inside ob_bytes */
11
+ Py_ssize_t ob_exports; /* How many buffer exports */
12
+ } PyByteArrayObject;
13
+
14
+ PyAPI_DATA(char) _PyByteArray_empty_string[];
15
+
16
+ /* Macros and static inline functions, trading safety for speed */
17
+ #define _PyByteArray_CAST(op) \
18
+ (assert(PyByteArray_Check(op)), _Py_CAST(PyByteArrayObject*, op))
19
+
20
+ static inline char* PyByteArray_AS_STRING(PyObject *op)
21
+ {
22
+ PyByteArrayObject *self = _PyByteArray_CAST(op);
23
+ if (Py_SIZE(self)) {
24
+ return self->ob_start;
25
+ }
26
+ return _PyByteArray_empty_string;
27
+ }
28
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
29
+ # define PyByteArray_AS_STRING(self) PyByteArray_AS_STRING(_PyObject_CAST(self))
30
+ #endif
31
+
32
+ static inline Py_ssize_t PyByteArray_GET_SIZE(PyObject *op) {
33
+ PyByteArrayObject *self = _PyByteArray_CAST(op);
34
+ return Py_SIZE(self);
35
+ }
36
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
37
+ # define PyByteArray_GET_SIZE(self) PyByteArray_GET_SIZE(_PyObject_CAST(self))
38
+ #endif
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/cpython/bytesobject.h ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_BYTESOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct {
6
+ PyObject_VAR_HEAD
7
+ Py_DEPRECATED(3.11) Py_hash_t ob_shash;
8
+ char ob_sval[1];
9
+
10
+ /* Invariants:
11
+ * ob_sval contains space for 'ob_size+1' elements.
12
+ * ob_sval[ob_size] == 0.
13
+ * ob_shash is the hash of the byte string or -1 if not computed yet.
14
+ */
15
+ } PyBytesObject;
16
+
17
+ PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t);
18
+ PyAPI_FUNC(PyObject*) _PyBytes_FormatEx(
19
+ const char *format,
20
+ Py_ssize_t format_len,
21
+ PyObject *args,
22
+ int use_bytearray);
23
+ PyAPI_FUNC(PyObject*) _PyBytes_FromHex(
24
+ PyObject *string,
25
+ int use_bytearray);
26
+
27
+ /* Helper for PyBytes_DecodeEscape that detects invalid escape chars. */
28
+ PyAPI_FUNC(PyObject*) _PyBytes_DecodeEscape2(const char *, Py_ssize_t,
29
+ const char *,
30
+ int *, const char **);
31
+ // Export for binary compatibility.
32
+ PyAPI_FUNC(PyObject *) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
33
+ const char *, const char **);
34
+
35
+ /* Macros and static inline functions, trading safety for speed */
36
+ #define _PyBytes_CAST(op) \
37
+ (assert(PyBytes_Check(op)), _Py_CAST(PyBytesObject*, op))
38
+
39
+ static inline char* PyBytes_AS_STRING(PyObject *op)
40
+ {
41
+ return _PyBytes_CAST(op)->ob_sval;
42
+ }
43
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
44
+ # define PyBytes_AS_STRING(op) PyBytes_AS_STRING(_PyObject_CAST(op))
45
+ #endif
46
+
47
+ static inline Py_ssize_t PyBytes_GET_SIZE(PyObject *op) {
48
+ PyBytesObject *self = _PyBytes_CAST(op);
49
+ return Py_SIZE(self);
50
+ }
51
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
52
+ # define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(self))
53
+ #endif
54
+
55
+ /* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
56
+ x must be an iterable object. */
57
+ PyAPI_FUNC(PyObject *) _PyBytes_Join(PyObject *sep, PyObject *x);
58
+
59
+
60
+ /* The _PyBytesWriter structure is big: it contains an embedded "stack buffer".
61
+ A _PyBytesWriter variable must be declared at the end of variables in a
62
+ function to optimize the memory allocation on the stack. */
63
+ typedef struct {
64
+ /* bytes, bytearray or NULL (when the small buffer is used) */
65
+ PyObject *buffer;
66
+
67
+ /* Number of allocated size. */
68
+ Py_ssize_t allocated;
69
+
70
+ /* Minimum number of allocated bytes,
71
+ incremented by _PyBytesWriter_Prepare() */
72
+ Py_ssize_t min_size;
73
+
74
+ /* If non-zero, use a bytearray instead of a bytes object for buffer. */
75
+ int use_bytearray;
76
+
77
+ /* If non-zero, overallocate the buffer (default: 0).
78
+ This flag must be zero if use_bytearray is non-zero. */
79
+ int overallocate;
80
+
81
+ /* Stack buffer */
82
+ int use_small_buffer;
83
+ char small_buffer[512];
84
+ } _PyBytesWriter;
85
+
86
+ /* Initialize a bytes writer
87
+
88
+ By default, the overallocation is disabled. Set the overallocate attribute
89
+ to control the allocation of the buffer. */
90
+ PyAPI_FUNC(void) _PyBytesWriter_Init(_PyBytesWriter *writer);
91
+
92
+ /* Get the buffer content and reset the writer.
93
+ Return a bytes object, or a bytearray object if use_bytearray is non-zero.
94
+ Raise an exception and return NULL on error. */
95
+ PyAPI_FUNC(PyObject *) _PyBytesWriter_Finish(_PyBytesWriter *writer,
96
+ void *str);
97
+
98
+ /* Deallocate memory of a writer (clear its internal buffer). */
99
+ PyAPI_FUNC(void) _PyBytesWriter_Dealloc(_PyBytesWriter *writer);
100
+
101
+ /* Allocate the buffer to write size bytes.
102
+ Return the pointer to the beginning of buffer data.
103
+ Raise an exception and return NULL on error. */
104
+ PyAPI_FUNC(void*) _PyBytesWriter_Alloc(_PyBytesWriter *writer,
105
+ Py_ssize_t size);
106
+
107
+ /* Ensure that the buffer is large enough to write *size* bytes.
108
+ Add size to the writer minimum size (min_size attribute).
109
+
110
+ str is the current pointer inside the buffer.
111
+ Return the updated current pointer inside the buffer.
112
+ Raise an exception and return NULL on error. */
113
+ PyAPI_FUNC(void*) _PyBytesWriter_Prepare(_PyBytesWriter *writer,
114
+ void *str,
115
+ Py_ssize_t size);
116
+
117
+ /* Resize the buffer to make it larger.
118
+ The new buffer may be larger than size bytes because of overallocation.
119
+ Return the updated current pointer inside the buffer.
120
+ Raise an exception and return NULL on error.
121
+
122
+ Note: size must be greater than the number of allocated bytes in the writer.
123
+
124
+ This function doesn't use the writer minimum size (min_size attribute).
125
+
126
+ See also _PyBytesWriter_Prepare().
127
+ */
128
+ PyAPI_FUNC(void*) _PyBytesWriter_Resize(_PyBytesWriter *writer,
129
+ void *str,
130
+ Py_ssize_t size);
131
+
132
+ /* Write bytes.
133
+ Raise an exception and return NULL on error. */
134
+ PyAPI_FUNC(void*) _PyBytesWriter_WriteBytes(_PyBytesWriter *writer,
135
+ void *str,
136
+ const void *bytes,
137
+ Py_ssize_t size);
data/miniconda3/pkgs/python-3.11.15-h741d88c_0/include/python3.11/cpython/cellobject.h ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Cell object interface */
2
+
3
+ #ifndef Py_LIMITED_API
4
+ #ifndef Py_CELLOBJECT_H
5
+ #define Py_CELLOBJECT_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ typedef struct {
11
+ PyObject_HEAD
12
+ /* Content of the cell or NULL when empty */
13
+ PyObject *ob_ref;
14
+ } PyCellObject;
15
+
16
+ PyAPI_DATA(PyTypeObject) PyCell_Type;
17
+
18
+ #define PyCell_Check(op) Py_IS_TYPE(op, &PyCell_Type)
19
+
20
+ PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);
21
+ PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
22
+ PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);
23
+
24
+ #define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
25
+ #define PyCell_SET(op, v) _Py_RVALUE(((PyCellObject *)(op))->ob_ref = (v))
26
+
27
+ #ifdef __cplusplus
28
+ }
29
+ #endif
30
+ #endif /* !Py_TUPLEOBJECT_H */
31
+ #endif /* Py_LIMITED_API */