Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Jan 9, 2025
1 parent d4aef0e commit 17da205
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Futhark/CodeGen/ImpGen/GPU.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,10 @@ withAcc pat inputs lam = do
locksForInputs atomics inputs'

expCompiler :: ExpCompiler GPUMem HostEnv Imp.HostOp
-- We generate a simple kernel for itoa and replicate.
-- We generate a simple kernel for iota and replicate.
expCompiler (Pat [pe]) (BasicOp (Iota n x s et)) = do
x' <- toExp x
s' <- toExp s

sIota (patElemName pe) (pe64 n) x' s' et
expCompiler (Pat [pe]) (BasicOp (Replicate shape se))
| Acc {} <- patElemType pe = pure ()
Expand Down

0 comments on commit 17da205

Please sign in to comment.