Lines Matching refs:GpuArch
238 CudaArch GpuArch = static_cast<CudaArch>(Arch); in CudaInstallationDetector() local
239 if (!IsNVIDIAGpuArch(GpuArch)) in CudaInstallationDetector()
241 std::string GpuArchName(CudaArchToString(GpuArch)); in CudaInstallationDetector()
257 StringRef GpuArch = FileName.slice( in CudaInstallationDetector() local
259 LibDeviceMap[GpuArch] = FilePath.str(); in CudaInstallationDetector()
263 if (GpuArch == "compute_20") { in CudaInstallationDetector()
267 } else if (GpuArch == "compute_30") { in CudaInstallationDetector()
277 } else if (GpuArch == "compute_35") { in CudaInstallationDetector()
280 } else if (GpuArch == "compute_50") { in CudaInstallationDetector()
688 StringRef GpuArch = DriverArgs.getLastArgValue(options::OPT_march_EQ); in addClangTargetOptions() local
689 assert(!GpuArch.empty() && "Must have an explicit GPU arch."); in addClangTargetOptions()
709 std::string LibDeviceFile = CudaInstallation.getLibDeviceFile(GpuArch); in addClangTargetOptions()
716 getDriver().Diag(diag::err_drv_no_cuda_libdevice) << GpuArch; in addClangTargetOptions()
785 "libomptarget-nvptx-" + GpuArch.str() + ".bc"; in addClangTargetOptions()