New To OpenCL trying get code to use 2 gpus

Hi I have just inherieted some opencl code that appears to only use 1 gpu
I submit it using SLURM on a cluster when I when i submit it requesting multiple nodes (typically 2)
the program just runs twice. I am wondering where I go on how to structure / restructure the code so that it can take advantage of multiple GPUs