Skip to content

Commit 21f0f49

Browse files
committed
Add note regarding OpenCL activation.
1 parent 6780cd4 commit 21f0f49

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ pixi shell
4848
pip install -e .
4949
```
5050

51+
> [!Note]
52+
> Pixi does not run conda post-link scripts, so the `ocl-icd-system`
53+
> symlink needed for OpenCL won't be created automatically. Add the
54+
> following to your `pixi.sh` activation script to fix this:
55+
>
56+
> ```bash
57+
> # Create OpenCL ICD symlink (pixi doesn't run post-link scripts)
58+
> if [ -d /etc/OpenCL/vendors ] && [ ! -e "${CONDA_PREFIX}/etc/OpenCL/vendors/ocl-icd-system" ]; then
59+
> ln -s /etc/OpenCL/vendors "${CONDA_PREFIX}/etc/OpenCL/vendors/ocl-icd-system" 2>/dev/null || true
60+
> fi
61+
> ```
62+
5163
### Installing from source (full OpenBioSim development)
5264
5365
If you are developing across the full OpenBioSim stack, first install

pixi.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ ruff = "*"
2727
default = []
2828
test = ["test"]
2929
dev = ["test", "lint"]
30+
31+
[activation]
32+
scripts = ["pixi.sh"]

0 commit comments

Comments
 (0)