julia function callbacks for OpenCL.Context