Skip to content

Commit

Permalink
Fix includes (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei1949 authored Jun 6, 2024
1 parent a49156c commit 8824ba9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions grape/parallel/thread_local_message_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ limitations under the License.

#include "grape/graph/adj_list.h"
#include "grape/serialization/in_archive.h"
#include "grape/util.h"

namespace grape {

Expand Down
4 changes: 3 additions & 1 deletion grape/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ limitations under the License.
#include <sys/time.h>

#include <algorithm>
#include <cassert>
#include <fstream>
#include <map>
#include <memory>
#include <string>
#include <vector>
Expand Down Expand Up @@ -180,7 +182,7 @@ inline std::map<std::string, size_t> parse_meminfo() {
return ret;
}

size_t get_available_memory() {
inline size_t get_available_memory() {
auto meminfo = parse_meminfo();
#ifdef USE_HUGEPAGES
return meminfo.at("HugePages_Free") * meminfo.at("Hugepagesize");
Expand Down
1 change: 1 addition & 0 deletions grape/utils/message_buffer_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ limitations under the License.
#include <deque>

#include "grape/config.h"
#include "grape/util.h"
#include "grape/utils/concurrent_queue.h"

namespace grape {
Expand Down

0 comments on commit 8824ba9

Please sign in to comment.