[CPU] [WA] Use config to enable brgconv f32 kernel (#11990)
* enable brgconv f32 * use config to enable brgconv f32 * when brg disabled not init bin-postops * change prop name for extensive * use more general field * fix review comments.
This commit is contained in:
@@ -100,6 +100,7 @@ Options:
|
||||
letting the runtime to decide on the threads->different core types("HYBRID_AWARE", which is default on the hybrid CPUs)
|
||||
threads->(NUMA)nodes("NUMA") or
|
||||
completely disable("NO") CPU inference threads pinning
|
||||
-cpu_experimental ("<brgconv>") Optional. Enable experimental setting for CPU plugin.
|
||||
|
||||
Statistics dumping options:
|
||||
-report_type "<type>" Optional. Enable collecting statistics report. "no_counters" report contains configuration options specified, resulting FPS and latency.
|
||||
|
||||
@@ -230,6 +230,9 @@ static constexpr char inference_only_message[] =
|
||||
" To enable full mode for static models pass \"false\" value to this argument:"
|
||||
" ex. \"-inference_only=false\".\n";
|
||||
|
||||
static constexpr char cpu_experimental_message[] =
|
||||
"Optional. Enable experimental setting for CPU plugin. Setting should be 'brgconv' etc.";
|
||||
|
||||
/// @brief Define flag for showing help message <br>
|
||||
DEFINE_bool(h, false, help_message);
|
||||
|
||||
@@ -363,6 +366,9 @@ DEFINE_string(imean, "", input_image_mean_message);
|
||||
/// @brief Define flag for inference only mode <br>
|
||||
DEFINE_bool(inference_only, true, inference_only_message);
|
||||
|
||||
/// @brief Define flag for using experimental setting for CPU plugin <br>
|
||||
DEFINE_string(cpu_experimental, "", cpu_experimental_message);
|
||||
|
||||
/**
|
||||
* @brief This function show a help message
|
||||
*/
|
||||
@@ -397,6 +403,7 @@ static void show_usage() {
|
||||
std::cout << " -nthreads \"<integer>\" " << infer_num_threads_message << std::endl;
|
||||
std::cout << " -pin (\"YES\"|\"CORE\")/\"HYBRID_AWARE\"/(\"NO\"|\"NONE\")/\"NUMA\" "
|
||||
<< infer_threads_pinning_message << std::endl;
|
||||
std::cout << " -cpu_experimental " << cpu_experimental_message << std::endl;
|
||||
#ifdef HAVE_DEVICE_MEM_SUPPORT
|
||||
std::cout << " -use_device_mem " << use_device_mem_message << std::endl;
|
||||
#endif
|
||||
|
||||
@@ -386,6 +386,11 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
// use experimental setting
|
||||
if (isFlagSetInCommandLine("cpu_experimental")) {
|
||||
device_config.emplace(ov::cpu_experimental(FLAGS_cpu_experimental));
|
||||
}
|
||||
|
||||
// for CPU execution, more throughput-oriented execution via streams
|
||||
setThroughputStreams();
|
||||
set_infer_precision();
|
||||
|
||||
Reference in New Issue
Block a user