Skip to content

Commit

Permalink
Conditional inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Oct 17, 2023
1 parent eff3a26 commit 43dfc10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/callbacks/gpu_memory_usage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@
#include "lbann/models/model.hpp"
#include "lbann/utils/gpu/helpers.hpp"
#include "lbann/utils/serialize.hpp"
#include <h2/gpu/memory_utils.hpp>
#include <iomanip>
#include <sstream>

#ifdef LBANN_HAS_GPU
#include <h2/gpu/memory_utils.hpp>
#endif

#include "lbann/proto/callbacks.pb.h"

namespace {
Expand Down
5 changes: 4 additions & 1 deletion src/callbacks/memory_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@
#include "lbann/proto/callbacks.pb.h"

#include <algorithm>
#include <h2/gpu/memory_utils.hpp>
#include <string>

#ifdef LBANN_HAS_GPU
#include <h2/gpu/memory_utils.hpp>
#endif

namespace lbann {
namespace callback {

Expand Down

0 comments on commit 43dfc10

Please sign in to comment.