Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrudPrimrose committed Nov 9, 2024
1 parent df8e891 commit 199e003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dace/codegen/targets/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def allocate_array(self, sdfg: SDFG, cfg: ControlFlowRegion, dfg: StateSubgraphV
if not declared:
declaration_stream.write(f'{nodedesc.dtype.ctype} *{name};\n', cfg, state_id, node)
allocation_stream.write(
"%s = static_cast<{nodedesc.dtype.ctype}*>(std::aligned_alloc(64, %s * sizeof(%s)));\n" % (alloc_name, cpp.sym2cpp(arrsize), nodedesc.dtype.ctype), cfg,
"%s = static_cast<%s*>(std::aligned_alloc(64, %s * sizeof(%s)));\n" % (nodedesc.dtype.ctype, alloc_name, cpp.sym2cpp(arrsize), nodedesc.dtype.ctype), cfg,
state_id, node)
define_var(name, DefinedType.Pointer, ctypedef)

Expand Down
1 change: 1 addition & 0 deletions dace/runtime/include/dace/dace.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <numeric>
#include <tuple>
#include <cstring>
#include <cstdlib>

// The order in which these are included matters - sorting them
// alphabetically causes compilation to fail.
Expand Down

0 comments on commit 199e003

Please sign in to comment.