Skip to content

Commit

Permalink
Set new DisjointPool config field
Browse files Browse the repository at this point in the history
  • Loading branch information
kswiecicki committed Jul 24, 2024
1 parent 326c2ce commit 8462b60
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/common/umf_pools/disjoint_pool_config_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ DisjointPoolAllConfigs::DisjointPoolAllConfigs(int trace) {
Configs[DisjointPoolMemType::Shared].Name = "Shared";
Configs[DisjointPoolMemType::SharedReadOnly].Name = "SharedReadOnly";

// This field is purely for debugging purposes. There's an issue with
// sanitizer annotations on non-host memory.
Configs[DisjointPoolMemType::Host].HostMemory = 1;
Configs[DisjointPoolMemType::Device].HostMemory = 0;
Configs[DisjointPoolMemType::Shared].HostMemory = 0;
Configs[DisjointPoolMemType::SharedReadOnly].HostMemory = 0;

// Buckets for Host use a minimum of the cache line size of 64 bytes.
// This prevents two separate allocations residing in the same cache line.
// Buckets for Device and Shared allocations will use starting size of 512.
Expand Down

0 comments on commit 8462b60

Please sign in to comment.