Skip to content

Commit

Permalink
ENH: clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
gangliao committed Jun 28, 2017
1 parent 3e9aa7f commit 9490d24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion paddle/memory/detail/buddy_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#include "paddle/memory/detail/system_allocator.h"

#include <vector>
#include <mutex>
#include <vector>

namespace paddle {
namespace memory {
Expand Down
9 changes: 4 additions & 5 deletions paddle/platform/cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9490d24

Please sign in to comment.