Documentation ¶
Index ¶
- func Build_program(context cl.CL_context, device []cl.CL_device_id, filename string, ...) *cl.CL_program
- func CHECK_STATUS(status cl.CL_int, reference cl.CL_int, cmd string)
- func Create_device() []cl.CL_device_id
- func Load_programsource(filename string) ([][]byte, []cl.CL_size_t)
- func Read_image_data(filename string) (data []uint16, w, h cl.CL_size_t, err error)
- func Write_image_data(filename string, data []uint16, w, h cl.CL_size_t) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build_program ¶
func Build_program(context cl.CL_context, device []cl.CL_device_id, filename string, options []byte) *cl.CL_program
Create program from a file and compile it
func Create_device ¶
func Create_device() []cl.CL_device_id
Find a GPU or CPU associated with the first available platform
func Load_programsource ¶
Create program from a file and compile it
func Read_image_data ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.