提交 9490d243 编写于 作者: L liaogang

ENH: clang-format

上级 3e9aa7fd
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include "paddle/memory/detail/system_allocator.h" #include "paddle/memory/detail/system_allocator.h"
#include <vector>
#include <mutex> #include <mutex>
#include <vector>
namespace paddle { namespace paddle {
namespace memory { namespace memory {
......
...@@ -29,13 +29,12 @@ inline void throw_on_error(cudaError_t e, const char* message) { ...@@ -29,13 +29,12 @@ inline void throw_on_error(cudaError_t e, const char* message) {
} }
int GetDeviceCount(void) { int GetDeviceCount(void) {
int count; int count;
throw_on_error(cudaGetDeviceCount(&count), throw_on_error(cudaGetDeviceCount(&count), "cudaGetDeviceCount failed");
"cudaGetDeviceCount failed"); return count;
return count;
} }
} // namespace platform } // namespace platform
} // namespace paddle } // namespace paddle
#endif // PADDLE_ONLY_CPU #endif // PADDLE_ONLY_CPU
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册