fix mac build error (#8856)

shanyi15-patch-2
QI JUN 7 years ago committed by GitHub
parent f3cdeb9a29
commit 47ca1814f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,6 +110,8 @@ void TestInference(const std::string& dirname,
// Users can get the device_id using:
// int device_id = place.GetDeviceId();
paddle::platform::SetDeviceId(0);
#else
PADDLE_THROW("'CUDAPlace' is not supported in CPU only device.");
#endif
}

Loading…
Cancel
Save