Skip to content

Commit ea1c5ad

Browse files
committed
Revert "Merge pull request oneapi-src#1430 from igchor/umf_dynamic_linking"
This reverts commit 3d8fe8d, reversing changes made to e8c9f3d.
1 parent 2b12910 commit ea1c5ad

26 files changed

+58
-132
lines changed

.github/docker/ubuntu-22.04.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ ARG BASE_DEPS="\
3232
ARG UR_DEPS="\
3333
doxygen \
3434
python3 \
35-
python3-pip \
36-
libhwloc-dev"
35+
python3-pip"
3736

3837
# Unified Runtime's dependencies (installed via pip)
3938
ARG UR_PYTHON_DEPS="\

.github/scripts/install_hwloc.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/cmake.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ jobs:
4747
sudo apt-get update
4848
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
4949
50-
- name: Install libhwloc
51-
run: .github/scripts/install_hwloc.sh
52-
5350
- name: Install g++-7
5451
if: matrix.compiler.cxx == 'g++-7'
5552
run: |
@@ -227,17 +224,11 @@ jobs:
227224
Expand-Archive -Path "$WorkingDir\doxygen.zip"
228225
Add-Content $env:GITHUB_PATH "$WorkingDir\doxygen"
229226
230-
- name: Install hwloc
231-
run: vcpkg install hwloc:x64-windows
232-
233227
- name: Configure CMake
234-
env:
235-
VCPKG_PATH: "C:/vcpkg/packages/hwloc_x64-windows"
236228
run: >
237229
cmake
238230
-B${{github.workspace}}/build
239231
${{matrix.toolset}}
240-
-DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
241232
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
242233
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
243234
-DCMAKE_POLICY_DEFAULT_CMP0094=NEW
@@ -276,9 +267,6 @@ jobs:
276267
- name: Install prerequisites
277268
run: python3 -m pip install -r third_party/requirements.txt
278269

279-
- name: Install hwloc
280-
run: brew install hwloc
281-
282270
- name: Configure CMake
283271
run: >
284272
cmake

.github/workflows/codeql.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131
- name: Install pip packages
3232
run: pip install -r third_party/requirements.txt
3333

34-
- name: Install apt packages
35-
run: |
36-
sudo apt-get update
37-
sudo apt-get install -y libhwloc-dev
38-
3934
- name: Configure CMake
4035
run: cmake -B ${{github.workspace}}/build -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -DUR_ENABLE_TRACING=ON -DUR_BUILD_TOOLS=ON -DUMF_ENABLE_POOL_TRACKING=ON
4136

@@ -66,13 +61,8 @@ jobs:
6661
- name: Install pip packages
6762
run: python3 -m pip install -r third_party/requirements.txt
6863

69-
- name: Install hwloc
70-
run: vcpkg install hwloc:x64-windows
71-
7264
- name: Configure CMake
73-
env:
74-
VCPKG_PATH: "C:/vcpkg/packages/hwloc_x64-windows"
75-
run: cmake -B ${{github.workspace}}/build -DCMAKE_POLICY_DEFAULT_CMP0094=NEW -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -DUR_ENABLE_TRACING=ON -DUR_BUILD_TOOLS=ON -DUMF_ENABLE_POOL_TRACKING=ON -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
65+
run: cmake -B ${{github.workspace}}/build -DCMAKE_POLICY_DEFAULT_CMP0094=NEW -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -DUR_ENABLE_TRACING=ON -DUR_BUILD_TOOLS=ON -DUMF_ENABLE_POOL_TRACKING=ON
7666

7767
- name: Build
7868
run: cmake --build ${{github.workspace}}/build -j $(nproc) --config Release

.github/workflows/coverity.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ jobs:
3838
- name: Install pip packages
3939
run: pip install -r third_party/requirements.txt
4040

