Skip to content
Snippets Groups Projects
Commit ee2a29bb authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

revert changes in opencl_env

parent acc456c1
No related branches found
No related tags found
1 merge request!16MPI operators
Pipeline #41863 failed
...@@ -566,14 +566,13 @@ Dumped OpenCL Kernel '{}' ...@@ -566,14 +566,13 @@ Dumped OpenCL Kernel '{}'
if not os.path.exists(dump_folder) and (main_rank == 0): if not os.path.exists(dump_folder) and (main_rank == 0):
os.makedirs(dump_folder) os.makedirs(dump_folder)
if DEBUG and True: if DEBUG:
# dump kernel source while in debug mode # dump kernel source while in debug mode
dump_file=dump_folder+'/rk{}_{}_dump.cl'.format( dump_file=dump_folder+'/rk{}_{}_dump.cl'.format(
main_rank, kernel_name) main_rank, kernel_name)
print 'Dumping kernel src at \'{}\'.'.format(dump_file) print 'Dumping kernel src at \'{}\'.'.format(dump_file)
with open(dump_file, 'w+') as f: with open(dump_file, 'w+') as f:
f.write(gpu_src) f.write(gpu_src)
build_opts += ['-g', '-s {}'.format(dump_file)]
s_build_opts = ' '.join(build_opts) s_build_opts = ' '.join(build_opts)
if VERBOSE: if VERBOSE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment