Skip to content

Commit

Permalink
Fix PyOpenCL local memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Aug 4, 2023
1 parent 0539183 commit a721bdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Futhark/CodeGen/Backends/PyOpenCL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ launchKernel kernel_name safety kernel_dims workgroup_dims local_memory args = d
]
Py.stm . Exp $
Py.simpleCall (T.unpack $ kernel_name' <> ".set_args") $
[local_memory] ++ failure_args ++ args'
[Py.simpleCall "cl.LocalMemory" [Py.simpleCall "max" [local_memory, Integer 1]]]
++ failure_args
++ args'
Py.stm . Exp $
Py.simpleCall
"cl.enqueue_nd_range_kernel"
Expand Down

0 comments on commit a721bdf

Please sign in to comment.