Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
use 1GB memory for benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyu-intel committed Mar 13, 2024
1 parent f887ac0 commit 9a510cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bestla/bestla/ut/bestla_ut.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ static inline int auto_batch(size_t memsize) {
GetCPUDevice();
auto L3 = _cd->getL3CacheSize();
size_t constexpr Enlarge = 4;
auto batch = L3 * Enlarge / memsize;
size_t constexpr TargetMem = 1LL << 30;
auto batch = TargetMem / memsize;
return batch > 1 ? batch : 2;
}

Expand Down

0 comments on commit 9a510cb

Please sign in to comment.