This patch refines the logic to choose compute capabilites via the
environment variable LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES. It supports the
following values (all case insensitive):
- "all": Build deviceRTLs for all supported compute capabilites;
- "auto": Only build for the compute capability auto detected. Note that this requires CUDA. If CUDA is not found, a CMake fatal error will be raised.
- "xx,yy" or "xx;yy": Build for compute capabilities xx and yy.
If LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES is not set, it is equivalent to set
it to all.
Ye said before we probably don't want this so new capabilities can be compiled for in the future. I guess a warning is better.