From a7691603a5d1834d6a8a19b5b40c87ceec7c7a7c Mon Sep 17 00:00:00 2001 From: Zeng Jinle <32832641+sneaxiy@users.noreply.github.com> Date: Mon, 9 Sep 2019 10:55:32 +0800 Subject: [PATCH] add gpu_allocator_try_time config, test=develop (#19675) --- paddle/fluid/memory/allocation/allocator_facade.cc | 2 +- python/paddle/fluid/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/memory/allocation/allocator_facade.cc b/paddle/fluid/memory/allocation/allocator_facade.cc index cfc306dd35..220b50b1cc 100644 --- a/paddle/fluid/memory/allocation/allocator_facade.cc +++ b/paddle/fluid/memory/allocation/allocator_facade.cc @@ -37,7 +37,7 @@ #endif DEFINE_int64( - gpu_allocator_retry_time, 100, + gpu_allocator_retry_time, 10000, "The retry time (milliseconds) when allocator fails " "to allocate memory. No retry if this value is not greater than 0"); diff --git a/python/paddle/fluid/__init__.py b/python/paddle/fluid/__init__.py index 218485f5f7..2395def84e 100644 --- a/python/paddle/fluid/__init__.py +++ b/python/paddle/fluid/__init__.py @@ -204,7 +204,7 @@ def __bootstrap__(): 'cudnn_exhaustive_search', 'selected_gpus', 'sync_nccl_allreduce', 'limit_of_tmp_allocation', 'times_excess_than_required_tmp_allocation', - 'cudnn_batchnorm_spatial_persistent' + 'cudnn_batchnorm_spatial_persistent', 'gpu_allocator_retry_time' ] core.init_gflags([sys.argv[0]] + ["--tryfromenv=" + ",".join(read_env_flags)]) -- GitLab