@@ -562,16 +562,16 @@ int OfflineCompiler::initialize(size_t numArgs, const std::vector<std::string> &
562
562
std::string oclocOptionsFromFile;
563
563
bool oclocOptionsRead = readOptionsFromFile (oclocOptionsFromFile, oclocOptionsFileName, argHelper);
564
564
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
+ }
566
568
std::istringstream iss (allArgs[0 ] + " " + oclocOptionsFromFile);
567
569
std::vector<std::string> tokens{
568
570
std::istream_iterator<std::string>{iss}, std::istream_iterator<std::string>{}};
569
571
570
572
retVal = parseCommandLine (tokens.size (), tokens);
571
573
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 ());
575
575
return retVal;
576
576
}
577
577
}
@@ -732,6 +732,8 @@ int OfflineCompiler::parseCommandLine(size_t numArgs, const std::vector<std::str
732
732
cacheDir = argv[argIndex + 1 ];
733
733
argIndex++;
734
734
} else if (" -q" == currArg) {
735
+ quiet = true ;
736
+ } else if (" -qq" == currArg) {
735
737
argHelper->getPrinterRef () = MessagePrinter (true );
736
738
quiet = true ;
737
739
} else if (" -spv_only" == currArg) {
@@ -1008,7 +1010,9 @@ Usage: ocloc [compile] -file <filename> -device <device_type> [-output <filename
1008
1010
-force_stos_opt Will forcibly enable stateless to stateful optimization,
1009
1011
i.e. skip "-cl-intel-greater-than-4GB-buffer-required".
1010
1012
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.
1012
1016
1013
1017
-spv_only Will generate only spirV file.
1014
1018
0 commit comments