Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
olegranmo committed Oct 11, 2024
1 parent 6dc4072 commit 47bf55b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tmu/clause_bank/cuda/calculate_clause_value_in_patch.cu
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ extern "C"
}
}
printf("\n");

printf("?");
for (int k = 0; k < number_of_literals; ++k) {
int literal_chunk = k / 32;
int literal_pos = k % 32;

if (X[0*number_of_ta_chunks + literal_chunk*number_of_state_bits + number_of_state_bits - 1] & (1 << literal_pos)) {
printf(" %d", k);
}
}
printf("\n");
}

clause_node_output = ~0;
Expand All @@ -97,7 +108,7 @@ extern "C"
clause_node_output &= ~(1 << node_pos);
}

if (node == 0) {
if (clause == 0 && node == 0) {
printf("V: %d\n", clause_node_output & (1 << node_pos));
}
}
Expand Down

0 comments on commit 47bf55b

Please sign in to comment.