HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file io.compute.Program by ben
expand copy to clipboardexpand
uses ExtMemory

/*
{"description" : "Represents a program built for a specific compute device."}
*/
interface Program {

    /* {"@description" : "Builds the program from the source code provided for the Compute device given. functionName must match the kernel function name in the source code."} */
    Program(store Compute device, char functionName[], char source[])

    /* {"@description" : "The entry point function of the provided source code for this program will list a set of parameters. Representations of these parameters are given by the types in this package that extend the ExtMemory type. Arrange these in an array and pass it to this function to have those parameters used when this Program object is executed"} */
    void setParameters(ExtMemory parameters[])

}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n io.compute.Program -m "reason for update" -u yourUsername
Version 2 by barry
Version 1 (this version) by ben
Notes for this version: Standard Library Initialisation