Commit 744be54b authored by Jack Doerner's avatar Jack Doerner

Not regenerating binary search data for each benchmark run. Too slow.

parent aebbd574
......@@ -75,22 +75,6 @@ ograph_vertex_list * ograph_vertex_list_new(size_t size) {
return result;
}
static void ograph_get_nth_adjacent_vertex(uint32_t * out, ograph_adjacency_matrix * adj, obliv uint32_t vertex, obliv uint32_t n) {
obliv uint32_t two32[2];
oram_read(two32, adj->layout, vertex);
oram_read(out, adj->matrix, two32[0]+n);
}
static void ograph_get_nth_adjacent_vertex_from_triple(ograph_vertex_list * out, ograph_adjacency_matrix * adj, obliv uint32_t * vertex, obliv uint32_t n) {
oram_read(out, adj->matrix, vertex[1]+n);
}
static void ograph_get_nth_adjacent_vertex_obliv(uint32_t * out, ograph_adjacency_matrix * adj, obliv uint32_t vertex, obliv uint32_t n) obliv {
obliv uint32_t two32[2];
oram_read(two32, adj->layout, vertex);
oram_read(out, adj->matrix, two32[0]+n);
}
static void ograph_get_nth_adjacent_vertex_from_triple_obliv(ograph_vertex_list * out, ograph_adjacency_matrix * adj, obliv uint32_t * vertex, obliv uint32_t n) obliv {
oram_read(out, adj->matrix, vertex[1]+n);
}
......
......@@ -156,7 +156,6 @@ void bitpropagator_offline_readblockvector(void * local_output, void * local_bit
t2 = b2; t = b; t_bits = b_bits;
b2 = a2; b = a; b_bits = a_bits;
a2 = t2; a = t; a_bits = t_bits;
#pragma omp for
for (size_t ii = 0; ii < thislevelblocks; ii++) {
......
......@@ -117,13 +117,13 @@ void test_main(void*varg) {
obliv uint32_t needle;
obliv uint32_t otemp;
for (int kk = 0; kk < samples; kk++) {
otemp = 0;
for (int ll = 0; ll < elct; ll++) {
otemp += feedOblivInt(rand()%8, ll%2);
input[4*ll] = otemp;
}
otemp = 0;
for (int ll = 0; ll < elct; ll++) {
otemp += feedOblivInt(rand()%8, ll%2);
input[4*ll] = otemp;
}
for (int kk = 0; kk < samples; kk++) {
uint64_t startTime = current_timestamp();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment