Skip to content

Commit 0057c3a

Browse files
committed
Use DEBUG UMF
1 parent d3fe1bc commit 0057c3a

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

source/common/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ target_include_directories(ur_common PUBLIC
3636

3737
message(STATUS "Download Unified Memory Framework from github.com")
3838
if (NOT DEFINED UMF_REPO)
39-
set(UMF_REPO "https://github.com/oneapi-src/unified-memory-framework.git")
39+
set(UMF_REPO "https://github.com/ldorau/unified-memory-framework.git")
4040
endif()
4141

4242
if (NOT DEFINED UMF_TAG)
4343
# commit ace9f4a60b686463fdad15cd016c548237cb79e0
4444
# Author: Rafał Rudnicki <[email protected]>
45-
# Date: Mon Feb 10 11:39:15 2025 +0100
46-
# Merge pull request #1088 from ldorau/Fix_remove_CUDA_ERROR_INVALID_RESOURCE_TYPE
47-
set(UMF_TAG ace9f4a60b686463fdad15cd016c548237cb79e0)
45+
# Date: Mon Jan 27 10:57:57 2025 +0100
46+
# Merge pull request #1056 from lukaszstolarczuk/hwloc-revert-examples-win
47+
set(UMF_TAG UR-test-tag)
4848
endif()
4949

5050
message(STATUS "Will fetch Unified Memory Framework from ${UMF_REPO}")
@@ -74,6 +74,10 @@ else()
7474
set(UMF_BUILD_SHARED_LIBRARY ${UMF_BUILD_SHARED_LIBRARY} CACHE INTERNAL "Build UMF shared library")
7575
set(UMF_BUILD_LIBUMF_POOL_DISJOINT ON CACHE INTERNAL "Build Disjoint Pool")
7676

77+
# DEBUG settings
78+
set(UMF_CMAKE_BUILD_TYPE ON CACHE INTERNAL "UMF_CMAKE_BUILD_TYPE=ON")
79+
set(UMF_DEVELOPER_MODE ON CACHE INTERNAL "UMF_DEVELOPER_MODE=ON")
80+
7781
FetchContent_MakeAvailable(unified-memory-framework)
7882
FetchContent_GetProperties(unified-memory-framework)
7983
endif()

test/adapters/cuda/context_tests.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ UUR_INSTANTIATE_DEVICE_TEST_SUITE(cudaUrContextCreateTest);
1515

1616
constexpr unsigned int known_cuda_api_version = 3020;
1717

18+
namespace umf {
19+
ur_result_t getProviderNativeError(const char *, int32_t) {
20+
// TODO: implement when UMF supports CUDA
21+
return UR_RESULT_ERROR_UNKNOWN;
22+
}
23+
} // namespace umf
24+
1825
TEST_P(cudaUrContextCreateTest, CreateWithChildThread) {
1926
uur::raii::Context context = nullptr;
2027
ASSERT_SUCCESS(urContextCreate(1, &device, nullptr, context.ptr()));

0 commit comments

Comments
 (0)