forked from oneapi-src/unified-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CUDA tracing when UR is built standalone
Previously, CUDA tracing only worked when the UR sources were built as part of the CUDA PI plugin. FindCUDACupti.cmake is copied verbatim from intel/llvm.
- Loading branch information
1 parent
7db38b9
commit 8f2d208
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. | ||
# See LICENSE.TXT | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
macro(find_cuda_cupti_library) | ||
find_library(CUDA_cupti_LIBRARY | ||
NAMES cupti | ||
HINTS ${CUDA_TOOLKIT_ROOT_DIR} | ||
ENV CUDA_PATH | ||
PATH_SUFFIXES nvidia/current lib64 lib/x64 lib | ||
../extras/CUPTI/lib64/ | ||
../extras/CUPTI/lib/ | ||
) | ||
endmacro() | ||
|
||
macro(find_cuda_cupti_include_dir) | ||
find_path(CUDA_CUPTI_INCLUDE_DIR cupti.h PATHS | ||
"${CUDA_TOOLKIT_ROOT_DIR}/extras/CUPTI/include" | ||
"${CUDA_INCLUDE_DIRS}/../extras/CUPTI/include" | ||
"${CUDA_INCLUDE_DIRS}" | ||
NO_DEFAULT_PATH) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters