Adding info about ocloc's multidevice compilation

Related-To: NEO-3920
Change-Id: Ifa5805f5be6add092e70a39e35892600de7d26a5
This commit is contained in:
Jaroslaw Chodor
2020-02-09 23:59:57 +01:00
parent 046cb4c28b
commit 46d0ae785b
2 changed files with 23 additions and 1 deletions

View File

@@ -226,7 +226,6 @@ int buildFatbinary(int argc, const char *argv[]) {
if ((ConstStringRef("-device") == currArg) && hasMoreArgs) { if ((ConstStringRef("-device") == currArg) && hasMoreArgs) {
deviceArgIndex = argIndex + 1; deviceArgIndex = argIndex + 1;
++argIndex; ++argIndex;
break;
} else if ((CompilerOptions::arch32bit == currArg) || (ConstStringRef("-32") == currArg)) { } else if ((CompilerOptions::arch32bit == currArg) || (ConstStringRef("-32") == currArg)) {
pointerSizeInBits = "32"; pointerSizeInBits = "32";
} else if ((CompilerOptions::arch64bit == currArg) || (ConstStringRef("-64") == currArg)) { } else if ((CompilerOptions::arch64bit == currArg) || (ConstStringRef("-64") == currArg)) {

View File

@@ -636,6 +636,29 @@ Usage: ocloc [compile] -file <filename> -device <device_type> [-output <filename
-device <device_type> Target device. -device <device_type> Target device.
<device_type> can be: %s <device_type> can be: %s
If multiple target devices are provided, ocloc
will compile for each of these targets and will
create a fatbinary archive that contains all of
device binaries produced this way.
Supported -device patterns examples :
-device skl ; will compile 1 target
-device skl,icllp ; will compile 2 targets
-device skl-icllp ; will compile all targets
in range (inclusive)
-device skl- ; will compile all targets
newer/same as provided
-device -skl ; will compile all targets
older/same as provided
-device gen9 ; will compile all targets
matching the same gen
-device gen9-gen11 ; will compile all targets
in range (inclusive)
-device gen9- ; will compile all targets
newer/same as provided
-device -gen9 ; will compile all targets
older/same as provided
-device * ; will compile all targets
known to ocloc
-output <filename> Optional output file base name. -output <filename> Optional output file base name.
Default is input file's base name. Default is input file's base name.