Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cuGetProcAddress_v2 的hook在cuda11.5上segmentfault #36

Open
huanghuangzym opened this issue Nov 28, 2024 · 0 comments
Open

cuGetProcAddress_v2 的hook在cuda11.5上segmentfault #36

huanghuangzym opened this issue Nov 28, 2024 · 0 comments

Comments

@huanghuangzym
Copy link

huanghuangzym commented Nov 28, 2024

使用测试代码
`
#include <cuda_runtime.h>
#include <stdio.h>

int main() {
int size = 10 * 1024 * 1024; // 1GB
float *devPtr;

cudaError_t err = cudaMalloc((void**)&devPtr, size);
if (err != cudaSuccess) {
    fprintf(stderr, "cudaMalloc failed: %s\n", cudaGetErrorString(err));
    return 1;
}

// ...你的代码...

cudaFree(devPtr);
return 0;

}
`

gdb进行调试
发现进入了cuGetProcAddress_v2 ,然后segmentfault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant