Function File: ocl_prog = ocl_program_file (fname)
Function File: ocl_prog = ocl_program_file (fname, build_opts_str)

Construct and compile an OCL program from an OpenCL C source code file.

ocl_program_file loads an OpenCL C source code file with filename fname (which is passed to fopen) and compiles this code using the OpenCL online compiler (via the function ocl_program). If given, the build options specified in the string build_opts_str are applied during compilation. Upon success, an OCL program ocl_prog is returned.

For all OCL program properties, see ocl_program.

See also: oclArray, ocl_program.

Package: ocl