This patch loads plugins from the same directory as libomptarget.so is found. This avoids the need to set LD_LIBRARY_PATH to find plugins whose relative names are hardcoded in this source file.
This patch also provides a quick fail mechanism to avoid doing a dlopen for a platform that is not operational.
This patch also adds the name for the amdgcn plugin.
Why do we want to do this? Also, does it mean that cmake configuration must be changed to put plugins in the same directory as libomptarget.so?