Skip to content

Commit

Permalink
Merge pull request #31 from hzliangbin/master
Browse files Browse the repository at this point in the history
add cuGetProcAddress to cuda_hook_entry list
  • Loading branch information
mYmNeo authored Nov 15, 2022
2 parents 5a2600c + a3542ed commit 72e0115
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hijack_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ static int delta(int, int, int);
/** export function definition */
CUresult cuDriverGetVersion(int *driverVersion);
CUresult cuInit(unsigned int flag);
CUresult cuGetProcAddress(const char *symbol, void **pfn, int cudaVersion,
cuuint64_t flags);
CUresult cuMemAllocManaged(CUdeviceptr *dptr, size_t bytesize,
unsigned int flags);
CUresult cuMemAlloc_v2(CUdeviceptr *dptr, size_t bytesize);
Expand Down Expand Up @@ -151,6 +153,7 @@ CUresult cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z);
entry_t cuda_hooks_entry[] = {
{.name = "cuDriverGetVersion", .fn_ptr = cuDriverGetVersion},
{.name = "cuInit", .fn_ptr = cuInit},
{.name = "cuGetProcAddress", .fn_ptr = cuGetProcAddress},
{.name = "cuMemAllocManaged", .fn_ptr = cuMemAllocManaged},
{.name = "cuMemAlloc_v2", .fn_ptr = cuMemAlloc_v2},
{.name = "cuMemAlloc", .fn_ptr = cuMemAlloc},
Expand Down

0 comments on commit 72e0115

Please sign in to comment.