xmanager-slurm 0.3.2__py3-none-any.whl → 0.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of xmanager-slurm might be problematic. Click here for more details.
- xm_slurm/__init__.py +4 -2
- xm_slurm/api.py +301 -34
- xm_slurm/batching.py +4 -4
- xm_slurm/config.py +99 -54
- xm_slurm/constants.py +15 -0
- xm_slurm/contrib/__init__.py +0 -0
- xm_slurm/contrib/clusters/__init__.py +22 -13
- xm_slurm/contrib/clusters/drac.py +34 -16
- xm_slurm/executables.py +15 -8
- xm_slurm/execution.py +86 -38
- xm_slurm/experiment.py +273 -131
- xm_slurm/experimental/parameter_controller.py +200 -0
- xm_slurm/job_blocks.py +7 -0
- xm_slurm/packageables.py +42 -20
- xm_slurm/packaging/docker/__init__.py +5 -11
- xm_slurm/packaging/docker/local.py +13 -12
- xm_slurm/packaging/utils.py +7 -55
- xm_slurm/resources.py +28 -4
- xm_slurm/scripts/_cloudpickle.py +28 -0
- xm_slurm/status.py +9 -0
- xm_slurm/templates/docker/mamba.Dockerfile +3 -1
- xm_slurm/templates/docker/python.Dockerfile +18 -10
- xm_slurm/templates/docker/uv.Dockerfile +35 -0
- xm_slurm/utils.py +18 -10
- xmanager_slurm-0.4.0.dist-info/METADATA +26 -0
- xmanager_slurm-0.4.0.dist-info/RECORD +42 -0
- {xmanager_slurm-0.3.2.dist-info → xmanager_slurm-0.4.0.dist-info}/WHEEL +1 -1
- xmanager_slurm-0.4.0.dist-info/licenses/LICENSE.md +227 -0
- xm_slurm/packaging/docker/cloud.py +0 -503
- xm_slurm/templates/docker/pdm.Dockerfile +0 -31
- xmanager_slurm-0.3.2.dist-info/METADATA +0 -25
- xmanager_slurm-0.3.2.dist-info/RECORD +0 -38
xm_slurm/resources.py
CHANGED
|
@@ -36,20 +36,35 @@ class ResourceType(enum.IntEnum):
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
AcceleratorType = set([
|
|
39
|
+
ResourceType.RTX8000,
|
|
39
40
|
ResourceType.P4,
|
|
40
41
|
ResourceType.P100,
|
|
42
|
+
ResourceType.P100_16GIB,
|
|
41
43
|
ResourceType.V100,
|
|
44
|
+
ResourceType.V100_32GIB,
|
|
42
45
|
ResourceType.A100,
|
|
43
46
|
ResourceType.A100_80GIB,
|
|
47
|
+
ResourceType.A5000,
|
|
44
48
|
ResourceType.A6000,
|
|
45
49
|
ResourceType.H100,
|
|
46
|
-
ResourceType.GPU,
|
|
47
50
|
])
|
|
48
51
|
|
|
52
|
+
assert AcceleratorType | {
|
|
53
|
+
ResourceType.CPU,
|
|
54
|
+
ResourceType.MEMORY,
|
|
55
|
+
ResourceType.DISK,
|
|
56
|
+
ResourceType.GPU,
|
|
57
|
+
} == set(ResourceType.__members__.values()), "Resource types are not exhaustive."
|
|
58
|
+
|
|
49
59
|
|
|
50
60
|
ResourceQuantity = int | float
|
|
51
61
|
|
|
52
62
|
|
|
63
|
+
class FeatureType(enum.IntEnum):
|
|
64
|
+
NVIDIA_MIG = 1
|
|
65
|
+
NVIDIA_NVLINK = 2
|
|
66
|
+
|
|
67
|
+
|
|
53
68
|
class JobRequirements:
|
|
54
69
|
replicas: int
|
|
55
70
|
location: str | None
|
|
@@ -80,8 +95,10 @@ class JobRequirements:
|
|
|
80
95
|
case str():
|
|
81
96
|
resource = resource_name
|
|
82
97
|
|
|
83
|
-
if
|
|
84
|
-
|
|
98
|
+
if (
|
|
99
|
+
resource in AcceleratorType
|
|
100
|
+
or resource == ResourceType.GPU
|
|
101
|
+
or (isinstance(resource, str) and resource.startswith("gpu"))
|
|
85
102
|
):
|
|
86
103
|
if self.accelerator is not None:
|
|
87
104
|
raise ValueError("Accelerator already set.")
|
|
@@ -92,6 +109,8 @@ class JobRequirements:
|
|
|
92
109
|
self.task_requirements[resource] = value
|
|
93
110
|
|
|
94
111
|
def to_directives(self) -> list[str]:
|
|
112
|
+
if self.cluster is None:
|
|
113
|
+
raise ValueError("Cannnot derive Slurm directives for requirements without a cluster.")
|
|
95
114
|
directives = []
|
|
96
115
|
|
|
97
116
|
for resource, value in self.task_requirements.items():
|
|
@@ -112,7 +131,12 @@ class JobRequirements:
|
|
|
112
131
|
directives.append(f"--gpus-per-task={value}")
|
|
113
132
|
case ResourceType() if resource in AcceleratorType:
|
|
114
133
|
assert isinstance(value, int), "Accelerator must be an integer"
|
|
115
|
-
|
|
134
|
+
resource_type = self.cluster.resources.get(resource, None)
|
|
135
|
+
if resource_type is None:
|
|
136
|
+
raise ValueError(
|
|
137
|
+
f"Cluster {self.cluster.name} does not map resource type {resource!r}."
|
|
138
|
+
)
|
|
139
|
+
directives.append(f"--gpus-per-task={resource_type}:{value}")
|
|
116
140
|
case str():
|
|
117
141
|
directives.append(f"--gres={resource}:{value}")
|
|
118
142
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import base64
|
|
2
|
+
import logging
|
|
3
|
+
import zlib
|
|
4
|
+
|
|
5
|
+
import cloudpickle
|
|
6
|
+
from absl import app, flags
|
|
7
|
+
from xmanager import xm
|
|
8
|
+
|
|
9
|
+
CLOUDPICKLED_FN = flags.DEFINE_string(
|
|
10
|
+
"cloudpickled_fn", None, "Base64 encoded cloudpickled function", required=True
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
logger = logging.getLogger(__name__)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@xm.run_in_asyncio_loop
|
|
17
|
+
async def main(argv):
|
|
18
|
+
del argv
|
|
19
|
+
|
|
20
|
+
logger.info("Loading cloudpickled function...")
|
|
21
|
+
cloudpickled_fn = zlib.decompress(base64.urlsafe_b64decode(CLOUDPICKLED_FN.value))
|
|
22
|
+
function = cloudpickle.loads(cloudpickled_fn)
|
|
23
|
+
logger.info("Running cloudpickled function...")
|
|
24
|
+
await function()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
if __name__ == "__main__":
|
|
28
|
+
app.run(main)
|
xm_slurm/status.py
CHANGED
|
@@ -106,6 +106,15 @@ SlurmFailedJobStates = set([
|
|
|
106
106
|
])
|
|
107
107
|
SlurmCancelledJobStates = set([SlurmJobState.CANCELLED])
|
|
108
108
|
|
|
109
|
+
assert (
|
|
110
|
+
SlurmPendingJobStates
|
|
111
|
+
| SlurmRunningJobStates
|
|
112
|
+
| SlurmActiveJobStates
|
|
113
|
+
| SlurmCompletedJobStates
|
|
114
|
+
| SlurmFailedJobStates
|
|
115
|
+
| SlurmCancelledJobStates
|
|
116
|
+
) == set(SlurmJobState.__members__.values()), "Slurm job states are not exhaustive."
|
|
117
|
+
|
|
109
118
|
|
|
110
119
|
class SlurmWorkUnitStatusEnum(enum.IntEnum):
|
|
111
120
|
"""Status of a local experiment job."""
|
|
@@ -9,7 +9,9 @@ USER root
|
|
|
9
9
|
COPY $CONDA_ENVIRONMENT /tmp/
|
|
10
10
|
|
|
11
11
|
# Setup mamba environment
|
|
12
|
-
RUN --mount=type=cache,target=/opt/conda/pkgs
|
|
12
|
+
RUN --mount=type=cache,target=/opt/conda/pkgs \
|
|
13
|
+
--mount=type=cache,target=/root/.cache/pip \
|
|
14
|
+
--mount=type=ssh \
|
|
13
15
|
micromamba create --yes --always-copy --no-pyc --prefix /opt/env --file /tmp/environment.yml
|
|
14
16
|
|
|
15
17
|
RUN find /opt/env/ -follow -type f -name '*.a' -delete && \
|
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
# syntax=docker/dockerfile:1.4
|
|
2
|
-
ARG BASE_IMAGE=docker.io/python:3.10-slim
|
|
2
|
+
ARG BASE_IMAGE=docker.io/python:3.10-slim-bookworm
|
|
3
3
|
FROM $BASE_IMAGE as builder
|
|
4
|
+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
|
5
|
+
|
|
6
|
+
ARG EXTRA_SYSTEM_PACKAGES=""
|
|
7
|
+
ARG EXTRA_PYTHON_PACKAGES=""
|
|
8
|
+
|
|
9
|
+
ENV UV_PYTHON_DOWNLOADS=0
|
|
10
|
+
ENV UV_COMPILE_BYTECODE=1
|
|
11
|
+
ENV UV_LINK_MODE=copy
|
|
12
|
+
|
|
13
|
+
WORKDIR /workspace
|
|
4
14
|
|
|
5
15
|
RUN apt-get update \
|
|
6
16
|
&& apt-get install -y --no-install-recommends \
|
|
7
|
-
git \
|
|
17
|
+
git $EXTRA_SYSTEM_PACKAGES \
|
|
8
18
|
&& rm -rf /var/lib/apt/lists/*
|
|
9
19
|
|
|
10
20
|
# Install and update necesarry global Python packages
|
|
11
|
-
RUN pip install
|
|
21
|
+
RUN uv pip install --system pysocks $EXTRA_PYTHON_PACKAGES
|
|
12
22
|
|
|
13
23
|
ARG PIP_REQUIREMENTS=requirements.txt
|
|
14
24
|
|
|
15
|
-
RUN
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
&& rm -rf /tmp/requirements.txt
|
|
25
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
26
|
+
--mount=type=bind,source=$PIP_REQUIREMENTS,target=requirements.txt \
|
|
27
|
+
--mount=type=ssh \
|
|
28
|
+
uv pip install --system --requirement requirements.txt
|
|
20
29
|
|
|
21
30
|
COPY --link . /workspace
|
|
22
|
-
WORKDIR /workspace
|
|
23
31
|
|
|
24
|
-
ENTRYPOINT [ "
|
|
32
|
+
ENTRYPOINT [ "python" ]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1.4
|
|
2
|
+
ARG BASE_IMAGE=docker.io/python:3.10-slim-bookworm
|
|
3
|
+
FROM $BASE_IMAGE
|
|
4
|
+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
|
5
|
+
|
|
6
|
+
ARG EXTRA_SYSTEM_PACKAGES=""
|
|
7
|
+
ARG EXTRA_PYTHON_PACKAGES=""
|
|
8
|
+
|
|
9
|
+
WORKDIR /workspace
|
|
10
|
+
|
|
11
|
+
ENV UV_PYTHON_DOWNLOADS=0
|
|
12
|
+
ENV UV_COMPILE_BYTECODE=1
|
|
13
|
+
ENV UV_LINK_MODE=copy
|
|
14
|
+
|
|
15
|
+
RUN apt-get update \
|
|
16
|
+
&& apt-get install -y --no-install-recommends \
|
|
17
|
+
git $EXTRA_SYSTEM_PACKAGES \
|
|
18
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
19
|
+
|
|
20
|
+
RUN uv pip install --system pysocks $EXTRA_PYTHON_PACKAGES
|
|
21
|
+
|
|
22
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
23
|
+
--mount=type=bind,source=uv.lock,target=uv.lock \
|
|
24
|
+
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
|
|
25
|
+
--mount=type=ssh \
|
|
26
|
+
uv sync --frozen --no-install-project --no-dev --no-editable
|
|
27
|
+
|
|
28
|
+
COPY --link . /workspace
|
|
29
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
30
|
+
--mount=type=ssh \
|
|
31
|
+
uv sync --frozen --no-dev
|
|
32
|
+
|
|
33
|
+
ENV PATH="/workspace/.venv/bin:$PATH"
|
|
34
|
+
|
|
35
|
+
ENTRYPOINT [ "uv", "run", "python" ]
|
xm_slurm/utils.py
CHANGED
|
@@ -35,17 +35,17 @@ class UserSet(Hashable, MutableSet[T]):
|
|
|
35
35
|
def __repr__(self):
|
|
36
36
|
return repr(self.data)
|
|
37
37
|
|
|
38
|
-
def add(self,
|
|
39
|
-
self.data.add(
|
|
40
|
-
self._on_add(
|
|
38
|
+
def add(self, value: T):
|
|
39
|
+
self.data.add(value)
|
|
40
|
+
self._on_add(value)
|
|
41
41
|
|
|
42
|
-
def remove(self,
|
|
43
|
-
self.data.remove(
|
|
44
|
-
self._on_remove(
|
|
42
|
+
def remove(self, value: T):
|
|
43
|
+
self.data.remove(value)
|
|
44
|
+
self._on_remove(value)
|
|
45
45
|
|
|
46
|
-
def discard(self,
|
|
47
|
-
self.data.discard(
|
|
48
|
-
self._on_discard(
|
|
46
|
+
def discard(self, value: T):
|
|
47
|
+
self.data.discard(value)
|
|
48
|
+
self._on_discard(value)
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
@functools.cache
|
|
@@ -62,7 +62,15 @@ def find_project_root() -> pathlib.Path:
|
|
|
62
62
|
|
|
63
63
|
pdir = launch_script_path.parent if launch_script_path else pathlib.Path.cwd().resolve()
|
|
64
64
|
while pdir != pdir.parent:
|
|
65
|
-
if (
|
|
65
|
+
if (
|
|
66
|
+
(pdir / "pyproject.toml").exists()
|
|
67
|
+
or (pdir / "setup.py").exists()
|
|
68
|
+
or (pdir / "setup.cfg").exists()
|
|
69
|
+
or (pdir / "requirements.txt").exists()
|
|
70
|
+
or (pdir / "requirements.in").exists()
|
|
71
|
+
or (pdir / "uv.lock").exists()
|
|
72
|
+
or (pdir / ".venv").exists()
|
|
73
|
+
):
|
|
66
74
|
return pdir
|
|
67
75
|
pdir = pdir.parent
|
|
68
76
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: xmanager-slurm
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Slurm backend for XManager.
|
|
5
|
+
Project-URL: GitHub, https://github.com/jessefarebro/xm-slurm
|
|
6
|
+
Author-email: Jesse Farebrother <jfarebro@cs.mcgill.ca>
|
|
7
|
+
License: MIT
|
|
8
|
+
License-File: LICENSE.md
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Requires-Dist: asyncssh>=2.13.2
|
|
18
|
+
Requires-Dist: backoff>=2.2.1
|
|
19
|
+
Requires-Dist: cloudpickle>=3.0.0
|
|
20
|
+
Requires-Dist: humanize>=4.8.0
|
|
21
|
+
Requires-Dist: immutabledict>=3.0.0
|
|
22
|
+
Requires-Dist: jinja2>=3.1.2
|
|
23
|
+
Requires-Dist: more-itertools>=10.2.0
|
|
24
|
+
Requires-Dist: rich>=13.5.2
|
|
25
|
+
Requires-Dist: toml>=0.10.2
|
|
26
|
+
Requires-Dist: xmanager>=0.5.0
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
xm_slurm/__init__.py,sha256=DARUE67bf_e7WeC2MWxCIxeTJ2SO-yHO8M9m_p4t_I4,1061
|
|
2
|
+
xm_slurm/api.py,sha256=-z_1gYkUUtuGCw-Z36iYLL9lUpAJqUerX2LV8o9fSCY,18503
|
|
3
|
+
xm_slurm/batching.py,sha256=GbKBsNz9w8gIc2fHLZpslC0e4K9YUfLXFHmjduRRCfQ,4385
|
|
4
|
+
xm_slurm/config.py,sha256=ZtHPwTfuFTijaCf6s0HBRjbBKvrHZD3mPR0vxVv2gsU,6610
|
|
5
|
+
xm_slurm/console.py,sha256=UpMqeJ0C8i0pkue1AHnnyyX0bFJ9zZeJ7HBR6yhuA8A,54
|
|
6
|
+
xm_slurm/constants.py,sha256=Jzli9uutHRZebXJwWC_X7leKlycKPDQqSxuk_dNtnQ4,882
|
|
7
|
+
xm_slurm/executables.py,sha256=BZWQsN_srdFqXSCG7OmoeqVNgLgzYncMOL_aEo8CUQA,6142
|
|
8
|
+
xm_slurm/execution.py,sha256=14UDPl5aYwLVF3oPodhy3FrhyqsiI6RzuOAyvr9UBdA,20000
|
|
9
|
+
xm_slurm/executors.py,sha256=vilogTjlxHLfZDms4aYOZWUW8w-2IdxU7xh-9vcW1Y0,4723
|
|
10
|
+
xm_slurm/experiment.py,sha256=AZ0hzJWHEW8mo2FDF5UtGvvpWW_0rAUfO5nKIDAE7oE,31484
|
|
11
|
+
xm_slurm/job_blocks.py,sha256=_F8CKCs5BQFj40a2-mjG71HfacvWoBXBDPDKEaKTbXc,616
|
|
12
|
+
xm_slurm/packageables.py,sha256=YZFTL6UWx9A_zyztTy1THUlj3pW1rA0cBPHJxD1LOJk,12884
|
|
13
|
+
xm_slurm/resources.py,sha256=EaYDATVudrEDPKKdSZoWgfqPiidc6DMjIctmzLQmiH0,5683
|
|
14
|
+
xm_slurm/status.py,sha256=WTWiDHi-ZHtwHRnDP0cGa-27zTSm6LkA-GCKsN-zBgg,6916
|
|
15
|
+
xm_slurm/utils.py,sha256=ESjOkGT7bRSzIeZrUtZplSHP4oaH6VZ92y2woYdcyKM,2239
|
|
16
|
+
xm_slurm/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
+
xm_slurm/contrib/clusters/__init__.py,sha256=mwppnH0h20E3hB4Zry4GCbKVWxVv7jciRjDkZCdiPwY,2086
|
|
18
|
+
xm_slurm/contrib/clusters/drac.py,sha256=tJeQFWFIpeZ1gD3j6AAJssNoLSiDkB-3lz1_ObnkRhc,5905
|
|
19
|
+
xm_slurm/experimental/parameter_controller.py,sha256=hl9-hScTC5hnCLRv5KEUuThSpw1m7bzGaaCMBrt6vn8,8429
|
|
20
|
+
xm_slurm/packaging/__init__.py,sha256=dh307yLpUT9KN7rJ1e9fYC6hegGKfZcGboUq9nGpDVQ,233
|
|
21
|
+
xm_slurm/packaging/registry.py,sha256=GrdmQg9MgSo38OiqOzMKWSkQyBuyryOfc3zcdgZ4CUE,1148
|
|
22
|
+
xm_slurm/packaging/router.py,sha256=6qjtsy4BoYgSaQzC_pQSHVHeWcphG_xWVsWgW6ALC7U,2033
|
|
23
|
+
xm_slurm/packaging/utils.py,sha256=LKzkQrdBfON96KCwxyraBX9Ylv2I1JTYoRsc0ZYMfGk,4887
|
|
24
|
+
xm_slurm/packaging/docker/__init__.py,sha256=sJuLRKV04QkpiSpVZWTPebkYjgMESSWGKXpkSpPytGU,2230
|
|
25
|
+
xm_slurm/packaging/docker/abc.py,sha256=f8XvUA_FusIpXI45PR5isA2msxM003ycW5mWbAyiKfk,3830
|
|
26
|
+
xm_slurm/packaging/docker/local.py,sha256=dA_TXqsqpO4WST201AObcvwoyQZIC-pJ8DMZLIvISvU,8234
|
|
27
|
+
xm_slurm/scripts/_cloudpickle.py,sha256=dlJYf2SceOuUn8wi-ozuoYAQg71wqD2MUVOUCyOwWIY,647
|
|
28
|
+
xm_slurm/templates/docker/docker-bake.hcl.j2,sha256=ClsFpj91Mr1VfA8L6eqBG3HQz0Z8VenF6mEfmAhQgUo,1498
|
|
29
|
+
xm_slurm/templates/docker/mamba.Dockerfile,sha256=tsWqvfz1kYOl27ro2mRRWTHQPFv4hANFNIvH3Pgk7wY,745
|
|
30
|
+
xm_slurm/templates/docker/python.Dockerfile,sha256=U4b4QVkopckQ0o9jJIE7d_M6TvExEYlYDirNwCoZ7W4,865
|
|
31
|
+
xm_slurm/templates/docker/uv.Dockerfile,sha256=kYD32oUS1jUaARsNV1o6EFnIfLCNh5GMmck27b-5NRU,969
|
|
32
|
+
xm_slurm/templates/slurm/job-array.bash.j2,sha256=d4twfV1PATGQwTIleFBUIGmMAIHH-F7RjBsdfaAIQko,599
|
|
33
|
+
xm_slurm/templates/slurm/job-group.bash.j2,sha256=UkjfBE7jg9mepcUWaHZEAjkiXsIM1j_sLxLzxkteD-Y,1120
|
|
34
|
+
xm_slurm/templates/slurm/job.bash.j2,sha256=EUeq3P2xqTIqlHi2SVhFBT7NL4lUj8okYUa3GnlaIIc,1852
|
|
35
|
+
xm_slurm/templates/slurm/fragments/monitor.bash.j2,sha256=CxtbxOJzd0Un-ApDO6T8JHuKlSv6uwwBFMJPeGjCKnk,1071
|
|
36
|
+
xm_slurm/templates/slurm/fragments/proxy.bash.j2,sha256=VJLglZo-Nvx9R-qe3rHTxr07CylTQ6Z9NwBzvIpAZrA,814
|
|
37
|
+
xm_slurm/templates/slurm/runtimes/apptainer.bash.j2,sha256=dMntzelhs8DqKyIpO9S6wzMfH2PDevmgvyjCW8Xc2dY,3222
|
|
38
|
+
xm_slurm/templates/slurm/runtimes/podman.bash.j2,sha256=xKXYFvQvazMx0PgvmlRXR6eecoiBUl8y52dIzQtWkBE,1469
|
|
39
|
+
xmanager_slurm-0.4.0.dist-info/METADATA,sha256=6XIfRqQ-uIyx1XWp2GwVmIopwxZqUMmr1blLQSXwD-Y,954
|
|
40
|
+
xmanager_slurm-0.4.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
41
|
+
xmanager_slurm-0.4.0.dist-info/licenses/LICENSE.md,sha256=IxstXr3MPHwTJ5jMrByHrQsR1ZAGQ2U_uz_4qzI_15Y,11756
|
|
42
|
+
xmanager_slurm-0.4.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
This work is dual-licensed under Apache 2.0 and MIT License attached below.
|
|
2
|
+
You can choose between one of them if you use this work.
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The MIT License (MIT)
|
|
7
|
+
=====================
|
|
8
|
+
|
|
9
|
+
Copyright © `2024` `Jesse Farebrother`
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person
|
|
12
|
+
obtaining a copy of this software and associated documentation
|
|
13
|
+
files (the “Software”), to deal in the Software without
|
|
14
|
+
restriction, including without limitation the rights to use,
|
|
15
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the
|
|
17
|
+
Software is furnished to do so, subject to the following
|
|
18
|
+
conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be
|
|
21
|
+
included in all copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
|
|
24
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
25
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
26
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
27
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
28
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
29
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
30
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
Apache License
|
|
35
|
+
==============
|
|
36
|
+
|
|
37
|
+
_Version 2.0, January 2004_
|
|
38
|
+
_<<http://www.apache.org/licenses/>>_
|
|
39
|
+
|
|
40
|
+
### Terms and Conditions for use, reproduction, and distribution
|
|
41
|
+
|
|
42
|
+
#### 1. Definitions
|
|
43
|
+
|
|
44
|
+
“License” shall mean the terms and conditions for use, reproduction, and
|
|
45
|
+
distribution as defined by Sections 1 through 9 of this document.
|
|
46
|
+
|
|
47
|
+
“Licensor” shall mean the copyright owner or entity authorized by the copyright
|
|
48
|
+
owner that is granting the License.
|
|
49
|
+
|
|
50
|
+
“Legal Entity” shall mean the union of the acting entity and all other entities
|
|
51
|
+
that control, are controlled by, or are under common control with that entity.
|
|
52
|
+
For the purposes of this definition, “control” means **(i)** the power, direct or
|
|
53
|
+
indirect, to cause the direction or management of such entity, whether by
|
|
54
|
+
contract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the
|
|
55
|
+
outstanding shares, or **(iii)** beneficial ownership of such entity.
|
|
56
|
+
|
|
57
|
+
“You” (or “Your”) shall mean an individual or Legal Entity exercising
|
|
58
|
+
permissions granted by this License.
|
|
59
|
+
|
|
60
|
+
“Source” form shall mean the preferred form for making modifications, including
|
|
61
|
+
but not limited to software source code, documentation source, and configuration
|
|
62
|
+
files.
|
|
63
|
+
|
|
64
|
+
“Object” form shall mean any form resulting from mechanical transformation or
|
|
65
|
+
translation of a Source form, including but not limited to compiled object code,
|
|
66
|
+
generated documentation, and conversions to other media types.
|
|
67
|
+
|
|
68
|
+
“Work” shall mean the work of authorship, whether in Source or Object form, made
|
|
69
|
+
available under the License, as indicated by a copyright notice that is included
|
|
70
|
+
in or attached to the work (an example is provided in the Appendix below).
|
|
71
|
+
|
|
72
|
+
“Derivative Works” shall mean any work, whether in Source or Object form, that
|
|
73
|
+
is based on (or derived from) the Work and for which the editorial revisions,
|
|
74
|
+
annotations, elaborations, or other modifications represent, as a whole, an
|
|
75
|
+
original work of authorship. For the purposes of this License, Derivative Works
|
|
76
|
+
shall not include works that remain separable from, or merely link (or bind by
|
|
77
|
+
name) to the interfaces of, the Work and Derivative Works thereof.
|
|
78
|
+
|
|
79
|
+
“Contribution” shall mean any work of authorship, including the original version
|
|
80
|
+
of the Work and any modifications or additions to that Work or Derivative Works
|
|
81
|
+
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
|
82
|
+
by the copyright owner or by an individual or Legal Entity authorized to submit
|
|
83
|
+
on behalf of the copyright owner. For the purposes of this definition,
|
|
84
|
+
“submitted” means any form of electronic, verbal, or written communication sent
|
|
85
|
+
to the Licensor or its representatives, including but not limited to
|
|
86
|
+
communication on electronic mailing lists, source code control systems, and
|
|
87
|
+
issue tracking systems that are managed by, or on behalf of, the Licensor for
|
|
88
|
+
the purpose of discussing and improving the Work, but excluding communication
|
|
89
|
+
that is conspicuously marked or otherwise designated in writing by the copyright
|
|
90
|
+
owner as “Not a Contribution.”
|
|
91
|
+
|
|
92
|
+
“Contributor” shall mean Licensor and any individual or Legal Entity on behalf
|
|
93
|
+
of whom a Contribution has been received by Licensor and subsequently
|
|
94
|
+
incorporated within the Work.
|
|
95
|
+
|
|
96
|
+
#### 2. Grant of Copyright License
|
|
97
|
+
|
|
98
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
99
|
+
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
100
|
+
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
|
101
|
+
publicly display, publicly perform, sublicense, and distribute the Work and such
|
|
102
|
+
Derivative Works in Source or Object form.
|
|
103
|
+
|
|
104
|
+
#### 3. Grant of Patent License
|
|
105
|
+
|
|
106
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
107
|
+
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
108
|
+
irrevocable (except as stated in this section) patent license to make, have
|
|
109
|
+
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
|
|
110
|
+
such license applies only to those patent claims licensable by such Contributor
|
|
111
|
+
that are necessarily infringed by their Contribution(s) alone or by combination
|
|
112
|
+
of their Contribution(s) with the Work to which such Contribution(s) was
|
|
113
|
+
submitted. If You institute patent litigation against any entity (including a
|
|
114
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
|
|
115
|
+
Contribution incorporated within the Work constitutes direct or contributory
|
|
116
|
+
patent infringement, then any patent licenses granted to You under this License
|
|
117
|
+
for that Work shall terminate as of the date such litigation is filed.
|
|
118
|
+
|
|
119
|
+
#### 4. Redistribution
|
|
120
|
+
|
|
121
|
+
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
|
122
|
+
in any medium, with or without modifications, and in Source or Object form,
|
|
123
|
+
provided that You meet the following conditions:
|
|
124
|
+
|
|
125
|
+
* **(a)** You must give any other recipients of the Work or Derivative Works a copy of
|
|
126
|
+
this License; and
|
|
127
|
+
* **(b)** You must cause any modified files to carry prominent notices stating that You
|
|
128
|
+
changed the files; and
|
|
129
|
+
* **(c)** You must retain, in the Source form of any Derivative Works that You distribute,
|
|
130
|
+
all copyright, patent, trademark, and attribution notices from the Source form
|
|
131
|
+
of the Work, excluding those notices that do not pertain to any part of the
|
|
132
|
+
Derivative Works; and
|
|
133
|
+
* **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any
|
|
134
|
+
Derivative Works that You distribute must include a readable copy of the
|
|
135
|
+
attribution notices contained within such NOTICE file, excluding those notices
|
|
136
|
+
that do not pertain to any part of the Derivative Works, in at least one of the
|
|
137
|
+
following places: within a NOTICE text file distributed as part of the
|
|
138
|
+
Derivative Works; within the Source form or documentation, if provided along
|
|
139
|
+
with the Derivative Works; or, within a display generated by the Derivative
|
|
140
|
+
Works, if and wherever such third-party notices normally appear. The contents of
|
|
141
|
+
the NOTICE file are for informational purposes only and do not modify the
|
|
142
|
+
License. You may add Your own attribution notices within Derivative Works that
|
|
143
|
+
You distribute, alongside or as an addendum to the NOTICE text from the Work,
|
|
144
|
+
provided that such additional attribution notices cannot be construed as
|
|
145
|
+
modifying the License.
|
|
146
|
+
|
|
147
|
+
You may add Your own copyright statement to Your modifications and may provide
|
|
148
|
+
additional or different license terms and conditions for use, reproduction, or
|
|
149
|
+
distribution of Your modifications, or for any such Derivative Works as a whole,
|
|
150
|
+
provided Your use, reproduction, and distribution of the Work otherwise complies
|
|
151
|
+
with the conditions stated in this License.
|
|
152
|
+
|
|
153
|
+
#### 5. Submission of Contributions
|
|
154
|
+
|
|
155
|
+
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
|
156
|
+
for inclusion in the Work by You to the Licensor shall be under the terms and
|
|
157
|
+
conditions of this License, without any additional terms or conditions.
|
|
158
|
+
Notwithstanding the above, nothing herein shall supersede or modify the terms of
|
|
159
|
+
any separate license agreement you may have executed with Licensor regarding
|
|
160
|
+
such Contributions.
|
|
161
|
+
|
|
162
|
+
#### 6. Trademarks
|
|
163
|
+
|
|
164
|
+
This License does not grant permission to use the trade names, trademarks,
|
|
165
|
+
service marks, or product names of the Licensor, except as required for
|
|
166
|
+
reasonable and customary use in describing the origin of the Work and
|
|
167
|
+
reproducing the content of the NOTICE file.
|
|
168
|
+
|
|
169
|
+
#### 7. Disclaimer of Warranty
|
|
170
|
+
|
|
171
|
+
Unless required by applicable law or agreed to in writing, Licensor provides the
|
|
172
|
+
Work (and each Contributor provides its Contributions) on an “AS IS” BASIS,
|
|
173
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
|
|
174
|
+
including, without limitation, any warranties or conditions of TITLE,
|
|
175
|
+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
|
176
|
+
solely responsible for determining the appropriateness of using or
|
|
177
|
+
redistributing the Work and assume any risks associated with Your exercise of
|
|
178
|
+
permissions under this License.
|
|
179
|
+
|
|
180
|
+
#### 8. Limitation of Liability
|
|
181
|
+
|
|
182
|
+
In no event and under no legal theory, whether in tort (including negligence),
|
|
183
|
+
contract, or otherwise, unless required by applicable law (such as deliberate
|
|
184
|
+
and grossly negligent acts) or agreed to in writing, shall any Contributor be
|
|
185
|
+
liable to You for damages, including any direct, indirect, special, incidental,
|
|
186
|
+
or consequential damages of any character arising as a result of this License or
|
|
187
|
+
out of the use or inability to use the Work (including but not limited to
|
|
188
|
+
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
|
|
189
|
+
any and all other commercial damages or losses), even if such Contributor has
|
|
190
|
+
been advised of the possibility of such damages.
|
|
191
|
+
|
|
192
|
+
#### 9. Accepting Warranty or Additional Liability
|
|
193
|
+
|
|
194
|
+
While redistributing the Work or Derivative Works thereof, You may choose to
|
|
195
|
+
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
|
196
|
+
other liability obligations and/or rights consistent with this License. However,
|
|
197
|
+
in accepting such obligations, You may act only on Your own behalf and on Your
|
|
198
|
+
sole responsibility, not on behalf of any other Contributor, and only if You
|
|
199
|
+
agree to indemnify, defend, and hold each Contributor harmless for any liability
|
|
200
|
+
incurred by, or claims asserted against, such Contributor by reason of your
|
|
201
|
+
accepting any such warranty or additional liability.
|
|
202
|
+
|
|
203
|
+
_END OF TERMS AND CONDITIONS_
|
|
204
|
+
|
|
205
|
+
### APPENDIX: How to apply the Apache License to your work
|
|
206
|
+
|
|
207
|
+
To apply the Apache License to your work, attach the following boilerplate
|
|
208
|
+
notice, with the fields enclosed by brackets `[]` replaced with your own
|
|
209
|
+
identifying information. (Don't include the brackets!) The text should be
|
|
210
|
+
enclosed in the appropriate comment syntax for the file format. We also
|
|
211
|
+
recommend that a file or class name and description of purpose be included on
|
|
212
|
+
the same “printed page” as the copyright notice for easier identification within
|
|
213
|
+
third-party archives.
|
|
214
|
+
|
|
215
|
+
Copyright [yyyy] [name of copyright owner]
|
|
216
|
+
|
|
217
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
218
|
+
you may not use this file except in compliance with the License.
|
|
219
|
+
You may obtain a copy of the License at
|
|
220
|
+
|
|
221
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
222
|
+
|
|
223
|
+
Unless required by applicable law or agreed to in writing, software
|
|
224
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
225
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
226
|
+
See the License for the specific language governing permissions and
|
|
227
|
+
limitations under the License.
|