-
Notifications
You must be signed in to change notification settings - Fork 24
Update readme for use with GPU #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -47,10 +47,24 @@ Go to [microsoft.github.io/skala](https://microsoft.github.io/skala) for a more | |||||||||
|
|
||||||||||
| ## Getting started (GPU support) | ||||||||||
|
|
||||||||||
| Install using Pip: | ||||||||||
|
|
||||||||||
|
|
||||||||||
| ### Conda(includes CUDA toolkit, Torch, CuPy) | ||||||||||
|
|
||||||||||
| CUDA 12 vs 13: pick the one your driver supports (check `nvidia-smi`). | ||||||||||
|
|
||||||||||
| ```bash | ||||||||||
| cu_version=12 #or 13 depending on your CUDA version | ||||||||||
| conda create -n skala -f environment-gpu_cu${cu_version}.yml | ||||||||||
| conda activate skala | ||||||||||
|
Comment on lines
+58
to
+59
|
||||||||||
| conda create -n skala -f environment-gpu_cu${cu_version}.yml | |
| conda activate skala | |
| conda env create -f environment-gpu_cu${cu_version}.yml | |
| conda activate skala-gpu |
Copilot
AI
Jan 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flag should be "--no-deps" (with a hyphen) instead of "--nodeps" (without a hyphen). Pip uses "--no-deps" as the correct flag name to skip dependency installation.
| pip install --nodeps "gpu4pyscf-cuda${cu_version}x>=1.0,<2" "gpu4pyscf-libxc-cuda${cu_version}x>=0.4,<1" microsoft-skala | |
| pip install --no-deps "gpu4pyscf-cuda${cu_version}x>=1.0,<2" "gpu4pyscf-libxc-cuda${cu_version}x>=0.4,<1" microsoft-skala |
Copilot
AI
Jan 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syntax error: mismatched quotes. The command has an opening double quote before "gpu4pyscf-cuda" but no closing quote. Additionally, there's text "cu${cu_version:0:2}x>=1.0,<2"" that appears to be malformed - likely missing a space or operator between "torch" and "cu${cu_version:0:2}x". The command should likely be: pip install torch cupy --extra-index-url "https://download.pytorch.org/whl/cu${cu_version}"
| pip install torch cu${cu_version:0:2}x>=1.0,<2" --extra-index-url "https://download.pytorch.org/whl/cu${cu_version}" | |
| pip install torch "cupy-cuda${cu_version:0:2}x>=1.0,<2" --extra-index-url "https://download.pytorch.org/whl/cu${cu_version}" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -37,12 +37,19 @@ If you prefer to install Skala from the source code, you can clone the repositor | |||||
| mamba activate skala | ||||||
| pip install -e . | ||||||
|
|
||||||
| where `environment-cpu.yml` can be replaced for `environment-gpu.yml` for gpu support (CUDA 12) with gpu4pyscf, in which case gpu4pyscf needs to be separately installed *after creating the environment* via | ||||||
| where `environment-cpu.yml` can be replaced for `environment-gpu_cu12.yml` (CUDA 12) or `environment-gpu_cu13.yml` (CUDA 13) for gpu support with gpu4pyscf, in which case gpu4pyscf needs to be separately installed *after creating the environment* via | ||||||
|
||||||
| where `environment-cpu.yml` can be replaced for `environment-gpu_cu12.yml` (CUDA 12) or `environment-gpu_cu13.yml` (CUDA 13) for gpu support with gpu4pyscf, in which case gpu4pyscf needs to be separately installed *after creating the environment* via | |
| where `environment-cpu.yml` can be replaced with `environment-gpu_cu12.yml` (CUDA 12) or `environment-gpu_cu13.yml` (CUDA 13) for gpu support with gpu4pyscf, in which case gpu4pyscf needs to be separately installed *after creating the environment* via |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: skala-gpu | ||
| channels: | ||
| - conda-forge | ||
| dependencies: | ||
| - ase | ||
| - azure-core | ||
| - azure-identity | ||
| - dftd3-python | ||
| - e3nn | ||
| - numpy | ||
| - opt_einsum_fx | ||
| - pyscf | ||
| - python | ||
| - pytorch-gpu | ||
| - qcelemental | ||
| - cuda-toolkit | ||
| - cupy | ||
| - cutensor | ||
| - cuda-version ==13.* | ||
| # Testing and development | ||
| - pre-commit | ||
| - pytest | ||
| - pytest-cov | ||
| - pip: | ||
| - huggingface_hub | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after "Conda". Should be "Conda (includes CUDA toolkit, Torch, CuPy)" to properly format the section heading.