41-
- name: Install apt packages
42-
run: |
43-
sudo apt-get update
44-
sudo apt-get install -y libhwloc-dev
45-
4641
- name: Configure CMake
4742
run: >
4843
cmake

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ option(UR_USE_MSAN "enable MemorySanitizer" OFF)
3737
option(UR_USE_TSAN "enable ThreadSanitizer" OFF)
3838
option(UR_ENABLE_TRACING "enable api tracing through xpti" OFF)
3939
option(UR_ENABLE_SANITIZER "enable device sanitizer" ON)
40-
option(UMF_BUILD_SHARED_LIBRARY "Build UMF as shared library" ON)
40+
option(UMF_BUILD_SHARED_LIBRARY "Build UMF as shared library" OFF)
4141
option(UMF_ENABLE_POOL_TRACKING "Build UMF with pool tracking" ON)
4242
option(UR_BUILD_ADAPTER_L0 "Build the Level-Zero adapter" OFF)
4343
option(UR_BUILD_ADAPTER_OPENCL "Build the OpenCL adapter" OFF)

source/adapters/cuda/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ endif()
114114
target_link_libraries(${TARGET_NAME} PRIVATE
115115
${PROJECT_NAME}::headers
116116
${PROJECT_NAME}::common
117-
${PROJECT_NAME}::umf
118117
Threads::Threads
119118
cudadrv
120119
${EXTRA_LIBS}

source/adapters/cuda/usm.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ ur_usm_pool_handle_t_::ur_usm_pool_handle_t_(ur_context_handle_t Context,
398398

399399
HostMemPool =
400400
umf::poolMakeUniqueFromOps(
401-
umfDisjointPoolOps(), std::move(MemProvider),
401+
&UMF_DISJOINT_POOL_OPS, std::move(MemProvider),
402402
&this->DisjointPoolConfigs.Configs[usm::DisjointPoolMemType::Host])
403403
.second;
404404

@@ -407,15 +407,15 @@ ur_usm_pool_handle_t_::ur_usm_pool_handle_t_(ur_context_handle_t Context,
407407
umf::memoryProviderMakeUnique<USMDeviceMemoryProvider>(Context, Device)
408408
.second;
409409
DeviceMemPool = umf::poolMakeUniqueFromOps(
410-
umfDisjointPoolOps(), std::move(MemProvider),
410+
&UMF_DISJOINT_POOL_OPS, std::move(MemProvider),
411411
&this->DisjointPoolConfigs
412412
.Configs[usm::DisjointPoolMemType::Device])
413413
.second;
414414
MemProvider =
415415
umf::memoryProviderMakeUnique<USMSharedMemoryProvider>(Context, Device)
416416
.second;
417417
SharedMemPool = umf::poolMakeUniqueFromOps(
418-
umfDisjointPoolOps(), std::move(MemProvider),
418+
&UMF_DISJOINT_POOL_OPS, std::move(MemProvider),
419419
&this->DisjointPoolConfigs
420420
.Configs[usm::DisjointPoolMemType::Shared])
421421
.second;

source/adapters/cuda/usm.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ class USMMemoryProvider {
8181
umf_result_t purge_force(void *, size_t) {
8282
return UMF_RESULT_ERROR_NOT_SUPPORTED;
8383
};
84-
umf_result_t allocation_merge(void *, void *, size_t) {
85-
return UMF_RESULT_ERROR_UNKNOWN;
86-
}
87-
umf_result_t allocation_split(void *, size_t, size_t) {
88-
return UMF_RESULT_ERROR_UNKNOWN;
89-
}
9084
virtual const char *get_name() = 0;
9185

9286
virtual ~USMMemoryProvider() = default;

source/adapters/hip/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ if("${UR_HIP_PLATFORM}" STREQUAL "AMD")
140140
target_link_libraries(${TARGET_NAME} PRIVATE
141141
${PROJECT_NAME}::headers
142142
${PROJECT_NAME}::common
143-
${PROJECT_NAME}::umf
144143
rocmdrv
145144
)
146145

@@ -175,7 +174,6 @@ elseif("${UR_HIP_PLATFORM}" STREQUAL "NVIDIA")
175174
target_link_libraries(${TARGET_NAME} PRIVATE
176175
${PROJECT_NAME}::headers
177176
${PROJECT_NAME}::common
178-
${PROJECT_NAME}::umf
179177
Threads::Threads
180178
cudadrv
181179
cudart

0 commit comments

Comments
 (0)