cl.load.binary: Load OpenCL binary

Description Usage Arguments Details Value

View source: R/rcl.r

Description

Creates a program from a pre-compiled OpenCL binary

Usage

1
cl.load.binary(path, context, devs)

Arguments

path

File path of the binary

context

An opencl_context object

devs

A list of devices to load the binary into

Details

Loads an OpenCL binary. Can only load a binary into the same device as the binary was built with. So a compiled CPU kernel cannot be loaded into a GPU context.

Value

An opencl_program object


caffeine-overload/rocl documentation built on May 6, 2019, 7:02 p.m.