From 3d7f5a3a81a1e8d8b09bd6765cf4acc96940b749 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 6 Jun 2016 16:08:33 -0500 Subject: [PATCH] Fix: Generate dtypes with targets in atomic codegen --- loopy/target/opencl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/loopy/target/opencl.py b/loopy/target/opencl.py index e06696614..5ebcc98c8 100644 --- a/loopy/target/opencl.py +++ b/loopy/target/opencl.py @@ -553,8 +553,10 @@ class OpenCLCASTBuilder(CASTBuilder): cast_str = "(%s %s *) " % (var_kind, ctype) return Block([ - POD(self, NumpyType(lhs_dtype.dtype), old_val_var), - POD(self, NumpyType(lhs_dtype.dtype), new_val_var), + POD(self, NumpyType(lhs_dtype.dtype, target=self.target), + old_val_var), + POD(self, NumpyType(lhs_dtype.dtype, target=self.target), + new_val_var), DoWhile( "%(func_name)s(" "%(cast_str)s&(%(lhs_expr)s), " -- GitLab