From 1b76e789cf689637aa6bb8e2905634257db7b0af Mon Sep 17 00:00:00 2001 From: Zeng Jinle <32832641+sneaxiy@users.noreply.github.com> Date: Mon, 13 Jan 2020 16:05:40 +0800 Subject: [PATCH] remove cuda allocator ctor, test=develop (#22212) --- paddle/fluid/memory/allocation/cuda_allocator.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/fluid/memory/allocation/cuda_allocator.h b/paddle/fluid/memory/allocation/cuda_allocator.h index ae48d26cee..5969d4d20d 100644 --- a/paddle/fluid/memory/allocation/cuda_allocator.h +++ b/paddle/fluid/memory/allocation/cuda_allocator.h @@ -24,8 +24,7 @@ namespace allocation { class CUDAAllocator : public Allocator { public: explicit CUDAAllocator(const platform::CUDAPlace& place) : place_(place) {} - explicit CUDAAllocator(const platform::Place& place) - : place_(boost::get(place)) {} + bool IsAllocThreadSafe() const override; protected: -- GitLab