Hello fellow StackOverflow Users,
I have this problem : I have one very big image which i want to work on. My first idea is to divide the big image to couple of sub-images and then send this sub-images to different GPUs. I don't use the Image-Object, because I don't work with the RGB-Value, but I'm only using the brightness value to manipulate the image.
My Question are:
- Can I use one
context
with manycommandqueues
for every device? or should I use onecontext
with onecommandqueue
for each device ? - Can anyone give me an example or ideas, how I can dynamically change the inputMem-Data (sub-images data) for setting up the kernel arguments to send to the each device ? (I only know how to send the same input data)
- For Example, If I have more sub-images than the GPU-number, how can I distribute the sub-images to the GPUs ?
- Or maybe another smarter approach?
I'll appreciate every help and ideas. Thank you very much.