Skip to content

Commit 5cd2fc9

Browse files
committed
just for test
1 parent e950ce7 commit 5cd2fc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

paddle/testing/paddle_gtest_main.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ int main(int argc, char** argv) {
3131
#ifdef PADDLE_WITH_CUDA
3232
new_argv.push_back(
3333
strdup("--tryfromenv=fraction_of_gpu_memory_to_use,allocator_strategy"));
34+
#elif __clang__
35+
new_argv.push_back(
36+
strdup("--tryfromenv=use_mkldnn,initial_cpu_memory_in_"
37+
"mb,allocator_strategy"));
38+
new_argv.push_back(strdup("--undefok=use_mkldnn,initial_cpu_memory_in_mb"));
3439
#else
3540
new_argv.push_back(
3641
strdup("--tryfromenv=use_pinned_memory,use_mkldnn,initial_cpu_memory_in_"

0 commit comments

Comments
 (0)