Commit Graph

17 Commits

Author SHA1 Message Date
Fabian Zwolinski 9553dd1098 documentation: compiler cache programmers guide
Related-To: NEO-9416
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2024-04-22 15:44:49 +02:00
Fabian Zwolinski d7d577ba48 feature: enable cl_cache by default on Windows
Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2023-10-03 16:57:10 +02:00
Compute-Runtime-Validation 65337482ff Revert "feature: enable cl_cache by default on Windows"
This reverts commit e16220dc9f.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2023-09-26 15:06:34 +02:00
Fabian Zwolinski e16220dc9f feature: enable cl_cache by default on Windows
Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2023-09-25 14:40:43 +02:00
Fabian Zwolinski e96dd344c3 feature: add new environment variables for compiler cache on Windows
Changes:
- replaced registry keys with environment variables
for cl_cache in OCL
- added compiler cache helpers
- implemented support for new env vars on Windows
- added tests

New env vars mechanism works as follows:
If `PERSISTENT_CACHE` is set,
driver checks if `NEO_CACHE_DIR` is set.
If `NEO_CACHE_DIR` is not set,
driver uses `%LocalAppData%\NEO\neo_compiler_cache`
as `cl_cache` destination folder.
If `NEO_CACHE_DIR` is not set and `%LocalAppData%`
path could not be obtained,
compiler cache is disabled.

In the current Windows implementation,
special characters in the folder path are not supported.

Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2023-09-21 12:40:48 +02:00
Kacper Kasper 269cba1659 feature: enable cl_cache by default on Linux
Resolves: NEO-4262

Signed-off-by: Kacper Kasper <kacper.k.kasper@intel.com>
2023-09-01 15:13:13 +02:00
Compute-Runtime-Validation 377d886c77 Revert "feature: enable cl_cache by default on Linux"
This reverts commit eeb8a5e1fb.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2023-09-01 04:58:52 +02:00
Kacper Kasper eeb8a5e1fb feature: enable cl_cache by default on Linux
Resolves: NEO-4262

Signed-off-by: Kacper Kasper <kacper.k.kasper@intel.com>
2023-08-31 15:52:11 +02:00
Kacper Kasper ba4867c3d0 fix: compiler cache file extension and path creation
* When env variables did not have trailing slash, directory creation
could fail.
* If .cache in $HOME did not exist cache would have been disabled.

Signed-off-by: Kacper Kasper <kacper.k.kasper@intel.com>
2023-08-31 13:44:19 +02:00
Fabian Zwolinski 1369882b3c fix: ocloc - regenerate genHash after compilation
This PR ensures that the genHash will be the same
whether the cl_cache is re-used or just created.
So it has to be regenerated after compilation
to make sure it's created with non NULL irBinary.

It also allows to cache debugDataBinary.

Minor: Rename NEO_PERSISTENT_CACHE -> NEO_CACHE_PERSISTENT in FAQ,
since this version is used in code.

Related-To: NEO-8288, NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2023-08-28 13:11:49 +02:00
Diedrich, Kamil 5a4a2ab8ab feature: Add new environment variables for compiler cache
This patch add new environment variables to control compiler cache.
Works as follow: If persistent cache is set driver check if NEO_CACHE_DIR
is set. If not then driver checks XDG_CACHE_HOME - If exists
then driver create neo_compiler_cache folder, if
not then driver checks HOME directory. If each NEO_CACHE_DIR,
XDG_CACHE_HOME and HOME are not set then compiler cache is disabled.
Current support is for Linux only.

Signed-off-by: Diedrich, Kamil <kamil.diedrich@intel.com>

Related-To: NEO-4262
2023-05-12 10:21:27 +02:00
Cetnerowski, Adam 58b1fbb2d1 Documentation: FAQ update
Signed-off-by: Cetnerowski, Adam <adam.cetnerowski@intel.com>
2022-07-26 13:56:50 +02:00
lgotszal f501cd79e2 Add copyright headers to markdown files
Remove two redundant markdown files

Related-to: IGC-4296

Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-06-28 16:31:27 +02:00
Filip Hazubski 2be1b36422 Update Supported Platforms in README.md
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-11-24 09:28:46 +01:00
Adam Cetnerowski dad23e25a2 Documentation: Update OpenCL version
Change-Id: Id818444aa1b1e936fab10d5840040a4b1587d56d
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-06-01 09:51:51 +02:00
Adam Cetnerowski 9f1f957fe5 Documentation refactoring [3/n]
- Fold LIMITATIONS into FAQ

Change-Id: I33214b7600e984a153513e05aa84cccff3126b3b
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-03-04 12:12:29 +01:00
Adam Cetnerowski efa0631967 Documentation refactoring [2/n]
- Update contributing guidelines
- Split and cleanup FAQ
- Cleanup README

Change-Id: Iae595fdff51e02f8ec4a3f72e4c4b45eb8d0c061
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-02-28 14:40:54 +01:00