Skip to content
Open
Prev Previous commit
Next Next commit
temp
  • Loading branch information
Aapo Kyrola committed Aug 14, 2013
commit f5acb84a0db87ff368c4519ec3b9fcf12af95994
7 changes: 5 additions & 2 deletions src/preprocessing/dynamicdata/sharder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ namespace graphchi {
value.resize(nvalues);
read(f, &value[0], sizeof(VectorElementType) * nvalues);
read(f, &hdr, sizeof(HeaderDataType));

std::cout << src << " - " << dst << " " << *((int*)&value[0]) << std::endl;
}

void writee(int f) {
Expand Down Expand Up @@ -209,6 +211,8 @@ namespace graphchi {

bufsize_edges = bufsize_bytes / sizeof(edge_with_value<VectorElementType, HeaderDataType>);
read(f, &numedges, sizeof(size_t));

std::cout << "numedges: " << numedges << std::endl;
load_next();
}

Expand All @@ -217,7 +221,6 @@ namespace graphchi {
void finish() {
close(f);
remove(shovelfile.c_str());
buffer.clear();
}

void load_next() {
Expand Down Expand Up @@ -413,8 +416,8 @@ namespace graphchi {
return;
}
edge_with_value<VectorElementType, HeaderDataType> e(from, to, vals, hdr);

e.is_chivec_value = true;

curshovel_buffer[curshovel_idx++] = e;
if (curshovel_idx == shovelsize) {
flush_shovel();
Expand Down