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

ENH: clang-format

上级 3e9aa7fd
......@@ -16,8 +16,8 @@
#include "paddle/memory/detail/system_allocator.h"
#include <vector>
#include <mutex>
#include <vector>
namespace paddle {
namespace memory {
......
......@@ -29,13 +29,12 @@ inline void throw_on_error(cudaError_t e, const char* message) {
}
int GetDeviceCount(void) {
int count;
throw_on_error(cudaGetDeviceCount(&count),
"cudaGetDeviceCount failed");
return count;
int count;
throw_on_error(cudaGetDeviceCount(&count), "cudaGetDeviceCount failed");
return count;
}
} // namespace platform
} // 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.
先完成此消息的编辑!
想要评论请 注册