[libomptarget] Implement get_device_num for amdgcn, nvptx
Adds a field to the existing environment struct which is used for debug_level.
JonChesterfield on Wed, Nov 18, 8:07 AM.Authored by
Open to suggestions on testing. Calling it from a target region on amdgcn with multiple GPUs works. I don't have a cuda machine with multiple cards. A machine with one target returns 0 with or without this patch.
Do we have any runtime tests for openmp in tree? Would need a CI machine with GPUs
Apologies to the hundreds of reviewers who have just been spammed.
Today I learned that 'arc diff --update' is not relative to the patch one is updating, but is relative to master as exists on github. Also that phabricator will not let one delete some automatically added reviewers before fixing the diff.