@@ -562,16 +562,16 @@ int OfflineCompiler::initialize(size_t numArgs, const std::vector<std::string> &
562562 std::string oclocOptionsFromFile;
563563 bool oclocOptionsRead = readOptionsFromFile (oclocOptionsFromFile, oclocOptionsFileName, argHelper);
564564 if (oclocOptionsRead) {
565- argHelper->printf (" Building with ocloc options:\n %s\n " , oclocOptionsFromFile.c_str ());
565+ if (!isQuiet ()) {
566+ argHelper->printf (" Building with ocloc options:\n %s\n " , oclocOptionsFromFile.c_str ());
567+ }
566568 std::istringstream iss (allArgs[0 ] + " " + oclocOptionsFromFile);
567569 std::vector<std::string> tokens{
568570 std::istream_iterator<std::string>{iss}, std::istream_iterator<std::string>{}};
569571
570572 retVal = parseCommandLine (tokens.size (), tokens);
571573 if (retVal != SUCCESS) {
572- if (isQuiet ()) {
573- printf (" Failed with ocloc options from file:\n %s\n " , oclocOptionsFromFile.c_str ());
574- }
574+ argHelper->printf (" Failed with ocloc options from file:\n %s\n " , oclocOptionsFromFile.c_str ());
575575 return retVal;
576576 }
577577 }
@@ -732,6 +732,8 @@ int OfflineCompiler::parseCommandLine(size_t numArgs, const std::vector<std::str
732732 cacheDir = argv[argIndex + 1 ];
733733 argIndex++;
734734 } else if (" -q" == currArg) {
735+ quiet = true ;
736+ } else if (" -qq" == currArg) {
735737 argHelper->getPrinterRef () = MessagePrinter (true );
736738 quiet = true ;
737739 } else if (" -spv_only" == currArg) {
@@ -1008,7 +1010,9 @@ Usage: ocloc [compile] -file <filename> -device <device_type> [-output <filename
10081010 -force_stos_opt Will forcibly enable stateless to stateful optimization,
10091011 i.e. skip "-cl-intel-greater-than-4GB-buffer-required".
10101012
1011- -q Will silence most of output messages.
1013+ -q Will silence output messages (except errors).
1014+
1015+ -qq Will silence most of output messages.
10121016
10131017 -spv_only Will generate only spirV file.
10141018
0 commit comments