diff options
author | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2017-08-10 16:56:59 +0000 |
---|---|---|
committer | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2017-08-10 16:56:59 +0000 |
commit | 1b0509467f12f78de007882dfa481d794215ba30 (patch) | |
tree | 615f87130845cc3723928ebc2186a8f98611df9c /lib/Driver/ToolChains/Cuda.h | |
parent | 15af0ebfc46eb2d4fdb8303c816df18fb4a40924 (diff) |
[OpenMP] Delete tests in openmp-offload.c which cuase failures
until a better way to perform these tests is figured out.
Change connected to diff: D29654
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/Cuda.h')
-rw-r--r-- | lib/Driver/ToolChains/Cuda.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains/Cuda.h b/lib/Driver/ToolChains/Cuda.h index 1e30aa7270..2ea76da3cb 100644 --- a/lib/Driver/ToolChains/Cuda.h +++ b/lib/Driver/ToolChains/Cuda.h @@ -76,6 +76,17 @@ public: std::string getLibDeviceFile(StringRef Gpu) const { return LibDeviceMap.lookup(Gpu); } + /// \brief Get lowest available compute capability + /// for which a libdevice library exists. + std::string getLowestExistingArch() const { + std::string LibDeviceFile; + for (auto key : LibDeviceMap.keys()) { + LibDeviceFile = LibDeviceMap.lookup(key); + if (!LibDeviceFile.empty()) + return key; + } + return "sm_35"; + } }; namespace tools { |