Skip to content

Commit

Permalink
[CUDA] Remove unused function variant
Browse files Browse the repository at this point in the history
  • Loading branch information
pasaulais committed Feb 1, 2024
1 parent 3225b82 commit 34e8de3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
11 changes: 0 additions & 11 deletions source/adapters/cuda/tracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,6 @@ void unloadCUDATracingLibrary(cuda_tracing_context_t_ *Ctx) {
#endif // XPTI_ENABLE_INSTRUMENTATION
}

void enableCUDATracing() {
#ifdef XPTI_ENABLE_INSTRUMENTATION
if (!xptiTraceEnabled())
return;
static cuda_tracing_context_t_ *Ctx = nullptr;
if (!Ctx)
Ctx = createCUDATracingContext();
enableCUDATracing(Ctx);
#endif
}

void enableCUDATracing(cuda_tracing_context_t_ *Ctx) {
#ifdef XPTI_ENABLE_INSTRUMENTATION
if (!Ctx || !xptiTraceEnabled())
Expand Down
4 changes: 0 additions & 4 deletions source/adapters/cuda/tracing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ 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();

0 comments on commit 34e8de3

Please sign in to comment.