Skip to content

Commit

Permalink
Tidy more includes. (#103)
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel K. Gutierrez <[email protected]>
  • Loading branch information
samuelkgutierrez authored Mar 21, 2024
1 parent 449cdba commit cdbd0eb
Show file tree
Hide file tree
Showing 38 changed files with 15 additions and 52 deletions.
3 changes: 0 additions & 3 deletions src/quo-vadis-mpi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
* @file quo-vadis-mpi.cc
*/

#include "qvi-common.h" // IWYU pragma: keep

#include "quo-vadis-mpi.h"

#include "qvi-context.h"
#include "qvi-group-mpi.h"
#include "qvi-zgroup-mpi.h"
Expand Down
3 changes: 0 additions & 3 deletions src/quo-vadis-process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
* @file quo-vadis-process.cc
*/

#include "qvi-common.h" // IWYU pragma: keep

#include "quo-vadis-process.h"

#include "qvi-context.h"
#include "qvi-zgroup-process.h"

Expand Down
2 changes: 0 additions & 2 deletions src/quo-vadis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* @file quo-vadis.cc
*/

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-context.h" // IWYU pragma: keep
#include "qvi-scope.h"

Expand Down
3 changes: 1 addition & 2 deletions src/quo-vadisd.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2020-2022 Triad National Security, LLC
* Copyright (c) 2020-2024 Triad National Security, LLC
* All rights reserved.
*
* Copyright (c) 2020-2021 Lawrence Livermore National Security, LLC
Expand All @@ -19,7 +19,6 @@
// TODO(skg)
// * Add something like QV_SHUTDOWN_ON_DISCONNECT or QV_DAEMON_KEEP_ALIVE

#include "qvi-common.h"
#include "qvi-utils.h"
#include "qvi-hwloc.h"
#include "qvi-line.h"
Expand Down
1 change: 0 additions & 1 deletion src/qvi-bbuff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @file qvi-bbuff.cc
*/

#include "qvi-common.h"
#include "qvi-bbuff.h"
#include "qvi-utils.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-bind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @file qvi-bind.cc
*/

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-bind.h"
#include "qvi-utils.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-bind.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-task.h"
#include "qvi-hwloc.h" // IWYU pragma: keep
#include "qvi-rmi.h"

#ifdef __cplusplus
Expand Down
2 changes: 2 additions & 0 deletions src/qvi-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "qvi-macros.h"
#include "quo-vadis.h"

#include "hwloc.h"

#include <assert.h>
#include <errno.h>
#include <fcntl.h>
Expand Down
1 change: 0 additions & 1 deletion src/qvi-context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @file qvi-context.cc
*/

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-context.h"
#include "qvi-utils.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-context.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#define QVI_CONTEXT_H

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-rmi.h"
#include "qvi-zgroup.h"
#include "qvi-bind.h"
Expand Down
1 change: 0 additions & 1 deletion src/qvi-group-mpi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @file qvi-group-mpi.cc
*/

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-group-mpi.h"

qvi_group_mpi_s::~qvi_group_mpi_s(void)
Expand Down
3 changes: 2 additions & 1 deletion src/qvi-group-mpi.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2020-2022 Triad National Security, LLC
* Copyright (c) 2020-2024 Triad National Security, LLC
* All rights reserved.
*
* Copyright (c) 2020-2021 Lawrence Livermore National Security, LLC
Expand All @@ -18,6 +18,7 @@
#ifndef QVI_GROUP_MPI_H
#define QVI_GROUP_MPI_H

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-group.h"
#include "qvi-mpi.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-group-process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @file qvi-group-process.cc
*/

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-group-process.h"

qvi_group_process_s::~qvi_group_process_s(void)
Expand Down
3 changes: 2 additions & 1 deletion src/qvi-group-process.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2020-2022 Triad National Security, LLC
* Copyright (c) 2020-2024 Triad National Security, LLC
* All rights reserved.
*
* This file is part of the quo-vadis project. See the LICENSE file at the
Expand All @@ -15,6 +15,7 @@
#ifndef QVI_GROUP_PROCESS_H
#define QVI_GROUP_PROCESS_H

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-group.h"
#include "qvi-process.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @file qvi-group.cc
*/

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-group.h"
#include "qvi-utils.h"
#include "qvi-log.h"
Expand Down
3 changes: 2 additions & 1 deletion src/qvi-group.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2021-2022 Triad National Security, LLC
* Copyright (c) 2021-2024 Triad National Security, LLC
* All rights reserved.
*
* Copyright (c) 2021 Lawrence Livermore National Security, LLC
Expand All @@ -17,6 +17,7 @@
#ifndef QVI_GROUP_H
#define QVI_GROUP_H

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-bbuff.h"
#include "qvi-task.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-hwloc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @file qvi-hwloc.cc
*/

#include "qvi-common.h"
#include "qvi-hwloc.h"
#include "qvi-utils.h"

Expand Down
2 changes: 0 additions & 2 deletions src/qvi-hwloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include "qvi-common.h"
#include "qvi-task.h"

#include "hwloc.h" // IWYU pragma: keep

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
3 changes: 0 additions & 3 deletions src/qvi-line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
* More generally, they are types that can be easily serialized.
*/

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-line.h"
#include "qvi-bbuff-rmi.h"
#include "qvi-utils.h" // IWYU pragma: keep

int
qvi_line_config_new(
Expand Down
1 change: 0 additions & 1 deletion src/qvi-line.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define QVI_LINE_H

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-bbuff.h"
#include "qvi-hwloc.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-map.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define QVI_MAP_H

#include "qvi-common.h"
#include "qvi-hwloc.h" // IWYU pragma: keep

/**
* Modes used to influence how affinity preserving mapping is done.
Expand Down
4 changes: 0 additions & 4 deletions src/qvi-mpi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@
* @file qvi-mpi.cc
*/

#include "qvi-common.h"

#include "qvi-mpi.h"
#include "qvi-utils.h" // IWYU pragma: keep

#include "mpi.h"

using qvi_mpi_group_tab_t = std::unordered_map<
qvi_mpi_group_id_t, qvi_mpi_group_t
>;
Expand Down
1 change: 0 additions & 1 deletion src/qvi-mpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define QVI_MPI_H

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-task.h"
#include "qvi-group.h"
#include "qvi-bbuff.h"
Expand Down
1 change: 0 additions & 1 deletion src/qvi-nvml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @file qvi-nvml.cc
*/

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-nvml.h"
#include "qvi-hwloc.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @file qvi-process.cc
*/

#include "qvi-common.h"
#include "qvi-process.h"
#include "qvi-utils.h"
#include "qvi-group.h"
Expand Down
1 change: 0 additions & 1 deletion src/qvi-process.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define QVI_PROCESS_H

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-task.h"
#include "qvi-bbuff.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-rmi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
//
// TODO(skg) We need to implement timeouts.

#include "qvi-common.h"
#include "qvi-rmi.h"
#include "qvi-bbuff-rmi.h"
#include "qvi-hwpool.h"
Expand Down
1 change: 0 additions & 1 deletion src/qvi-rmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#define QVI_RMI_H

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-line.h"
#include "qvi-hwloc.h"
#include "qvi-hwpool.h"
Expand Down
1 change: 0 additions & 1 deletion src/qvi-rsmi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @file qvi-rsmi.cc
*/

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-rsmi.h"
#include "qvi-hwloc.h"

Expand Down
2 changes: 0 additions & 2 deletions src/qvi-scope.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

// TODO(skg) Use distance API for device affinity.

#include "qvi-common.h"

#include "qvi-scope.h"
#include "qvi-rmi.h"
#include "qvi-hwpool.h"
Expand Down
1 change: 0 additions & 1 deletion src/qvi-scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define QVI_SCOPE_H

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-zgroup.h"
#include "qvi-rmi.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @file qvi-task.cc
*/

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-task.h"
#include "qvi-utils.h"

Expand Down
1 change: 0 additions & 1 deletion src/qvi-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @file qvi-utils.cc
*/

#include "qvi-common.h"
#include "qvi-utils.h"

/** Description of the return codes. */
Expand Down
2 changes: 0 additions & 2 deletions src/qvi-zgroup-mpi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* @file qvi-zgroup-mpi.cc
*/

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-zgroup-mpi.h"
#include "qvi-group-mpi.h"

Expand Down
3 changes: 2 additions & 1 deletion src/qvi-zgroup-mpi.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2020-2022 Triad National Security, LLC
* Copyright (c) 2020-2024 Triad National Security, LLC
* All rights reserved.
*
* Copyright (c) 2020-2021 Lawrence Livermore National Security, LLC
Expand All @@ -19,6 +19,7 @@
#ifndef QVI_ZGROUP_MPI_H
#define QVI_ZGROUP_MPI_H

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-zgroup.h"
#include "qvi-mpi.h"

Expand Down
2 changes: 0 additions & 2 deletions src/qvi-zgroup-process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
* @file qvi-zgroup-process.cc
*/

#include "qvi-common.h" // IWYU pragma: keep

#include "qvi-zgroup-process.h"
#include "qvi-group-process.h"

Expand Down
3 changes: 2 additions & 1 deletion src/qvi-zgroup-process.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2020-2022 Triad National Security, LLC
* Copyright (c) 2020-2024 Triad National Security, LLC
* All rights reserved.
*
* This file is part of the quo-vadis project. See the LICENSE file at the
Expand All @@ -17,6 +17,7 @@
#ifndef QVI_ZGROUP_PROCESS_H
#define QVI_ZGROUP_PROCESS_H

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-zgroup.h"
#include "qvi-process.h"

Expand Down
3 changes: 2 additions & 1 deletion src/qvi-zgroup.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2020-2022 Triad National Security, LLC
* Copyright (c) 2020-2024 Triad National Security, LLC
* All rights reserved.
*
* Copyright (c) 2020-2021 Lawrence Livermore National Security, LLC
Expand All @@ -20,6 +20,7 @@
#ifndef QVI_ZGROUP_H
#define QVI_ZGROUP_H

#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-task.h"
#include "qvi-group.h"

Expand Down

0 comments on commit cdbd0eb

Please sign in to comment.