From cce02f018422eb050e2a737afacc10d72f78e20e Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 19 Oct 2022 00:10:12 +0200 Subject: [PATCH] docs: Add documentation for Rusticl's env variables Signed-off-by: Karol Herbst Reviewed-by: Alyssa Rosenzweig Part-of: --- docs/envvars.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/envvars.rst b/docs/envvars.rst index 07899d69e49..a1d09e4e67b 100644 --- a/docs/envvars.rst +++ b/docs/envvars.rst @@ -548,6 +548,23 @@ Clover environment variables appended after the options set by the OpenCL program in ``clLinkProgram``. +Rusticl environment variables +----------------------------- + +:envvar:`RUSTICL_DEVICE_TYPE` + allows to overwrite the device type of devices. Possible values are + `accelerator`, `cpu`, `custom` and `gpu` +:envvar:`RUSTICL_CL_VERSION` + overwrites the auto detected OpenCL version of all devices. Specified as + `major.minor`. +:envvar:`RUSTICL_ENABLE` + a comma-separated list of drivers to enable CL on. An optional list of + comma-separated integers can be passed per driver to specify which devices + to enable. Examples: + + - `RUSTICL_ENABLE=iris` (enables all iris devices) + - `RUSTICL_ENABLE=iris:1,radeonsi:0,2` (enables second iris and first + and third radeonsi device) Nine frontend environment variables -----------------------------------