| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Futhark.CodeGen.ImpCode.OpenCL
Description
Imperative code with an OpenCL component.
Apart from ordinary imperative code, this also carries around an OpenCL program as a string, as well as a list of kernels defined by the OpenCL program.
The imperative code has been augmented with a LaunchKernel
operation that allows one to execute an OpenCL kernel.
Synopsis
- data Program = Program {}
- data KernelTarget
- module Futhark.CodeGen.ImpCode.Kernels
Documentation
A program calling OpenCL kernels.
Constructors
| Program | |
Fields
| |
data KernelTarget Source #
The target platform when compiling imperative code to a Program
Constructors
| TargetOpenCL | |
| TargetCUDA | |
| TargetHIP |
Instances
| Eq KernelTarget Source # | |
Defined in Futhark.CodeGen.ImpCode.OpenCL | |