i am working with opencl "c" in a multi gpu scenario, where for various calls i have to get the default device id for the current calling host thread in opencl. unfortunately i am not able to figure it out and internet hasnt been kind in this aspect.
in HIP, one would call hipGetDevice(&device_id) and get the device id for current calling host thread. If someone can help me figure out something similar to what hipGetDevice does in opencl it would be highly appreciated.