// // Copyright (c) 2017 The Khronos Group Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #include "parseParameters.h" #include "errorHelpers.h" #include "testHarness.h" #include "ThreadPool.h" #include #include #include #include #include using namespace std; bool gOfflineCompiler = false; bool gForceSpirVCache = false; bool gForceSpirVGenerate = false; std::string gSpirVPath = "."; OfflineCompilerOutputType gOfflineCompilerOutputType; void helpInfo () { log_info(" '-offlineCompiler ': use offline compiler\n"); log_info(" ' output_type binary - \"../build_script_binary.py\" is invoked\n"); log_info(" ' output_type source - \"../build_script_source.py\" is invoked\n"); log_info(" ' output_type spir_v - \"../cl_build_script_spir_v.py\" is invoked\n, optional modes: generate, cache"); log_info(" ' mode generate - force binary generation"); log_info(" ' mode cache - force reading binary files from cache"); log_info("\n"); } int parseCustomParam (int argc, const char *argv[], const char *ignore) { int delArg = 0; for (int i=1; i \n"); return -1; } } //cleaning parameters from argv tab for (int j=i; j