Lines Matching refs:CudaVersion
11 const char *CudaVersionToString(CudaVersion V) { in CudaVersionToString()
13 case CudaVersion::UNKNOWN: in CudaVersionToString()
15 case CudaVersion::CUDA_70: in CudaVersionToString()
17 case CudaVersion::CUDA_75: in CudaVersionToString()
19 case CudaVersion::CUDA_80: in CudaVersionToString()
21 case CudaVersion::CUDA_90: in CudaVersionToString()
23 case CudaVersion::CUDA_91: in CudaVersionToString()
25 case CudaVersion::CUDA_92: in CudaVersionToString()
27 case CudaVersion::CUDA_100: in CudaVersionToString()
29 case CudaVersion::CUDA_101: in CudaVersionToString()
31 case CudaVersion::CUDA_102: in CudaVersionToString()
33 case CudaVersion::CUDA_110: in CudaVersionToString()
39 CudaVersion CudaStringToVersion(const llvm::Twine &S) { in CudaStringToVersion()
40 return llvm::StringSwitch<CudaVersion>(S.str()) in CudaStringToVersion()
41 .Case("7.0", CudaVersion::CUDA_70) in CudaStringToVersion()
42 .Case("7.5", CudaVersion::CUDA_75) in CudaStringToVersion()
43 .Case("8.0", CudaVersion::CUDA_80) in CudaStringToVersion()
44 .Case("9.0", CudaVersion::CUDA_90) in CudaStringToVersion()
45 .Case("9.1", CudaVersion::CUDA_91) in CudaStringToVersion()
46 .Case("9.2", CudaVersion::CUDA_92) in CudaStringToVersion()
47 .Case("10.0", CudaVersion::CUDA_100) in CudaStringToVersion()
48 .Case("10.1", CudaVersion::CUDA_101) in CudaStringToVersion()
49 .Case("10.2", CudaVersion::CUDA_102) in CudaStringToVersion()
50 .Case("11.0", CudaVersion::CUDA_110) in CudaStringToVersion()
51 .Default(CudaVersion::UNKNOWN); in CudaStringToVersion()
125 CudaVersion MinVersionForCudaArch(CudaArch A) { in MinVersionForCudaArch()
127 return CudaVersion::UNKNOWN; in MinVersionForCudaArch()
131 return CudaVersion::CUDA_70; in MinVersionForCudaArch()
143 return CudaVersion::CUDA_70; in MinVersionForCudaArch()
147 return CudaVersion::CUDA_80; in MinVersionForCudaArch()
149 return CudaVersion::CUDA_90; in MinVersionForCudaArch()
151 return CudaVersion::CUDA_91; in MinVersionForCudaArch()
153 return CudaVersion::CUDA_100; in MinVersionForCudaArch()
155 return CudaVersion::CUDA_110; in MinVersionForCudaArch()
161 CudaVersion MaxVersionForCudaArch(CudaArch A) { in MaxVersionForCudaArch()
164 return CudaVersion::LATEST; in MaxVersionForCudaArch()
168 return CudaVersion::UNKNOWN; in MaxVersionForCudaArch()
171 return CudaVersion::CUDA_80; in MaxVersionForCudaArch()
173 return CudaVersion::LATEST; in MaxVersionForCudaArch()
177 CudaVersion ToCudaVersion(llvm::VersionTuple Version) { in ToCudaVersion()
182 return CudaVersion::CUDA_70; in ToCudaVersion()
184 return CudaVersion::CUDA_75; in ToCudaVersion()
186 return CudaVersion::CUDA_80; in ToCudaVersion()
188 return CudaVersion::CUDA_90; in ToCudaVersion()
190 return CudaVersion::CUDA_91; in ToCudaVersion()
192 return CudaVersion::CUDA_92; in ToCudaVersion()
194 return CudaVersion::CUDA_100; in ToCudaVersion()
196 return CudaVersion::CUDA_101; in ToCudaVersion()
198 return CudaVersion::CUDA_102; in ToCudaVersion()
200 return CudaVersion::CUDA_110; in ToCudaVersion()
202 return CudaVersion::UNKNOWN; in ToCudaVersion()
210 bool CudaFeatureEnabled(CudaVersion Version, CudaFeature Feature) { in CudaFeatureEnabled()
213 return Version >= CudaVersion::CUDA_92; in CudaFeatureEnabled()
215 return Version >= CudaVersion::CUDA_101; in CudaFeatureEnabled()