Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix unused variable in gpu device storage
Browse files Browse the repository at this point in the history
  • Loading branch information
vlado committed Feb 27, 2019
1 parent e3f609b commit 200d949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/gpu_device_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class GPUDeviceStorage {
}; // class GPUDeviceStorage

inline void* GPUDeviceStorage::Alloc(Storage::Handle* handle) {
const size_t size = handle->size;
void* ret = nullptr;
#if MXNET_USE_CUDA
const size_t size = handle->size;
mxnet::common::cuda::DeviceStore device_store(handle->ctx.real_dev_id(), true);
#if MXNET_USE_NCCL
std::lock_guard<std::mutex> l(Storage::Get()->GetMutex(Context::kGPU));
Expand Down

0 comments on commit 200d949

Please sign in to comment.