From 4d3508661f44821c9da9716529c8b86f4456f679 Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Fri, 3 Nov 2023 22:28:05 +0100 Subject: [PATCH 1/7] Add recipe for kernel-tuner --- recipes/kernel-tuner/meta.yaml | 66 ++++++++++++++++++++++++++++ recipes/python-constraint2/meta.yaml | 46 +++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 recipes/kernel-tuner/meta.yaml create mode 100644 recipes/python-constraint2/meta.yaml diff --git a/recipes/kernel-tuner/meta.yaml b/recipes/kernel-tuner/meta.yaml new file mode 100644 index 0000000000000..9d4b98f857a6c --- /dev/null +++ b/recipes/kernel-tuner/meta.yaml @@ -0,0 +1,66 @@ +{% set name = "kernel-tuner" %} +{% set version = "1.0.0b5" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/kernel_tuner/kernel_tuner-{{ version }}.tar.gz + sha256: 8cc4cb4e362cd0c35db1057f55b316c3c5365a64338ca66acc7283e6604e6315 + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - pip + - poetry-core >=1.7.0 + - python >=3.8,<3.12 + - setuptools >=67.7.2 + run: + - jsonschema + - numpy >=1.22.2,<2 + - python-constraint2 >=2.0.0b3,<3 + - pandas >=2.0.0,<3 + - python >=3.8,<3.12 + - scikit-learn >=1.0.2,<2 + - scipy >=1.10.1,<2 + - xmltodict + +test: + commands: + - pip check + imports: + - kernel_tuner + requires: + - pip + +about: + home: https://github.com/benvanwerkhoven/kernel_tuner + summary: 'An easy to use CUDA/OpenCL kernel tuner in Python' + description: | + Kernel Tuner simplifies the software development of optimized and + auto-tuned GPU programs, by enabling Python-based unit testing of GPU code + and making it easy to develop scripts for auto-tuning GPU kernels. This + also means no extensive changes and no new dependencies are required in the + kernel code. The kernels can still be compiled and used as normal from any + host programming language. + + Kernel Tuner provides a comprehensive solution for auto-tuning GPU + programs, supporting auto-tuning of user-defined parameters in both host + and device code, supporting output verification of all benchmarked kernels + during tuning, as well as many optimization strategies to speed up the + tuning process. + license: Apache-2.0 + license_file: LICENSE + doc_url: https://kerneltuner.github.io + +extra: + recipe-maintainers: + - benvanwerkhoven + - bouweandela + - fjwillemsen + - isazi diff --git a/recipes/python-constraint2/meta.yaml b/recipes/python-constraint2/meta.yaml new file mode 100644 index 0000000000000..252cb521cec36 --- /dev/null +++ b/recipes/python-constraint2/meta.yaml @@ -0,0 +1,46 @@ +{% set name = "python-constraint2" %} +{% set version = "2.0.0b3" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/python_constraint2-{{ version }}.tar.gz + sha256: ab80ef97b96ff76ee71d965f130a427a89e0f80a27c09c0b76686a028fffb4e9 + +build: + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + build: + - {{ compiler('c') }} + host: + - cython >=3.0.2 + - pip + - poetry-core >=1.7.0 + - python >=3.8,<3.12 + - setuptools >=67.7.2 + run: + - python >=3.8,<3.12 + +test: + commands: + - pip check + imports: + - constraint + requires: + - pip + +about: + home: https://github.com/python-constraint/python-constraint + summary: A module for efficiently solving CSPs (Constraint Solving Problems) over finite domains. + license: BSD-2-Clause + license_file: LICENSE + doc_url: http://python-constraint.github.io/python-constraint + +extra: + recipe-maintainers: + - bouweandela + - fjwillemsen From 220b8d2f181507a935c43c248bbc07ce3ad119d4 Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Fri, 3 Nov 2023 22:38:19 +0100 Subject: [PATCH 2/7] Remove version constraint from python requirement --- recipes/python-constraint2/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/python-constraint2/meta.yaml b/recipes/python-constraint2/meta.yaml index 252cb521cec36..24fde765ffc16 100644 --- a/recipes/python-constraint2/meta.yaml +++ b/recipes/python-constraint2/meta.yaml @@ -12,6 +12,7 @@ source: build: script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 + skip: True # [py>311] requirements: build: @@ -20,10 +21,10 @@ requirements: - cython >=3.0.2 - pip - poetry-core >=1.7.0 - - python >=3.8,<3.12 + - python - setuptools >=67.7.2 run: - - python >=3.8,<3.12 + - python test: commands: From 56e6f4326d67264ad1cd5751f0e3bc9b1ed96a7a Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Mon, 6 Nov 2023 14:00:21 +0100 Subject: [PATCH 3/7] Update home URL --- recipes/kernel-tuner/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/kernel-tuner/meta.yaml b/recipes/kernel-tuner/meta.yaml index 9d4b98f857a6c..60253dbae8db8 100644 --- a/recipes/kernel-tuner/meta.yaml +++ b/recipes/kernel-tuner/meta.yaml @@ -39,7 +39,7 @@ test: - pip about: - home: https://github.com/benvanwerkhoven/kernel_tuner + home: https://github.com/kerneltuner/kernel_tuner summary: 'An easy to use CUDA/OpenCL kernel tuner in Python' description: | Kernel Tuner simplifies the software development of optimized and From 580d294703d49ccf4354ed61e7983903152f2e47 Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Wed, 8 Nov 2023 16:19:55 +0100 Subject: [PATCH 4/7] Add tests --- recipes/kernel-tuner/meta.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/recipes/kernel-tuner/meta.yaml b/recipes/kernel-tuner/meta.yaml index 60253dbae8db8..3e4eaf0a26f73 100644 --- a/recipes/kernel-tuner/meta.yaml +++ b/recipes/kernel-tuner/meta.yaml @@ -1,5 +1,5 @@ {% set name = "kernel-tuner" %} -{% set version = "1.0.0b5" %} +{% set version = "1.0.0b6" %} package: name: {{ name|lower }} @@ -7,7 +7,7 @@ package: source: url: https://pypi.io/packages/source/{{ name[0] }}/kernel_tuner/kernel_tuner-{{ version }}.tar.gz - sha256: 8cc4cb4e362cd0c35db1057f55b316c3c5365a64338ca66acc7283e6604e6315 + sha256: 8ec7cac41f1eec84e54bf2452008c905fad90279949e477355fb9eda054b1beb build: noarch: python @@ -33,10 +33,20 @@ requirements: test: commands: - pip check + - pytest imports: - kernel_tuner requires: + - mock + - pep440 - pip + - pytest >=7.4 + - pytest-cov + - tomli + source_files: + - pyproject.toml + - test + - README.rst about: home: https://github.com/kerneltuner/kernel_tuner From 062b828f7e17c2542a5afdcf12f6b293212a782c Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Wed, 8 Nov 2023 17:26:10 +0100 Subject: [PATCH 5/7] Build kernel-tuner only for Linux and OSX --- recipes/kernel-tuner/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/kernel-tuner/meta.yaml b/recipes/kernel-tuner/meta.yaml index 3e4eaf0a26f73..e1757e5a07abf 100644 --- a/recipes/kernel-tuner/meta.yaml +++ b/recipes/kernel-tuner/meta.yaml @@ -10,22 +10,22 @@ source: sha256: 8ec7cac41f1eec84e54bf2452008c905fad90279949e477355fb9eda054b1beb build: - noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 + skip: True # [win or py>311] requirements: host: - pip - poetry-core >=1.7.0 - - python >=3.8,<3.12 + - python - setuptools >=67.7.2 run: - jsonschema - numpy >=1.22.2,<2 - python-constraint2 >=2.0.0b3,<3 - pandas >=2.0.0,<3 - - python >=3.8,<3.12 + - python - scikit-learn >=1.0.2,<2 - scipy >=1.10.1,<2 - xmltodict From a24c0abfbd599c472af9f07f0b9ebc0aef5b9e75 Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Thu, 9 Nov 2023 16:44:23 +0100 Subject: [PATCH 6/7] Add tests for python-constraint2 --- recipes/python-constraint2/meta.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/recipes/python-constraint2/meta.yaml b/recipes/python-constraint2/meta.yaml index 24fde765ffc16..95108a45430e9 100644 --- a/recipes/python-constraint2/meta.yaml +++ b/recipes/python-constraint2/meta.yaml @@ -1,5 +1,5 @@ {% set name = "python-constraint2" %} -{% set version = "2.0.0b3" %} +{% set version = "2.0.0b4" %} package: name: {{ name|lower }} @@ -7,7 +7,7 @@ package: source: url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/python_constraint2-{{ version }}.tar.gz - sha256: ab80ef97b96ff76ee71d965f130a427a89e0f80a27c09c0b76686a028fffb4e9 + sha256: 2c8dd055f63b91ccd93d3145411648030a705306d18a78c3e8f739109c2e889d build: script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation @@ -29,10 +29,19 @@ requirements: test: commands: - pip check + - pytest --ignore tests/test_constraint.py --ignore tests/test_compilation.py imports: - constraint requires: + - pep440 - pip + - pytest + - pytest-cov + - tomli + source_files: + - pyproject.toml + - tests + - README.rst about: home: https://github.com/python-constraint/python-constraint From 52be0d105aac6eb456457d669e92b78a04f3e4fb Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Wed, 6 Dec 2023 09:25:42 +0100 Subject: [PATCH 7/7] Make kernel-tuner noarch: python --- recipes/kernel-tuner/meta.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/kernel-tuner/meta.yaml b/recipes/kernel-tuner/meta.yaml index e1757e5a07abf..1a92b8c422f7d 100644 --- a/recipes/kernel-tuner/meta.yaml +++ b/recipes/kernel-tuner/meta.yaml @@ -12,20 +12,21 @@ source: build: script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 - skip: True # [win or py>311] + noarch: python requirements: host: - pip - poetry-core >=1.7.0 - - python + - python >=3.8,<3.12 - setuptools >=67.7.2 run: + - __unix - jsonschema - numpy >=1.22.2,<2 - python-constraint2 >=2.0.0b3,<3 - pandas >=2.0.0,<3 - - python + - python >=3.8,<3.12 - scikit-learn >=1.0.2,<2 - scipy >=1.10.1,<2 - xmltodict