From 0d60b591bbae554ae61f391ccba4768816cc8070 Mon Sep 17 00:00:00 2001 From: qijun Date: Tue, 19 Dec 2017 14:28:04 +0800 Subject: [PATCH] fix ci --- paddle/operators/get_places_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/get_places_op.cc b/paddle/operators/get_places_op.cc index 6373df2158d..5158af8f429 100644 --- a/paddle/operators/get_places_op.cc +++ b/paddle/operators/get_places_op.cc @@ -41,7 +41,7 @@ class GetPlacesOp : public framework::OperatorBase { places.resize(trainer_count); if (device_type == "CUDA") { #ifdef PADDLE_WITH_CUDA - PADDLE_ENFORCE_LT(trainer_count, GetCUDADeviceCount()); + PADDLE_ENFORCE_LT(trainer_count, platform::GetCUDADeviceCount()); for (int i = 0; i < trainer_count; i++) { places.emplace_back(platform::GPUPlace(i)); } -- GitLab