Skip to content

Commit

Permalink
Merge pull request #1310 from pasaulais/remove-old-cuda-tracing-fn
Browse files Browse the repository at this point in the history
[CUDA] Remove unused function variant
  • Loading branch information
kbenzie committed Apr 12, 2024
2 parents 70ba150 + 1cf4a4e commit 0eab26c
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 0eab26c

Please sign in to comment.