From 5f05fbf1030b2d9c0a14247a1fb10c8f9d684192 Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 3 Apr 2016 17:39:33 +0200 Subject: [PATCH] Prevent NV OpenCL runtime to cache kernels to ~/.nv by using an undocumented environment variable CUDA_CACHE_DISABLE --- src/oclHashcat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 8fa81cec5..689fc27cc 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -5324,6 +5324,9 @@ int main (int argc, char **argv) if (getenv ("GPU_USE_SYNC_OBJECTS") == NULL) putenv ((char *) "GPU_USE_SYNC_OBJECTS=1"); + if (getenv ("CUDA_CACHE_DISABLE") == NULL) + putenv ((char *) "CUDA_CACHE_DISABLE=1"); + /** * Real init */