Skip to content

Commit a314dd8

Browse files
committed
[UR][L0] Fix tracing param in disjoint_pool_parser
The disjoint_pool implementation distinguishes between a few different levels of logging (0-3). The argument should be an int, not bool.
1 parent e69ed21 commit a314dd8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/adapters/level_zero/usm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ usm::DisjointPoolAllConfigs InitializeDisjointPoolConfig() {
6464
? PoolUrTraceVal
6565
: (PoolPiTraceVal ? PoolPiTraceVal : nullptr);
6666

67-
bool PoolTrace = false;
67+
int PoolTrace = 0;
6868
if (PoolTraceVal != nullptr) {
6969
PoolTrace = std::atoi(PoolTraceVal);
7070
}

source/common/umf_pools/disjoint_pool_config_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DisjointPoolAllConfigs::DisjointPoolAllConfigs() {
6161
}
6262

6363
DisjointPoolAllConfigs parseDisjointPoolConfig(const std::string &config,
64-
bool trace) {
64+
int trace) {
6565
DisjointPoolAllConfigs AllConfigs;
6666

6767
// TODO: replace with UR ENV var parser and avoid creating a copy of 'config'

source/common/umf_pools/disjoint_pool_config_parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class DisjointPoolAllConfigs {
5151
// Example of usage:
5252
// "1;32M;host:1M,4,64K;device:1M,4,64K;shared:0,0,2M"
5353
DisjointPoolAllConfigs parseDisjointPoolConfig(const std::string &config,
54-
bool trace = 1);
54+
int trace = 1);
5555
} // namespace usm
5656

5757
#endif

0 commit comments

Comments
 (0)