[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
llvm-svn: 310625
diff --git a/clang/lib/Driver/ToolChains/Cuda.cpp b/clang/lib/Driver/ToolChains/Cuda.cpp
index 643c340..00715a7 100644
--- a/clang/lib/Driver/ToolChains/Cuda.cpp
+++ b/clang/lib/Driver/ToolChains/Cuda.cpp
@@ -527,10 +527,14 @@
}
StringRef Arch = DAL->getLastArgValue(options::OPT_march_EQ);
- if (Arch.empty())
- // Default compute capability for CUDA toolchain is sm_20.
+ if (Arch.empty()) {
+ // Default compute capability for CUDA toolchain is the
+ // lowest compute capability supported by the installed
+ // CUDA version.
DAL->AddJoinedArg(nullptr,
- Opts.getOption(options::OPT_march_EQ), "sm_20");
+ Opts.getOption(options::OPT_march_EQ),
+ CudaInstallation.getLowestExistingArch());
+ }
return DAL;
}