diff options
author | Shilei Tian <tianshilei1992@gmail.com> | 2021-01-30 15:14:41 -0500 |
---|---|---|
committer | Shilei Tian <tianshilei1992@gmail.com> | 2021-01-30 15:14:48 -0500 |
commit | 26d38f6d20ff137d89cb7c891b739662de1ca508 (patch) | |
tree | 8656ab883c969b87d7c822be9565f68bfdcb5e67 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | 39486753d5c69d98d510c9ed43c92f076ec4c602 (diff) | |
download | llvm-26d38f6d20ff137d89cb7c891b739662de1ca508.zip llvm-26d38f6d20ff137d89cb7c891b739662de1ca508.tar.gz llvm-26d38f6d20ff137d89cb7c891b739662de1ca508.tar.bz2 |
[OpenMP][NVPTX] Refined CMake logic to choose compute capabilites
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`.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D95687
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
0 files changed, 0 insertions, 0 deletions