Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

debug rdkit #630

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/jittor/src/mem/allocator/cuda_dual_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ EXTERN_LIB bool no_cuda_error_when_free;

struct CudaDualAllocator : Allocator {
//for recycle block_id
static const size_t ID_LIMIT = 1 << 16;
static const size_t ID_LIMIT = 1 << 20;
int n_free_ids;
int free_ids[ID_LIMIT];
DualAllocation allocations[ID_LIMIT];
Expand Down
2 changes: 1 addition & 1 deletion python/jittor/src/mem/allocator/sfrl_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct CachingBlockPool {
//start from 1
static size_t tot_block_id;
static std::unique_ptr<CachingBlock*[]> occupied_id_mapper;
static const size_t ID_LIMIT = 1 << 18;
static const size_t ID_LIMIT = 1 << 21;

pair<size_t,size_t> get_key(CachingBlock* block);

Expand Down
2 changes: 1 addition & 1 deletion python/jittor/src/mem/allocator/temp_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct TempCachingBlock {

struct TempAllocator : Allocator {
static const size_t ALIGN_SIZE = 512;
static const size_t ID_LIMIT = 1 << 18;
static const size_t ID_LIMIT = 1 << 21;
static vector<TempAllocator*> temp_allocators;
Allocator* underlying;
size_t cache_blocks_limit, used_memory, unused_memory;
Expand Down