Skip to main content
The following are complete examples of the implementation & execution of User-Defined Functions (UDFs) in the UDF C++ API. Dist Cuda Sum Of Squares Example of the computation of the sum of squares, summing the squares of input table columns and storing the result in an output table. This UDF uses CUDA libraries and must be run on a CUDA build of Kinetica.

Sample Code Block

A simple distributed example of a UDF which copies data from one set of tables to another would look like the following: