packages feed

futhark-0.22.2: src/Futhark/CLI/OpenCL.hs

-- | @futhark opencl@
module Futhark.CLI.OpenCL (main) where

import Futhark.Actions (compileOpenCLAction)
import Futhark.Compiler.CLI
import Futhark.Passes (gpuPipeline)

-- | Run @futhark opencl@
main :: String -> [String] -> IO ()
main = compilerMain
  ()
  []
  "Compile OpenCL"
  "Generate OpenCL/C code from optimised Futhark program."
  gpuPipeline
  $ \fcfg () mode outpath prog ->
    actionProcedure (compileOpenCLAction fcfg mode outpath) prog