Skip to content

Commit

Permalink
Fix tracing param in disjoint_pool_parser
Browse files Browse the repository at this point in the history
The disjoint_pool implementation distinguishes between
a few different levels of logging (0-3). The argument
should be an int, not bool.
  • Loading branch information
igchor committed Dec 11, 2023
1 parent e69ed21 commit c154302
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/adapters/level_zero/usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ usm::DisjointPoolAllConfigs InitializeDisjointPoolConfig() {
? PoolUrTraceVal
: (PoolPiTraceVal ? PoolPiTraceVal : nullptr);

bool PoolTrace = false;
int PoolTrace = 0;
if (PoolTraceVal != nullptr) {
PoolTrace = std::atoi(PoolTraceVal);
}
Expand Down
2 changes: 1 addition & 1 deletion source/common/umf_pools/disjoint_pool_config_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DisjointPoolAllConfigs::DisjointPoolAllConfigs() {
}

DisjointPoolAllConfigs parseDisjointPoolConfig(const std::string &config,
bool trace) {
int trace) {
DisjointPoolAllConfigs AllConfigs;

// TODO: replace with UR ENV var parser and avoid creating a copy of 'config'
Expand Down
2 changes: 1 addition & 1 deletion source/common/umf_pools/disjoint_pool_config_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DisjointPoolAllConfigs {
// Example of usage:
// "1;32M;host:1M,4,64K;device:1M,4,64K;shared:0,0,2M"
DisjointPoolAllConfigs parseDisjointPoolConfig(const std::string &config,
bool trace = 1);
int trace = 1);
} // namespace usm

#endif

0 comments on commit c154302

Please sign in to comment.