diff options
author | soumith <soumith@fb.com> | 2016-12-18 01:01:11 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2016-12-18 01:01:11 +0300 |
commit | bc5bdb881d1d6907a34a32e5979841a9854ba267 (patch) | |
tree | 9d34fca1f1067c2a37ae4a3d6aa5fa5dffa6558f | |
parent | ec93ff7b486274e248aa7156af7c8a1f16281e24 (diff) |
avoid shadowing warnings
-rw-r--r-- | lib/THC/THCCachingAllocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/THC/THCCachingAllocator.cpp b/lib/THC/THCCachingAllocator.cpp index 85cafd4..eeae04a 100644 --- a/lib/THC/THCCachingAllocator.cpp +++ b/lib/THC/THCCachingAllocator.cpp @@ -112,7 +112,7 @@ struct THCCachingAllocator } else { void* ptr; size_t alloc_size = small ? kSmallAlloc : size; - cudaError_t err = cuda_malloc_retry(device, &ptr, alloc_size); + err = cuda_malloc_retry(device, &ptr, alloc_size); if (err != cudaSuccess) { return err; } |