/external/clang/lib/Basic/ |
D | Cuda.cpp | 23 const char *CudaArchToString(CudaArch A) { in CudaArchToString() 25 case CudaArch::UNKNOWN: in CudaArchToString() 27 case CudaArch::SM_20: in CudaArchToString() 29 case CudaArch::SM_21: in CudaArchToString() 31 case CudaArch::SM_30: in CudaArchToString() 33 case CudaArch::SM_32: in CudaArchToString() 35 case CudaArch::SM_35: in CudaArchToString() 37 case CudaArch::SM_37: in CudaArchToString() 39 case CudaArch::SM_50: in CudaArchToString() 41 case CudaArch::SM_52: in CudaArchToString() [all …]
|
D | Targets.cpp | 1698 CudaArch GPU; 1711 GPU = CudaArch::SM_20; in NVPTXTargetInfo() 1780 case CudaArch::UNKNOWN: in getTargetDefines() 1783 case CudaArch::SM_20: in getTargetDefines() 1785 case CudaArch::SM_21: in getTargetDefines() 1787 case CudaArch::SM_30: in getTargetDefines() 1789 case CudaArch::SM_32: in getTargetDefines() 1791 case CudaArch::SM_35: in getTargetDefines() 1793 case CudaArch::SM_37: in getTargetDefines() 1795 case CudaArch::SM_50: in getTargetDefines() [all …]
|
/external/llvm-project/clang/lib/Basic/Targets/ |
D | NVPTX.cpp | 72 GPU = CudaArch::SM_20; in NVPTXTargetInfo() 183 case CudaArch::GFX600: in getTargetDefines() 184 case CudaArch::GFX601: in getTargetDefines() 185 case CudaArch::GFX602: in getTargetDefines() 186 case CudaArch::GFX700: in getTargetDefines() 187 case CudaArch::GFX701: in getTargetDefines() 188 case CudaArch::GFX702: in getTargetDefines() 189 case CudaArch::GFX703: in getTargetDefines() 190 case CudaArch::GFX704: in getTargetDefines() 191 case CudaArch::GFX705: in getTargetDefines() [all …]
|
D | NVPTX.h | 56 CudaArch GPU; 114 return StringToCudaArch(Name) != CudaArch::UNKNOWN; in isValidCPUName() 118 for (int i = static_cast<int>(CudaArch::SM_20); in fillValidCPUList() 119 i < static_cast<int>(CudaArch::LAST); ++i) in fillValidCPUList() 120 Values.emplace_back(CudaArchToString(static_cast<CudaArch>(i))); in fillValidCPUList() 125 return GPU != CudaArch::UNKNOWN; in setCPU()
|
/external/llvm-project/clang/lib/Basic/ |
D | Cuda.cpp | 55 CudaArch arch; 61 { CudaArch::SM_##sm, "sm_" #sm, ca } 64 { CudaArch::GFX##gpu, "gfx" #gpu, "compute_amdgcn" } 67 {CudaArch::UNUSED, "", ""}, 98 const char *CudaArchToString(CudaArch A) { in CudaArchToString() 107 const char *CudaArchToVirtualArchString(CudaArch A) { in CudaArchToVirtualArchString() 116 CudaArch StringToCudaArch(llvm::StringRef S) { in StringToCudaArch() 121 return CudaArch::UNKNOWN; in StringToCudaArch() 125 CudaVersion MinVersionForCudaArch(CudaArch A) { in MinVersionForCudaArch() 126 if (A == CudaArch::UNKNOWN) in MinVersionForCudaArch() [all …]
|
/external/llvm-project/clang/include/clang/Basic/ |
D | Cuda.h | 39 enum class CudaArch { enum 89 static inline bool IsNVIDIAGpuArch(CudaArch A) { in IsNVIDIAGpuArch() 90 return A >= CudaArch::SM_20 && A < CudaArch::GFX600; in IsNVIDIAGpuArch() 93 static inline bool IsAMDGpuArch(CudaArch A) { in IsAMDGpuArch() 94 return A >= CudaArch::GFX600 && A < CudaArch::LAST; in IsAMDGpuArch() 97 const char *CudaArchToString(CudaArch A); 98 const char *CudaArchToVirtualArchString(CudaArch A); 101 CudaArch StringToCudaArch(llvm::StringRef S); 104 CudaVersion MinVersionForCudaArch(CudaArch A); 107 CudaVersion MaxVersionForCudaArch(CudaArch A);
|
/external/clang/include/clang/Basic/ |
D | Cuda.h | 30 enum class CudaArch { enum 45 const char *CudaArchToString(CudaArch A); 48 CudaArch StringToCudaArch(llvm::StringRef S); 70 CudaVirtualArch VirtualArchForCudaArch(CudaArch A); 73 CudaVersion MinVersionForCudaArch(CudaArch A);
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGOpenMPRuntimeGPU.cpp | 4579 static CudaArch getCudaArch(CodeGenModule &CGM) { in getCudaArch() 4581 return CudaArch::UNKNOWN; in getCudaArch() 4584 CudaArch Arch = StringToCudaArch(Feature.getKey()); in getCudaArch() 4585 if (Arch != CudaArch::UNKNOWN) in getCudaArch() 4589 return CudaArch::UNKNOWN; in getCudaArch() 4598 CudaArch Arch = getCudaArch(CGM); in processRequiresDirective() 4600 case CudaArch::SM_20: in processRequiresDirective() 4601 case CudaArch::SM_21: in processRequiresDirective() 4602 case CudaArch::SM_30: in processRequiresDirective() 4603 case CudaArch::SM_32: in processRequiresDirective() [all …]
|
/external/llvm-project/clang/lib/Driver/ToolChains/ |
D | Cuda.cpp | 236 for (int Arch = (int)CudaArch::SM_30, E = (int)CudaArch::LAST; Arch < E; in CudaInstallationDetector() 238 CudaArch GpuArch = static_cast<CudaArch>(Arch); in CudaInstallationDetector() 327 CudaArch Arch) const { in CheckCudaVersionSupportsArch() 328 if (Arch == CudaArch::UNKNOWN || Version == CudaVersion::UNKNOWN || in CheckCudaVersionSupportsArch() 410 CudaArch gpu_arch = StringToCudaArch(GPUArchName); in ConstructJob() 411 assert(gpu_arch != CudaArch::UNKNOWN && in ConstructJob() 544 CudaArch gpu_arch = StringToCudaArch(gpu_arch_str); in ConstructJob()
|
D | Cuda.h | 44 mutable std::bitset<(int)CudaArch::LAST> ArchsWithBadVersion; 57 void CheckCudaVersionSupportsArch(CudaArch Arch) const;
|
/external/clang/include/clang/Driver/ |
D | Action.h | 162 const CudaArch GpuArch; 169 CudaDeviceAction(Action *Input, CudaArch Arch, bool AtTopLevel); 173 CudaArch getGpuArch() const { return GpuArch; } in getGpuArch()
|
/external/clang/lib/Driver/ |
D | Action.cpp | 56 CudaDeviceAction::CudaDeviceAction(Action *Input, clang::CudaArch Arch, in CudaDeviceAction()
|
D | Driver.cpp | 1026 CudaArch Arch = CDA->getGpuArch(); in PrintActions1() 1027 if (Arch != CudaArch::UNKNOWN) in PrintActions1() 1385 SmallVector<CudaArch, 4> GpuArchList; in buildCudaActions() 1386 llvm::SmallSet<CudaArch, 4> GpuArchs; in buildCudaActions() 1393 CudaArch Arch = StringToCudaArch(ArchStr); in buildCudaActions() 1394 if (Arch == CudaArch::UNKNOWN) in buildCudaActions() 1403 GpuArchList.push_back(CudaArch::SM_20); in buildCudaActions() 1469 CudaArch::UNKNOWN, in buildCudaActions()
|
D | ToolChains.h | 177 mutable llvm::SmallSet<CudaArch, 4> ArchsWithVersionTooLowErrors; 187 void CheckCudaVersionSupportsArch(CudaArch Arch) const;
|
D | ToolChains.cpp | 1831 CudaArch Arch) const { in CheckCudaVersionSupportsArch() 1832 if (Arch == CudaArch::UNKNOWN || Version == CudaVersion::UNKNOWN || in CheckCudaVersionSupportsArch()
|
/external/llvm-project/clang/lib/Driver/ |
D | Driver.cpp | 2424 TargetID(CudaArch Arch) { ID = CudaArchToString(Arch); } in TargetID() 2445 CudaArch DefaultCudaArch = CudaArch::UNKNOWN; 2532 AddTopLevel(CudaFatBinary, CudaArch::UNUSED); in appendTopLevelActions() 2663 DefaultCudaArch = CudaArch::SM_20; in CudaActionBuilder() 2667 CudaArch Arch = StringToCudaArch(ArchStr); in getCanonicalOffloadArch() 2668 if (Arch == CudaArch::UNKNOWN) { in getCanonicalOffloadArch() 2794 DefaultCudaArch = CudaArch::GFX803; in HIPActionBuilder()
|