From ed8384d4bc1accfa53cc656f69052dde5530b81c Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Wed, 21 Nov 2018 12:03:47 +0100 Subject: [PATCH] OpenCL Runtime: Disable auto-vectorization for Intel OpenCL runtime to workaround hanging JiT since version 18.1.0.013 --- docs/changes.txt | 1 + src/shared.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 7862e647c..877aede7a 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -68,6 +68,7 @@ - Parameter: Rename --nvidia-spin-damp to --spin-damp (now accessible for all devices) - Pidfile: Treat a corrupted pidfile like a not existing pidfile - OpenCL Device: Do a real query on OpenCL local memory type instead of just assuming it +- OpenCL Runtime: Disable auto-vectorization for Intel OpenCL runtime to workaround hanging JiT since version 18.1.0.013 - Tests: Added hash-mode 11700 (Streebog-256) - Tests: Added hash-mode 11750 (HMAC-Streebog-256 (key = $pass), big-endian) - Tests: Added hash-mode 11760 (HMAC-Streebog-256 (key = $salt), big-endian) diff --git a/src/shared.c b/src/shared.c index e6123d956..938c4a6cf 100644 --- a/src/shared.c +++ b/src/shared.c @@ -414,6 +414,9 @@ void setup_environment_variables () if (getenv ("POCL_KERNEL_CACHE") == NULL) putenv ((char *) "POCL_KERNEL_CACHE=0"); + if (getenv ("CL_CONFIG_USE_VECTORIZER") == NULL) + putenv ((char *) "CL_CONFIG_USE_VECTORIZER=False"); + #if defined (__CYGWIN__) cygwin_internal (CW_SYNC_WINENV); #endif