From ee2a29bb1df894c25cf04db83f68d154d127433a Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Keck <Jean-Baptiste.Keck@imag.fr>
Date: Sun, 19 Apr 2020 14:44:00 +0200
Subject: [PATCH] revert changes in opencl_env

---
 hysop/backend/device/opencl/opencl_env.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hysop/backend/device/opencl/opencl_env.py b/hysop/backend/device/opencl/opencl_env.py
index f85f5a7e9..ed84e0f68 100644
--- a/hysop/backend/device/opencl/opencl_env.py
+++ b/hysop/backend/device/opencl/opencl_env.py
@@ -566,14 +566,13 @@ Dumped OpenCL Kernel '{}'
         if not os.path.exists(dump_folder) and (main_rank == 0):
             os.makedirs(dump_folder)
 
-        if DEBUG and True:
+        if DEBUG:
             # dump kernel source while in debug mode
             dump_file=dump_folder+'/rk{}_{}_dump.cl'.format(
                 main_rank, kernel_name)
             print 'Dumping kernel src at \'{}\'.'.format(dump_file)
             with open(dump_file, 'w+') as f:
                 f.write(gpu_src)
-            build_opts += ['-g', '-s {}'.format(dump_file)]
         s_build_opts = ' '.join(build_opts)
 
         if VERBOSE:
-- 
GitLab