mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
fix: ocloc - Add support for verbose mode
with additional -v option, ocloc will output command line it was invoked with Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cf4619843d
commit
9ec9cc7ee0
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -105,7 +105,7 @@ int BinaryEncoder::createElf(std::stringstream &deviceBinary) {
|
||||
}
|
||||
|
||||
void BinaryEncoder::printHelp() {
|
||||
argHelper->printf(R"===(Assembles Intel Compute GPU device binary from input files.
|
||||
argHelper->printf(R"OCLOC_HELP(Assembles Intel Compute GPU device binary from input files.
|
||||
It's expected that input files were previously generated by 'ocloc disasm'
|
||||
command or are compatible with 'ocloc disasm' output (especially in terms of
|
||||
file naming scheme). See 'ocloc disasm --help' for additional info.
|
||||
@@ -128,12 +128,14 @@ Usage: ocloc asm -out <out_file> [-dump <dump_dir>] [-device <device_type>] [-ig
|
||||
-ignore_isa_padding Ignores Kernel Heap padding - padding will not
|
||||
be added to Kernel Heap binary.
|
||||
|
||||
-v Verbose mode.
|
||||
|
||||
--help Print this usage message.
|
||||
|
||||
Examples:
|
||||
Assemble to Intel Compute GPU device binary
|
||||
ocloc asm -out reassembled.bin
|
||||
)===",
|
||||
)OCLOC_HELP",
|
||||
argHelper->createStringForArgs(argHelper->productConfigHelper->getDeviceAcronyms()).c_str());
|
||||
}
|
||||
|
||||
@@ -326,6 +328,8 @@ int BinaryEncoder::validateInput(const std::vector<std::string> &args) {
|
||||
} else if ("-q" == currArg) {
|
||||
argHelper->getPrinterRef().setSuppressMessages(true);
|
||||
iga->setMessagePrinter(argHelper->getPrinterRef());
|
||||
} else if ("-v" == currArg) {
|
||||
argHelper->setVerbose(true);
|
||||
} else {
|
||||
argHelper->printf("Unknown argument %s\n", currArg.c_str());
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user