Skip to content

Commit cec8c23

Browse files
Pin compiler at build-time, and limit range for run-time
1 parent b44a93a commit cec8c23

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

conda-recipe/meta.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{% set required_compiler_version = "2024.0" %}
2-
{% set excluded_compiler_version1 = "2024.0.1" %}
3-
{% set excluded_compiler_version2 = "2024.0.2" %}
4-
{% set excluded_compiler_version3 = "2024.0.3" %}
2+
{% set runtime_lower_bound = required_compiler_version %}
3+
{% set runtime_upper_bound = "2024.3.0a0" %}
54

65
package:
76
name: dpctl
@@ -19,8 +18,7 @@ build:
1918
requirements:
2019
build:
2120
- {{ compiler('cxx') }}
22-
- {{ compiler('dpcpp') }} >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }},!={{ excluded_compiler_version3 }} # [win]
23-
- {{ compiler('dpcpp') }} >={{ required_compiler_version }},!={{ excluded_compiler_version1 }},!={{ excluded_compiler_version2 }} # [linux]
21+
- {{ compiler('dpcpp') }} {{ required_compiler_version }}
2422
- sysroot_linux-64 >=2.28 # [linux]
2523
host:
2624
- setuptools
@@ -35,7 +33,7 @@ requirements:
3533
run:
3634
- python
3735
- {{ pin_compatible('numpy', min_pin='x.x', max_pin='x') }}
38-
- dpcpp-cpp-rt >={{ required_compiler_version }}
36+
- dpcpp-cpp-rt >={{ runtime_lower_bound }},<{{ runtime_upper_bound }}
3937
- level-zero # [linux]
4038

4139
test:

0 commit comments

Comments
 (0)