GPU Module

Functions and values

Function or value Description

applyFilter clContext localWorkSize

Full Usage: applyFilter clContext localWorkSize

Parameters:
    clContext : ClContext - The representation of OpenCL context
    localWorkSize : int - The size of the local work group

Returns: float32[,] -> MyImage -> MyImage A function that takes a filter kernel and an image, and asynchronously applies the filter to the image using GPU

Applies a filter to the specified image using GPU

clContext : ClContext

The representation of OpenCL context

localWorkSize : int

The size of the local work group

Returns: float32[,] -> MyImage -> MyImage

A function that takes a filter kernel and an image, and asynchronously applies the filter to the image using GPU

applyFilterGPUKernel clContext localWorkSize

Full Usage: applyFilterGPUKernel clContext localWorkSize

Parameters:
    clContext : ClContext - The representation of OpenCL context
    localWorkSize : int - The size of the local work group

Returns: MailboxProcessor<Msg> -> ClArray<float32> -> int -> ClArray<byte> -> int -> int -> ClArray<byte> -> ClArray<byte> A function that takes a command queue, filter parameters, image data, and result array as inputs and asynchronously applies the filter kernel to the image using the GPU. The resulting image data is stored in the result array

Creates compiled GPU filter kernel

clContext : ClContext

The representation of OpenCL context

localWorkSize : int

The size of the local work group

Returns: MailboxProcessor<Msg> -> ClArray<float32> -> int -> ClArray<byte> -> int -> int -> ClArray<byte> -> ClArray<byte>

A function that takes a command queue, filter parameters, image data, and result array as inputs and asynchronously applies the filter kernel to the image using the GPU. The resulting image data is stored in the result array

flip clContext localWorkSize

Full Usage: flip clContext localWorkSize

Parameters:
    clContext : ClContext - The representation of OpenCL context
    localWorkSize : int - The size of the local work group

Returns: bool -> MyImage -> MyImage A function that takes a boolean value indicating the flip direction, and an image, and asynchronously flips the image using the GPU

Flips the image vertically or horizontally using GPU

clContext : ClContext

The representation of OpenCL context

localWorkSize : int

The size of the local work group

Returns: bool -> MyImage -> MyImage

A function that takes a boolean value indicating the flip direction, and an image, and asynchronously flips the image using the GPU

flipGPUKernel clContext localWorkSize

Full Usage: flipGPUKernel clContext localWorkSize

Parameters:
    clContext : ClContext - The representation of OpenCL context
    localWorkSize : int - The size of the local work group

Returns: MailboxProcessor<Msg> -> ClCell<int> -> ClArray<byte> -> int -> int -> ClArray<byte> -> ClArray<byte> A function that takes a command queue, flip parameter, image data, and result array as inputs and asynchronously flips the image using the GPU. The resulting image data is stored in the result array

Creates compiled GPU flip kernel

clContext : ClContext

The representation of OpenCL context

localWorkSize : int

The size of the local work group

Returns: MailboxProcessor<Msg> -> ClCell<int> -> ClArray<byte> -> int -> int -> ClArray<byte> -> ClArray<byte>

A function that takes a command queue, flip parameter, image data, and result array as inputs and asynchronously flips the image using the GPU. The resulting image data is stored in the result array

rotate clContext localWorkSize

Full Usage: rotate clContext localWorkSize

Parameters:
    clContext : ClContext - The representation of OpenCL context
    localWorkSize : int - The size of the local work group

Returns: bool -> MyImage -> MyImage A function that takes a boolean value indicating the rotation direction, and an image, and asynchronously rotates the image using the GPU

Rotates the image clockwise or counterclockwise using GPU

clContext : ClContext

The representation of OpenCL context

localWorkSize : int

The size of the local work group

Returns: bool -> MyImage -> MyImage

A function that takes a boolean value indicating the rotation direction, and an image, and asynchronously rotates the image using the GPU

rotateGPUKernel clContext localWorkSize

Full Usage: rotateGPUKernel clContext localWorkSize

Parameters:
    clContext : ClContext - The representation of OpenCL context
    localWorkSize : int - The size of the local work group

Returns: MailboxProcessor<Msg> -> ClCell<int> -> ClArray<byte> -> int -> int -> ClArray<byte> -> ClArray<byte> A function that takes a command queue, rotation parameter, image data, and result array as inputs and asynchronously rotates the image using the GPU. The resulting image data is stored in the result array

Creates compiled GPU rotation kernel

clContext : ClContext

The representation of OpenCL context

localWorkSize : int

The size of the local work group

Returns: MailboxProcessor<Msg> -> ClCell<int> -> ClArray<byte> -> int -> int -> ClArray<byte> -> ClArray<byte>

A function that takes a command queue, rotation parameter, image data, and result array as inputs and asynchronously rotates the image using the GPU. The resulting image data is stored in the result array