Skip to content

Commit

Permalink
fix mac build error (#8856)
Browse files Browse the repository at this point in the history
  • Loading branch information
QiJune committed Mar 8, 2018
1 parent f3cdeb9 commit 47ca181
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paddle/fluid/inference/tests/test_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 47ca181

Please sign in to comment.