Skip to content

Commit 85a4f81

Browse files
add support for compiling lambda constraints
2 parents 13f61ec + 0de0530 commit 85a4f81

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3359
-1163
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
poetry.lock
33
noxenv.txt
44
noxsettings.toml
5+
hyperparamtuning/
6+
*.prof
57

68
### Python ###
79
*.pyc
@@ -16,6 +18,8 @@ push_to_pypi.sh
1618
.nfs*
1719
*.log
1820
*.json
21+
!kernel_tuner/schema/T1/1.0.0/input-schema.json
22+
!test/test_T1_input.json
1923
*.csv
2024
.cache
2125
*.ipynb_checkpoints

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## Unreleased
6+
<!-- ## [1.1.0] - 2025 ?? -->
7+
- Additional improvements to search space construction
8+
- changed HIP python bindings from pyhip-interface to the official hip-python
9+
- Added Python 3.13 and experimental 3.14 support
10+
- Dropped Python 3.8 and 3.9 support (due to incompatibility with newer scipy versions)
611

712
## [1.0.0] - 2024-04-04
813
- HIP backend to support tuning HIP kernels on AMD GPUs
914
- Experimental features for mixed-precision and accuracy tuning
1015
- Experimental features for OpenACC tuning
11-
- Major speedup due to new parser and using revamped python-constraint for searchspace building
16+
- Major speedup due to new parser and using revamped python-constraint for search space construction
1217
- Implemented ability to use `PySMT` and `ATF` for searchspace building
1318
- Added Poetry for dependency and build management
1419
- Switched from `setup.py` and `setup.cfg` to `pyproject.toml` for centralized metadata, added relevant tests

INSTALL.rst

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Linux users could type the following to download and install Python 3 using Mini
2020
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
2121
bash Miniconda3-latest-Linux-x86_64.sh
2222
23-
You are of course also free to use your own Python installation, and the Kernel Tuner is developed to be fully compatible with Python 3.9 and newer.
23+
You are of course also free to use your own Python installation, and the Kernel Tuner is developed to be fully compatible with Python 3.10 and newer.
2424

2525
Installing Python Packages
2626
--------------------------
@@ -124,31 +124,26 @@ Or you could install Kernel Tuner and PyOpenCL together if you haven't done so a
124124
125125
If this fails, please see the PyOpenCL installation guide (https://wiki.tiker.net/PyOpenCL/Installation)
126126

127-
HIP and PyHIP
128-
-------------
127+
HIP and HIP Python
128+
------------------
129129

130-
Before we can install PyHIP, you'll need to have the HIP runtime and compiler installed on your system.
130+
Before we can install HIP Python, you'll need to have the HIP runtime and compiler installed on your system.
131131
The HIP compiler is included as part of the ROCm software stack. Here is AMD's installation guide:
132132

133133
* `ROCm Documentation: HIP Installation Guide <https://docs.amd.com/bundle/HIP-Installation-Guide-v5.3/page/Introduction_to_HIP_Installation_Guide.html>`__
134134

135-
After you've installed HIP, you will need to install PyHIP. Run the following command in your terminal to install:
135+
After you've installed HIP, you will need to install HIP Python. Run the following command in your terminal to install:
136136

137-
.. code-block:: bash
138-
139-
pip install pyhip-interface
137+
First identify the first three digits of the version number of your ROCm™ installation.
138+
Then install the HIP Python package(s) as follows:
140139

141-
Alternatively, you can install PyHIP from the source code. First, clone the repository from GitHub:
142-
143-
.. code-block:: bash
140+
.. code-block:: shell
144141
145-
git clone https://github.com/jatinx/PyHIP
146-
147-
Then, navigate to the repository directory and run the following command to install:
148-
149-
.. code-block:: bash
142+
python3 -m pip install -i https://test.pypi.org/simple hip-python~=$rocm_version
143+
# if you want to install the CUDA Python interoperability package too, run:
144+
python3 -m pip install -i https://test.pypi.org/simple hip-python-as-cuda~=$rocm_version
150145
151-
python setup.py install
146+
For other installation options check `hip-python on GitHub <https://github.com/ROCm/hip-python>`_
152147

153148
Installing the git version
154149
--------------------------
@@ -171,7 +166,7 @@ The runtime dependencies are:
171166

172167
- `cuda`: install pycuda along with kernel_tuner
173168
- `opencl`: install pycuda along with kernel_tuner
174-
- `hip`: install pyhip along with kernel_tuner
169+
- `hip`: install HIP Python along with kernel_tuner
175170
- `tutorial`: install packages required to run the guides
176171

177172
These can be installed by appending e.g. ``-E cuda -E opencl -E hip``.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ What Kernel Tuner does:
3232

3333
## Installation
3434

35-
- First, make sure you have your [CUDA](https://kerneltuner.github.io/kernel_tuner/stable/install.html#cuda-and-pycuda), [OpenCL](https://kerneltuner.github.io/kernel_tuner/stable/install.html#opencl-and-pyopencl), or [HIP](https://kerneltuner.github.io/kernel_tuner/stable/install.html#hip-and-pyhipl) compiler installed
35+
- First, make sure you have your [CUDA](https://kerneltuner.github.io/kernel_tuner/stable/install.html#cuda-and-pycuda), [OpenCL](https://kerneltuner.github.io/kernel_tuner/stable/install.html#opencl-and-pyopencl), or [HIP](https://kerneltuner.github.io/kernel_tuner/stable/install.html#hip-and-hip-python) compiler installed
3636
- Then type: `pip install kernel_tuner[cuda]`, `pip install kernel_tuner[opencl]`, or `pip install kernel_tuner[hip]`
3737
- or why not all of them: `pip install kernel_tuner[cuda,opencl,hip]`
3838

0 commit comments

Comments
 (0)