Skip to content

Commit c163f1c

Browse files
authored
Merge pull request #1089 from vinser52/svinogra_cuda_bench
Fix ubench for CUDA provider
2 parents ace9f4a + 82e5f7f commit c163f1c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/reusable_gpu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
8989
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
9090
-DUMF_BUILD_BENCHMARKS=ON
91+
-DUMF_BUILD_BENCHMARKS_MT=ON
9192
-DUMF_BUILD_TESTS=ON
9293
-DUMF_BUILD_GPU_TESTS=ON
9394
-DUMF_BUILD_GPU_EXAMPLES=ON

benchmark/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2023-2024 Intel Corporation
1+
# Copyright (C) 2023-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

@@ -109,6 +109,9 @@ function(add_umf_benchmark)
109109
if(UMF_BUILD_CUDA_PROVIDER)
110110
target_compile_definitions(${BENCH_NAME}
111111
PRIVATE UMF_BUILD_CUDA_PROVIDER=1)
112+
target_include_directories(
113+
${BENCH_NAME} PRIVATE ${UMF_CMAKE_SOURCE_DIR}/test/common
114+
${CUDA_INCLUDE_DIRS})
112115
endif()
113116
if(UMF_BUILD_GPU_TESTS)
114117
target_compile_definitions(${BENCH_NAME} PRIVATE UMF_BUILD_GPU_TESTS=1)

0 commit comments

Comments
 (0)