File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1371,8 +1371,6 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
13711371 llvm::Triple SYCLTargetTriple (MakeSYCLDeviceTriple (Val.getKey ()));
13721372 std::string NormalizedName = SYCLTargetTriple.normalize ();
13731373
1374-
1375-
13761374 // Make sure we don't have a duplicate triple.
13771375 auto Duplicate = FoundNormalizedTriples.find (NormalizedName);
13781376 if (Duplicate != FoundNormalizedTriples.end ()) {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ using namespace clang;
2828using namespace llvm ::opt;
2929
3030// Struct that relates an AOT target value with
31- // Intel CPUs and GPUs.
31+ // Intel CPUs, Intel GPUs, AMD and NVidia GPUs.
3232struct StringToOffloadArchSYCLMap {
3333 const char *ArchName;
3434 SYCLSupportedOffloadArchs IntelArch;
@@ -151,7 +151,7 @@ static const StringToOffloadArchSYCLMap StringToArchNamesMap[] = {
151151 {" sm_90a" , SYCLSupportedOffloadArchs::SM_90A}};
152152
153153// Check if the user provided value for --offload-arch is a valid
154- // Intel CPU or Intel GPU target.
154+ // SYCL supported AOT target.
155155SYCLSupportedOffloadArchs
156156clang::driver::StringToOffloadArchSYCL (llvm::StringRef ArchNameAsString) {
157157 auto result = std::find_if (
Original file line number Diff line number Diff line change @@ -147,20 +147,20 @@ IsSYCLSupportedNVidiaGPUArch(SYCLSupportedOffloadArchs Arch) {
147147 Arch <= SYCLSupportedOffloadArchs::SM_90A;
148148}
149149
150- // Check if the given Arch value is a valid Intel CPU.
150+ // Check if the given Arch value is a valid SYCL supported Intel CPU.
151151static inline bool IsSYCLSupportedIntelCPUArch (SYCLSupportedOffloadArchs Arch) {
152152 return Arch >= SYCLSupportedOffloadArchs::SKYLAKEAVX512 &&
153153 Arch < SYCLSupportedOffloadArchs::BDW;
154154}
155155
156- // Check if the given Arch value is a valid Intel GPU.
156+ // Check if the given Arch value is a valid SYCL supported Intel GPU.
157157static inline bool IsSYCLSupportedIntelGPUArch (SYCLSupportedOffloadArchs Arch) {
158158 return Arch >= SYCLSupportedOffloadArchs::BDW &&
159159 Arch <= SYCLSupportedOffloadArchs::LNL_M;
160160}
161161
162162// Check if the user provided value for --offload-arch is a valid
163- // Intel CPU or Intel GPU target.
163+ // SYCL supported AOT target.
164164SYCLSupportedOffloadArchs
165165StringToOffloadArchSYCL (llvm::StringRef ArchNameAsString);
166166
You can’t perform that action at this time.
0 commit comments