Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/nccl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Jeaugey <sjeaugey@nvidia.com>2017-11-29 05:41:26 +0300
committerGitHub <noreply@github.com>2017-11-29 05:41:26 +0300
commit286916a1a37ca1fe8cd43e280f5c42ec29569fc5 (patch)
tree6e484e34e8020f91e376316c1640f22baa2506b2
parent03d856977ecbaac87e598c0c4bafca96761b9ac7 (diff)
parent680a35c6b76bb73ce1161f6ddaa02a8e3df96221 (diff)
Merge pull request #119 from sclarkson/master
Fix tests: call cudaHostUnregister on the host pointer instead of the device pointer.
-rw-r--r--test/include/test_utilities.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/include/test_utilities.h b/test/include/test_utilities.h
index c194205..80aeaee 100644
--- a/test/include/test_utilities.h
+++ b/test/include/test_utilities.h
@@ -310,7 +310,7 @@ double CheckDelta(const T* results, const T* expected, int N) {
CUDACHECK(cudaHostGetDevicePointer(&devmax, &maxerr, 0));
deltaKern<T, 512><<<1, 512>>>(results, devexp, N, devmax);
CUDACHECK(cudaHostUnregister(&maxerr));
- CUDACHECK(cudaHostUnregister((void*)devexp));
+ CUDACHECK(cudaHostUnregister((void*)expected));
return maxerr;
}