Unverified Commit 01304706 authored by Ziyue Yang's avatar Ziyue Yang Committed by GitHub
Browse files

Bug Fix - Fix P2P detection in gpu_copy (#317)

**Description**
Fix invalid reference of P2P detection result in gpu_copy.
parent 4f5027db
......@@ -655,7 +655,7 @@ int EnablePeerAccess(int src_gpu_id, int dst_gpu_id, int *can_access) {
fprintf(stderr, "EnablePeerAccess::cudaDeviceCanAccessPeer error: %d\n", cuda_err);
return -1;
}
if (can_access) {
if (*can_access) {
if (SetGpu(src_gpu_id)) {
return -1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment