custom_opencl: Custom OpenCL Kernels

View source: R/custom_opencl.R

custom_openclR Documentation

Custom OpenCL Kernels

Description

Compile a custom function using a user provided OpenCL kernel

Usage

custom_opencl(kernel, cl_args, type)

Arguments

kernel

path to OpenCL kernel file

cl_args

A data.frame that contains argument definitions. Provided by setup_opencl

type

The precision on which the kernel is compiled. Options include "int", "float", and "double"

Value

This function does not return a value directly, but it compiles the provided OpenCL kernel and performs necessary operations for using it.


gpuR documentation built on May 29, 2024, 11:56 a.m.