ENH: clang-format

gangliao-patch-1
liaogang 8 years ago
parent 3e9aa7fd8b
commit 9490d243dd

@ -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

Loading…
Cancel
Save