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

Wrong parameter name in hacked_cuMemcpyHtoD_v2(hacked_cuMemcpyHtoD_v2的参数命名错误) #50

Open
ShiningKedama opened this issue Feb 11, 2025 · 0 comments

Comments

@ShiningKedama
Copy link

In src/cuda/memory.c

CUresult hacked_cuMemcpyHtoD_v2(CUdeviceptr srcDevice, const void* dstHost, size_t ByteCount) {
// TODO: compute bytesize
LOG_DEBUG("cuMemcpyHtoD_v2,srcDevice=%llx dstHost=%p count=%lu",srcDevice,dstHost,ByteCount);
ENSURE_RUNNING();
CUresult res = CUDA_OVERRIDE_CALL(cuda_library_entry,cuMemcpyHtoD_v2, srcDevice, dstHost, ByteCount);
return res;
}

Wrong para names: CUdeviceptr srcDevice, const void* dstHost, size_t ByteCount
Para names in docs from NVIDIA: CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount
According to function name, host is src and device is dst.

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