mirror of https://github.com/Jittor/Jittor
reduce memory alloc (in certain cases)
This commit is contained in:
parent
bb39ba279c
commit
d5f4b78d8f
|
@ -15,8 +15,8 @@
|
|||
namespace jittor {
|
||||
|
||||
DEFINE_FLAG(int, use_sfrl_allocator, 1, "Enable sfrl allocator");
|
||||
DEFINE_FLAG(int64, sfrl_large_block_size_device, 20971520, "sfrl_large_block_size, larger will reduce memory shard, only affect device");
|
||||
constexpr int64 sfrl_large_block_size_cpu=20971520;
|
||||
DEFINE_FLAG(int64, sfrl_large_block_size_device, 5242880, "sfrl_large_block_size, larger will reduce memory shard, only affect device");
|
||||
constexpr int64 sfrl_large_block_size_cpu=5242880;
|
||||
|
||||
std::vector<size_t> CachingBlockPool::block_ids;
|
||||
//start from 1
|
||||
|
|
Loading…
Reference in New Issue