From 0cc0088deb6e1d9a075bddc4b1b43ef8048c772e Mon Sep 17 00:00:00 2001 From: David Rowenhorst Date: Fri, 6 Dec 2024 17:06:55 -0500 Subject: [PATCH] Keep from resetting warnings Signed-off by: David Rowenhorst --- pyebsdindex/opencl/openclparam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyebsdindex/opencl/openclparam.py b/pyebsdindex/opencl/openclparam.py index 3716815..7d1be91 100644 --- a/pyebsdindex/opencl/openclparam.py +++ b/pyebsdindex/opencl/openclparam.py @@ -107,7 +107,7 @@ def get_context(self, gpu_id=None, kfile = 'clkernels.cl' ): kernel_location = path.dirname(__file__) warnings.filterwarnings("ignore") self.prg = cl.Program(self.ctx,open(path.join(kernel_location,kfile)).read()).build(options=['-cl-std=CL1.2', '-w']) - warnings.resetwarnings() + #warnings.resetwarnings() #print('ctx', self.gpu_id) return self.ctx def get_queue(self, gpu_id=None):