Example #1
0
func CLEnqueueMarker(command_queue CL_command_queue, event *CL_event) CL_int {
	var c_event C.cl_event
	var c_errcode_ret C.cl_int

	c_errcode_ret = C.clEnqueueMarker(command_queue.cl_command_queue, &c_event)

	if event != nil {
		event.cl_event = c_event
	}

	return CL_int(c_errcode_ret)
}
Example #2
0
File: package.go Project: mantyr/cl
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clEnqueueMarker.html
func EnqueueMarker(cq CommandQueue, event *Event) ErrorCode {
	return ErrorCode(C.clEnqueueMarker(cq, (*C.cl_event)(unsafe.Pointer(event))))
}