Skip to content

Commit 32461f9

Browse files
committed
feat: hijack cuGetProcAddress to return hooked function address
Signed-off-by: thomassong <[email protected]>
1 parent 8fd9241 commit 32461f9

File tree

3 files changed

+161
-58
lines changed

3 files changed

+161
-58
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.4
1+
master

src/cuda_originals.c

-6
Original file line numberDiff line numberDiff line change
@@ -2808,12 +2808,6 @@ CUresult cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target,
28082808
scope);
28092809
}
28102810

2811-
CUresult cuGetProcAddress(const char *symbol, void **pfn, int cudaVersion,
2812-
cuuint64_t flags) {
2813-
return CUDA_ENTRY_CALL(cuda_library_entry, cuGetProcAddress, symbol, pfn,
2814-
cudaVersion, flags);
2815-
}
2816-
28172811
CUresult cuGraphAddMemAllocNode(CUgraphNode *phGraphNode, CUgraph hGraph,
28182812
const CUgraphNode *dependencies,
28192813
size_t numDependencies,

0 commit comments

Comments
 (0)