-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathall_new_pytorch.sh
executable file
·48 lines (43 loc) · 1.43 KB
/
all_new_pytorch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -e
# PY_VERSIONS=("3.8" "3.9" "3.10" "3.11" "3.12" "3.13")
PY_VERSIONS=("3.13")
# package/deploy is dead I guess
# MODES=("" "--debug" "--shared")
# MODES=("" "--debug")
# BUILDS=("" "--binary")
GILS=("" "--no-gil")
MODES=("")
BUILDS=("")
for PY_VERSION in "${PY_VERSIONS[@]}"; do
for MODE in "${MODES[@]}"; do
for BUILD in "${BUILDS[@]}"; do
for GIL in "${GILS[@]}"; do
if [ "${MODE}" == "--debug" ]; then
if [ "${BUILD}" == "--binary" ]; then
# No binary exists for debug pytorch
continue
fi
else
if [ "${GIL}" == "--no-gil" ]; then
# nogil build is debug only
continue
fi
fi
if [ "${MODE}" == "--shared" ]; then
if [ "${BUILD}" == "--binary" ]; then
# Only do debug shared for now
continue
fi
fi
if [ "${GIL}" == "--no-gil" ]; then
if [[ ${PY_VERSION} != 3.13* ]]; then
continue
fi
fi
echo "Running " ${PY_VERSION} ${MODE} ${BUILD} ${GIL}
./new_pytorch.sh --version ${PY_VERSION} ${MODE} ${BUILD} ${GIL}
done
done
done
done