Skip to content

Commit

Permalink
format: sort include order
Browse files Browse the repository at this point in the history
  • Loading branch information
changlan committed Jun 28, 2019
1 parent 3bc24c0 commit 65fe774
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 21 deletions.
3 changes: 1 addition & 2 deletions byteps/common/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
// limitations under the License.
// =============================================================================

#include "common.h"
#include <cassert>
#include <sstream>

#include "common.h"
#include "logging.h"

namespace byteps {
Expand Down
3 changes: 1 addition & 2 deletions byteps/common/core_loops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
// limitations under the License.
// =============================================================================

#include "core_loops.h"
#include <cuda_runtime.h>
#include <chrono>
#include <memory>

#include "common.h"
#include "core_loops.h"
#include "global.h"
#include "logging.h"

Expand Down
3 changes: 1 addition & 2 deletions byteps/common/cpu_reducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
// limitations under the License.
// =============================================================================

#include "cpu_reducer.h"
#include <string>
#include <vector>

#include "cpu_reducer.h"
#include "global.h"

namespace byteps {
Expand Down
3 changes: 1 addition & 2 deletions byteps/common/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
// limitations under the License.
// =============================================================================

#include "logging.h"
#include <algorithm>
#include <chrono>
#include <iomanip>
#include <iostream>

#include "logging.h"

namespace byteps {
namespace common {

Expand Down
2 changes: 0 additions & 2 deletions byteps/common/nccl_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
// =============================================================================

#include "nccl_manager.h"

#include <string>

#include "global.h"
#include "logging.h"

Expand Down
2 changes: 0 additions & 2 deletions byteps/common/operations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
// =============================================================================

#include "operations.h"

#include <cuda_runtime.h>
#include <cstring>
#include <memory>
#include <string>
#include <thread>
#include <vector>

#include "core_loops.h"
#include "global.h"
#include "logging.h"
Expand Down
2 changes: 0 additions & 2 deletions byteps/common/scheduled_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
// =============================================================================

#include "scheduled_queue.h"

#include <algorithm>

#include "global.h"
#include "logging.h"

Expand Down
2 changes: 0 additions & 2 deletions byteps/common/shared_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
// =============================================================================

#include "shared_memory.h"

#include <fcntl.h>
#include <numa.h>
#include <sys/mman.h>
#include <sys/shm.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

#include "global.h"

namespace byteps {
Expand Down
4 changes: 1 addition & 3 deletions byteps/mxnet/ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
// limitations under the License.
// =============================================================================

#include "ops.h"
#include <atomic>

#include "../common/operations.h"

#include "adapter.h"
#include "cuda_util.h"
#include "ops.h"
#include "ready_event.h"
#include "tensor_util.h"

Expand Down
1 change: 0 additions & 1 deletion byteps/mxnet/ready_event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#if HAVE_CUDA
#include <cassert>

#include "ready_event.h"

namespace byteps {
Expand Down
1 change: 0 additions & 1 deletion byteps/mxnet/tensor_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <mxnet/base.h>
#include <mxnet/ndarray.h>
#include <cassert>

#include "../common/common.h"
#include "cuda_util.h"
#include "util.h"
Expand Down

0 comments on commit 65fe774

Please sign in to comment.