Skip to content

Commit

Permalink
#37 Update file loading function to use direct file reading
Browse files Browse the repository at this point in the history
  • Loading branch information
carljohnsen committed Mar 23, 2024
1 parent 5e9c1c2 commit b2b516b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/cpp/cpu/connected_components.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ std::vector<T> load_file_flat(const std::string &path, const int64_t e_offset, c

template <typename T>
void load_file_flat(T *__restrict__ dst, const std::string &path, const int64_t e_offset, const int64_t e_n_elements) {
FILE *fp = open_file_read(path);
FILE *fp = open_file_read_direct(path);
int64_t e_n = load_flat(dst, fp, e_offset, e_n_elements);
assert (e_n == e_n_elements && "Failed to read all elements");
fclose(fp);
Expand Down

0 comments on commit b2b516b

Please sign in to comment.