File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ struct RWLock {
46
46
private:
47
47
pthread_rwlock_t lock_;
48
48
};
49
+ // TODO(paddle-dev): Support RWLock for WIN32 for correctness.
49
50
#else
50
51
// https://stackoverflow.com/questions/7125250/making-pthread-rwlock-wrlock-recursive
51
52
// In windows, rw_lock seems like a hack. Use empty object and do nothing.
Original file line number Diff line number Diff line change @@ -20,8 +20,11 @@ limitations under the License. */
20
20
#include " paddle/fluid/platform/enforce.h"
21
21
22
22
DEFINE_double (fraction_of_gpu_memory_to_use, 0.92 ,
23
- " Default use 92% of GPU memory for PaddlePaddle,"
24
- " reserve the rest for page tables, etc" );
23
+ " Allocate a trunk of gpu memory that is this fraction of the "
24
+ " total gpu memory size. Future memory usage will be allocated "
25
+ " from the trunk. If the trunk doesn't have enough gpu memory, "
26
+ " additional trunks of the same size will be requested from gpu "
27
+ " until the gpu has no memory left for another trunk." );
25
28
26
29
namespace paddle {
27
30
namespace platform {
You can’t perform that action at this time.
0 commit comments