You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/dev-environment.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@ Steps with :bash:`sudo` access (e.g. on a local device):
27
27
* After installation, restart your shell.
28
28
#. Install the required Python versions:
29
29
* On some systems, additional packages may be needed to build Python versions. For example on Ubuntu: :bash:`sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev liblzma-dev lzma`.
30
-
* Install the Python versions with: :bash:`pyenv install 3.9 3.10 3.11 3.12`. The reason we're installing all these versions as opposed to just one, is so we can test against all supported Python versions.
31
-
#. Set the Python versions so they can be found: :bash:`pyenv local 3.9 3.10 3.11 3.12` (replace :bash:`local` with :bash:`global` when not using the virtualenv).
30
+
* Install the Python versions with: :bash:`pyenv install 3.9 3.10 3.11 3.12 3.13`. The reason we're installing all these versions as opposed to just one, is so we can test against all supported Python versions.
31
+
#. Set the Python versions so they can be found: :bash:`pyenv local 3.9 3.10 3.11 3.12 3.13` (replace :bash:`local` with :bash:`global` when not using the virtualenv).
32
32
#. Setup a local virtual environment in the folder: :bash:`pyenv virtualenv 3.11 kerneltuner` (or whatever environment name and Python version you prefer).
* Use :bash:`curl -sSL https://install.python-poetry.org | python3 -` to install Poetry.
@@ -78,7 +78,7 @@ Steps without :bash:`sudo` access (e.g. on a cluster):
78
78
* Verify that your development environment has no missing installs or updates with :bash:`poetry install --sync --dry-run --with test`.
79
79
#. Check if the environment is setup correctly by running :bash:`pytest`. All tests should pass, except if you're not on a GPU node, or one or more extras has been left out in the previous step, then these tests will skip gracefully.
80
80
#. Set Nox to use the correct backend and location:
81
-
* Run :bash:`conda -- create-settings-file` to automatically create a settings file.
81
+
* Run :bash:`nox -- create-settings-file` to automatically create a settings file.
82
82
* In this settings file :bash:`noxsettings.toml`, change the :bash:`venvbackend`:
83
83
* If you used Mamba in step 2, to :bash:`mamba`.
84
84
* If you used Miniconda or Anaconda in step 2, to :bash:`conda`.
Copy file name to clipboardExpand all lines: doc/source/optimization.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,12 @@ cache files, serving a value from the cache for the first time in the run also c
46
46
Only unique function evaluations are counted, so the second time a parameter configuration is selected by the strategy it is served from the
47
47
cache, but not counted as a unique function evaluation.
48
48
49
+
All optimization algorithms, except for brute_force, random_sample, and bayes_opt, allow the user to specify an initial guess or
50
+
starting point for the optimization, called ``x0``. This can be passed to the strategy using the ``strategy_options=`` dictionary with ``"x0"`` as key and
51
+
a list of values for each parameter in tune_params to note the starting point. For example, for a kernel that has parameters ``block_size_x`` (64, 128, 256)
52
+
and ``tile_size_x`` (1,2,3), one could pass ``strategy_options=dict(x0=[128,2])`` to ``tune_kernel()`` to make sure the strategy starts from
53
+
the configuration with ``block_size_x=128, tile_size_x=2``. The order in the ``x0`` list should match the order in the tunable parameters dictionary.
54
+
49
55
Below all the strategies are listed with their strategy-specific options that can be passed in a dictionary to the ``strategy_options=`` argument
0 commit comments