Skip to content

Commit c2a4e42

Browse files
committed
Squashed commit of the following:
commit 68d9423 Author: Edoardo Paone <[email protected]> Date: Fri Jun 27 14:24:06 2025 +0200 support dynamic memlet on scalar
1 parent 5566fc2 commit c2a4e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dace/codegen/targets/cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def copy_expr(
137137

138138
elif def_type in [DefinedType.Scalar, DefinedType.Stream, DefinedType.Object]:
139139

140-
if add_offset:
140+
if add_offset and not memlet.dynamic:
141141
raise TypeError("Tried to offset address of scalar {}: {}".format(data_name, offset_cppstr))
142142

143143
if def_type == DefinedType.Scalar:

0 commit comments

Comments
 (0)