Skip to content

Commit

Permalink
Keep from resetting warnings
Browse files Browse the repository at this point in the history
Signed-off by: David Rowenhorst <[email protected]>
  • Loading branch information
drowenhorst-nrl committed Dec 6, 2024
1 parent dd4c02b commit 0cc0088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyebsdindex/opencl/openclparam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0cc0088

Please sign in to comment.