Skip to content

Commit fe8a06a

Browse files
committed
[L0] move disjoint pool config creation from common to usm
so that common can be easily used in unittests
1 parent 2a31795 commit fe8a06a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/adapters/level_zero/common.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ ur_result_t ze2urResult(ze_result_t ZeResult) {
6666
}
6767
}
6868

69-
usm::DisjointPoolAllConfigs DisjointPoolConfigInstance =
70-
InitializeDisjointPoolConfig();
71-
7269
// This function will ensure compatibility with both Linux and Windows for
7370
// setting environment variables.
7471
bool setEnvVar(const char *name, const char *value) {

source/adapters/level_zero/usm.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
#include <umf_helpers.hpp>
2323

24+
usm::DisjointPoolAllConfigs DisjointPoolConfigInstance =
25+
InitializeDisjointPoolConfig();
26+
2427
ur_result_t umf2urResult(umf_result_t umfResult) {
2528
if (umfResult == UMF_RESULT_SUCCESS)
2629
return UR_RESULT_SUCCESS;

0 commit comments

Comments
 (0)