Skip to content

Commit 3d62dbd

Browse files
Pin gpu4pyscf-libxc-cuda12x to 0.8.1 to fix CUDA 12 GPU tests (#157)
gpu4pyscf-libxc-cuda12x 0.9.0 aborts with "operation not supported" in xc_func_init on vGPU devices (NVIDIA A10-4Q), which crashed the CUDA 12 GPU test jobs. 0.8.1 passes the full GPU suite on those runners. - Pin the library in the pixi cuda-12 feature and update pixi.lock. - Pin it in the skala-cuda12x PyPI package via a new @EXTRA_DEPENDENCIES@ template placeholder; skala-cuda13x is unchanged. - Update the release test for the new dependency. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3866569 commit 3d62dbd

5 files changed

Lines changed: 28 additions & 9 deletions

File tree

‎.github/workflows/pypi/skala-cuda.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classifiers = [
2424
requires-python = ">=3.11,<3.14"
2525
dependencies = [
2626
"skala==@VERSION@",
27-
"gpu4pyscf-cuda@CUDA@==1.9.0",
27+
"gpu4pyscf-cuda@CUDA@==1.9.0",@EXTRA_DEPENDENCIES@
2828
]
2929
urls.repository = "https://github.com/microsoft/skala"
3030
urls.documentation = "https://microsoft.github.io/skala"

‎pixi.lock‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pixi.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ libcusolver-dev = "*"
9898

9999
[feature.cuda-12.pypi-dependencies]
100100
gpu4pyscf-cuda12x = "==1.9.0"
101+
# TODO: drop this pin once gpu4pyscf-libxc-cuda12x fixes the "operation not supported" abort
102+
# in xc_func_init on vGPU devices (0.9.0 fails on the A10-4Q CI runners; 0.8.1 works).
103+
gpu4pyscf-libxc-cuda12x = "==0.8.1"
101104

102105
[feature.cuda-13]
103106
platforms = ["linux-64-cuda13"]

‎skala/tests/test_build_release.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
("package", "module_name", "dependencies", "supports_macos"),
1515
[
1616
("microsoft-skala", "microsoft_skala", [], True),
17-
("skala-cuda12x", "skala_cuda", ["gpu4pyscf-cuda12x==1.9.0"], False),
17+
(
18+
"skala-cuda12x",
19+
"skala_cuda",
20+
["gpu4pyscf-cuda12x==1.9.0", "gpu4pyscf-libxc-cuda12x==0.8.1"],
21+
False,
22+
),
1823
("skala-cuda13x", "skala_cuda", ["gpu4pyscf-cuda13x==1.9.0"], False),
1924
],
2025
)

‎tools/build_release.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111

1212
PACKAGES = ("skala", "microsoft-skala", "skala-cuda12x", "skala-cuda13x")
1313
PLACEHOLDER_PATTERN = re.compile(r"@[A-Z][A-Z0-9_]*@")
14+
# TODO: drop this pin once gpu4pyscf-libxc-cuda12x fixes the "operation not supported" abort
15+
# in xc_func_init on vGPU devices (0.9.0 fails on the A10-4Q CI runners; 0.8.1 works).
16+
# Keep it in sync with the pin in pixi.toml.
17+
EXTRA_DEPENDENCIES = {
18+
"skala-cuda12x": ["gpu4pyscf-libxc-cuda12x==0.8.1"],
19+
}
1420

1521

1622
def project_version(repository: Path) -> str:
@@ -46,9 +52,14 @@ def render_compatibility_pyproject(repository: Path, package: str) -> tuple[str,
4652
else:
4753
template = repository / ".github" / "workflows" / "pypi" / "skala-cuda.toml"
4854
module_name = "skala_cuda"
55+
extra_dependencies = "".join(
56+
f'\n "{requirement}",'
57+
for requirement in EXTRA_DEPENDENCIES.get(package, [])
58+
)
4959
replacements = {
5060
"@VERSION@": version,
5161
"@CUDA@": package.removeprefix("skala-cuda"),
62+
"@EXTRA_DEPENDENCIES@": extra_dependencies,
5263
}
5364

5465
return module_name, render_template(template, replacements)

0 commit comments

Comments
 (0)