Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
CUDA backend fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 10, 2013
1 parent 13efd6c commit 911f5c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hedge/backends/cuda/execute.py
Expand Up @@ -145,7 +145,8 @@ def print_error_structure(discr, computed, reference, diff,
# exec mapper -----------------------------------------------------------------
class ExecutionMapper(ExecutionMapperBase):
def exec_assign(self, insn):
return [(insn.name, self(insn.expr))], []
return [(name, self(expr))
for name, expr in zip(insn.names, insn.exprs)], []

def exec_vector_expr_assign(self, insn):
if self.executor.discr.instrumented:
Expand Down Expand Up @@ -647,9 +648,9 @@ def prepare_optemplate_stage2(mesh, optemplate, debug_flags=set(),
def dump_optemplate(name, optemplate):
if "dump_optemplate_stages" in debug_flags:
from hedge.tools import open_unique_debug_file
from hedge.optemplate import pretty_print_optemplate
from hedge.optemplate import pretty
open_unique_debug_file("%02d-%s" % (stage[0], name), ".txt").write(
pretty_print_optemplate(optemplate))
pretty(optemplate))
stage[0] += 1

from hedge.optemplate.mappers import BoundaryCombiner
Expand Down

0 comments on commit 911f5c2

Please sign in to comment.