Hello. I was wondering whether it is possible to create multiple functions. For example function for creating context, command_queue, building kernel....?
I'm a bit confused because I do not know what the specific function returns. For example function for creating context would return context.
To illustrate what I mean:
Is it possible to create functions like this in my main program?
ofccourse it is possible. Just refer to the opencl spec to figure out what function returns what and you can do it.