Skip to content

Commit 9861bdf

Browse files
committed
Fix OpenCL runtime requirements.
1 parent b5da7b7 commit 9861bdf

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

pixi.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[workspace]
22
name = "loch"
33
channels = ["conda-forge", "openbiosim/label/dev"]
4-
# No Windows - pycuda/pyopencl only available on linux-64
5-
platforms = ["linux-64", "osx-arm64"]
4+
platforms = ["linux-64", "osx-arm64", "win-64"]
65

76
[dependencies]
87
python = ">=3.10"
@@ -12,6 +11,16 @@ pyopencl = "*"
1211

1312
[target.linux-64.dependencies]
1413
pycuda = "*"
14+
ocl-icd = "*"
15+
ocl-icd-system = "*"
16+
17+
[target.osx-arm64.dependencies]
18+
khronos-opencl-icd-loader = "*"
19+
ocl_cd_wrapper_apple = "*"
20+
21+
[target.windows-64.dependencies]
22+
pycuda = "*"
23+
khronos-opencl-icd-loader = "*"
1524

1625
[feature.test.dependencies]
1726
pytest = "*"

recipes/loch/recipe.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,18 @@ requirements:
2323
- loguru
2424
- pyopencl
2525
- python
26+
- if: linux
27+
then:
28+
- ocl-id
29+
- ocl-id-system
2630
- if: not osx
2731
then:
2832
- pycuda
33+
else:
34+
- ocl_icd_wrapper_apple
35+
- if: osx or win
36+
then:
37+
- khronos-opencl-icd-loader
2938

3039
about:
3140
homepage: https://github.com/openbiosim/loch

0 commit comments

Comments
 (0)