Skip to content

Commit 59ccb22

Browse files
ocloc update
Signed-off-by: Artur Harasimiuk <[email protected]>
1 parent 151b2b9 commit 59ccb22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/offline_compiler/source/ocloc_fatbinary.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ bool requestedFatBinary(const std::vector<std::string> &args) {
2929
const bool hasMoreArgs = (argIndex + 1 < args.size());
3030
if ((ConstStringRef("-device") == currArg) && hasMoreArgs) {
3131
ConstStringRef deviceArg(args[argIndex + 1]);
32-
return deviceArg.contains("*") || deviceArg.contains("-") || deviceArg.contains(",") || deviceArg.containsCaseInsensitive("gen");
32+
return deviceArg.contains("*") || deviceArg.contains("-") || deviceArg.contains(",") || deviceArg.containsCaseInsensitive("gen") || deviceArg.startsWith("XE_");
3333
}
3434
}
3535
return false;
@@ -197,7 +197,7 @@ std::vector<ConstStringRef> getTargetPlatformsForFatbinary(ConstStringRef device
197197
requestedPlatforms.insert(requestedPlatforms.end(), from, to);
198198
}
199199
}
200-
} else if (set.containsCaseInsensitive("gen")) {
200+
} else if (set.containsCaseInsensitive("gen") || deviceArg.startsWith("XE_")) {
201201
if (set.size() == genArg.size()) {
202202
argHelper->printf("Invalid gen-based device : %s - gen should be followed by a number\n", set.str().c_str());
203203
} else {

0 commit comments

Comments
 (0)