-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1070 from pasaulais/pa/dlopen-cupti
[CUDA] Dynamically load the CUPTI library when tracing
- Loading branch information
Showing
5 changed files
with
188 additions
and
26 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
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
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
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,24 @@ | ||
//===--------- tracing.hpp - CUDA Host API Tracing -------------------------==// | ||
// | ||
// Copyright (C) 2023 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
struct cuda_tracing_context_t_; | ||
|
||
cuda_tracing_context_t_ *createCUDATracingContext(); | ||
void freeCUDATracingContext(cuda_tracing_context_t_ *Ctx); | ||
|
||
bool loadCUDATracingLibrary(cuda_tracing_context_t_ *Ctx); | ||
void unloadCUDATracingLibrary(cuda_tracing_context_t_ *Ctx); | ||
|
||
void enableCUDATracing(cuda_tracing_context_t_ *Ctx); | ||
void disableCUDATracing(cuda_tracing_context_t_ *Ctx); | ||
|
||
// Deprecated. Will be removed once pi_cuda has been updated to use the variant | ||
// that takes a context pointer. | ||
void enableCUDATracing(); |
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