[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:
Luo Cheng
2022-07-05 07:14:40 +08:00
committed by GitHub
parent 30c7f561e3
commit 35ee842446
17 changed files with 158 additions and 12 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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();