From 68700b51982f04678bc7def33a0d0404cd65a3f9 Mon Sep 17 00:00:00 2001 From: "Vinogradov, Sergei" Date: Mon, 10 Feb 2025 08:56:15 -0800 Subject: [PATCH 1/2] Fix ubench for CUDA provider --- benchmark/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt index efad0baf36..941c685e34 100644 --- a/benchmark/CMakeLists.txt +++ b/benchmark/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2023-2024 Intel Corporation +# Copyright (C) 2023-2025 Intel Corporation # Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception @@ -109,6 +109,9 @@ function(add_umf_benchmark) if(UMF_BUILD_CUDA_PROVIDER) target_compile_definitions(${BENCH_NAME} PRIVATE UMF_BUILD_CUDA_PROVIDER=1) + target_include_directories( + ${BENCH_NAME} PRIVATE ${UMF_CMAKE_SOURCE_DIR}/test/common + ${CUDA_INCLUDE_DIRS}) endif() if(UMF_BUILD_GPU_TESTS) target_compile_definitions(${BENCH_NAME} PRIVATE UMF_BUILD_GPU_TESTS=1) From 82e5f7fba32f2ffcfb77ff1fd6f409edd625ce73 Mon Sep 17 00:00:00 2001 From: "Vinogradov, Sergei" Date: Mon, 10 Feb 2025 09:45:13 -0800 Subject: [PATCH 2/2] Enable UMF_BUILD_BENCHMARKS_MT=ON in GPU CI flows --- .github/workflows/reusable_gpu.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/reusable_gpu.yml b/.github/workflows/reusable_gpu.yml index 913a0f0f18..8dd8bcdb5c 100644 --- a/.github/workflows/reusable_gpu.yml +++ b/.github/workflows/reusable_gpu.yml @@ -88,6 +88,7 @@ jobs: -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} -DUMF_BUILD_BENCHMARKS=ON + -DUMF_BUILD_BENCHMARKS_MT=ON -DUMF_BUILD_TESTS=ON -DUMF_BUILD_GPU_TESTS=ON -DUMF_BUILD_GPU_EXAMPLES=ON