Skip to content

Commit 8462b60

Browse files
committed
Set new DisjointPool config field
1 parent 326c2ce commit 8462b60

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/common/umf_pools/disjoint_pool_config_parser.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ DisjointPoolAllConfigs::DisjointPoolAllConfigs(int trace) {
3636
Configs[DisjointPoolMemType::Shared].Name = "Shared";
3737
Configs[DisjointPoolMemType::SharedReadOnly].Name = "SharedReadOnly";
3838

39+
// This field is purely for debugging purposes. There's an issue with
40+
// sanitizer annotations on non-host memory.
41+
Configs[DisjointPoolMemType::Host].HostMemory = 1;
42+
Configs[DisjointPoolMemType::Device].HostMemory = 0;
43+
Configs[DisjointPoolMemType::Shared].HostMemory = 0;
44+
Configs[DisjointPoolMemType::SharedReadOnly].HostMemory = 0;
45+
3946
// Buckets for Host use a minimum of the cache line size of 64 bytes.
4047
// This prevents two separate allocations residing in the same cache line.
4148
// Buckets for Device and Shared allocations will use starting size of 512.

0 commit comments

Comments
 (0)