Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
WeldonWangwang committed Feb 10, 2025
1 parent 1b4468a commit 46b2723
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class debug_configuration {
int list_layers; // Print list layers
int print_multi_kernel_perf; // Print execution time of each kernel in multi-kernel primitimive
int print_input_data_shapes; // Print the input data_shape for benchmark_app.
int disable_usm; // Disable usm usage
mutable int disable_usm; // Disable usm usage
int disable_onednn; // Disable onednn for discrete GPU (no effect for integrated GPU)
int disable_onednn_opt_post_ops; // Disable onednn optimize post operators
std::string dump_profiling_data; // Enables dump of extended performance profiling to specified dir
Expand Down
1 change: 1 addition & 0 deletions src/plugins/intel_gpu/src/runtime/debug_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ debug_configuration::debug_configuration()
const debug_configuration *debug_configuration::get_instance() {
static std::unique_ptr<debug_configuration> instance(nullptr);
#ifdef GPU_DEBUG_CONFIG
// std::cout << "has flag\n";
static std::mutex _m;
std::lock_guard<std::mutex> lock(_m);
if (nullptr == instance)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ TEST(concat_gpu, mixed_input_types) {
}
}

void start_concat_test_dynamic(impl_types impl_type = impl_types::any);
void start_concat_test_dynamic(impl_types impl_type) {
void start_concat_test_dynamic(impl_types impl_type = impl_types::any, bool disable_usm = false);
void start_concat_test_dynamic(impl_types impl_type, bool disable_usm) {
if (disable_usm) {
GPU_DEBUG_GET_INSTANCE(debug_config);
debug_config->disable_usm = 1;
}
auto& engine = get_test_engine();

layout layout0_dyn = {{1, -1, -1, -1}, data_types::f32, format::bfyx};
Expand Down Expand Up @@ -208,7 +212,11 @@ TEST(concat_gpu, dynamic_4d_f) {
TEST(concat_cpu_impl, dynamic_4d_f) {
start_concat_test_dynamic(impl_types::cpu);
}

// #ifndef GPU_DEBUG_CONFIG
TEST(concat_cpu_impl, dynamic_4d_f_disable_usm) {
start_concat_test_dynamic(impl_types::cpu, true);
}
// #endif
TEST(concat_gpu, dynamic_2d_bfyx_and_b_fs_yx_fsv32) {
auto& engine = get_test_engine();

Expand Down

0 comments on commit 46b2723

Please sign in to comment.