提交 44486b6f 编写于 作者: G gangliao 提交者: GitHub

Merge pull request #3097 from QiJune/fix_bug_memory

fix bug in memory GetGPUBuddyAllocator
...@@ -60,6 +60,7 @@ detail::BuddyAllocator* GetGPUBuddyAllocator(int gpu_id) { ...@@ -60,6 +60,7 @@ detail::BuddyAllocator* GetGPUBuddyAllocator(int gpu_id) {
platform::GpuMaxChunkSize()); platform::GpuMaxChunkSize());
} }
} }
platform::SetDeviceId(gpu_id);
return as[gpu_id]; return as[gpu_id];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册