less verbose logs
This commit is contained in:
parent
feb82c35df
commit
b426012542
1 changed files with 33 additions and 30 deletions
63
src/CCubes.c
63
src/CCubes.c
|
@ -220,6 +220,7 @@ SEXP CCubes(SEXP tt) {
|
|||
if (PRINT_INFO) {
|
||||
Rprintf("---k: %d\n", k);
|
||||
}
|
||||
log_debug("ccubes", "---k: %d\n", k);
|
||||
|
||||
int n_tasks = nchoosek(ninputs, k);
|
||||
if (n_tasks == 0) {
|
||||
|
@ -270,37 +271,39 @@ SEXP CCubes(SEXP tt) {
|
|||
for (int current_task = 0; current_task < current_batch; current_task++) {
|
||||
log_debug("ccubes", "Task %d", current_task);
|
||||
|
||||
log_debug_raw("ccubes", "redundant[%d]: %d\n", current_task, ctx->h_redundant[current_task]);
|
||||
|
||||
log_debug_raw("ccubes", "coverage[%d]:", current_task);
|
||||
for (int j = 0; j < posrows; j++) {
|
||||
log_debug_raw("ccubes", " %d",
|
||||
ctx->h_coverage[current_task * posrows + j]);
|
||||
}
|
||||
log_debug_raw("ccubes", "\n");
|
||||
|
||||
log_debug_raw("ccubes", "fixed_bits[%d]:", current_task);
|
||||
for (int j = 0; j < implicant_words; j++) {
|
||||
log_debug_raw("ccubes", " %d",
|
||||
ctx->h_fixed_bits[current_task * implicant_words + j]);
|
||||
}
|
||||
log_debug_raw("ccubes", "\n");
|
||||
|
||||
log_debug_raw("ccubes", "value_bits[%d]:", current_task);
|
||||
for (int j = 0; j < implicant_words; j++) {
|
||||
log_debug_raw("ccubes", " %d",
|
||||
ctx->h_value_bits[current_task * implicant_words + j]);
|
||||
}
|
||||
log_debug_raw("ccubes", "\n");
|
||||
|
||||
log_debug_raw("ccubes", "pichart_values[%d]:", current_task);
|
||||
for (int j = 0; j < pichart_words; j++) {
|
||||
log_debug_raw("ccubes", " %d",
|
||||
ctx->h_pichart_values[current_task * pichart_words + j]);
|
||||
}
|
||||
log_debug_raw("ccubes", "\n");
|
||||
|
||||
if (!ctx->h_redundant[current_task]) {
|
||||
/* LOG TASK */
|
||||
log_debug_raw("ccubes", "redundant[%d]: %d\n", current_task, ctx->h_redundant[current_task]);
|
||||
|
||||
log_debug_raw("ccubes", "coverage[%d]:", current_task);
|
||||
for (int j = 0; j < posrows; j++) {
|
||||
log_debug_raw("ccubes", " %d",
|
||||
ctx->h_coverage[current_task * posrows + j]);
|
||||
}
|
||||
log_debug_raw("ccubes", "\n");
|
||||
|
||||
log_debug_raw("ccubes", "fixed_bits[%d]:", current_task);
|
||||
for (int j = 0; j < implicant_words; j++) {
|
||||
log_debug_raw("ccubes", " %d",
|
||||
ctx->h_fixed_bits[current_task * implicant_words + j]);
|
||||
}
|
||||
log_debug_raw("ccubes", "\n");
|
||||
|
||||
log_debug_raw("ccubes", "value_bits[%d]:", current_task);
|
||||
for (int j = 0; j < implicant_words; j++) {
|
||||
log_debug_raw("ccubes", " %d",
|
||||
ctx->h_value_bits[current_task * implicant_words + j]);
|
||||
}
|
||||
log_debug_raw("ccubes", "\n");
|
||||
|
||||
log_debug_raw("ccubes", "pichart_values[%d]:", current_task);
|
||||
for (int j = 0; j < pichart_words; j++) {
|
||||
log_debug_raw("ccubes", " %d",
|
||||
ctx->h_pichart_values[current_task * pichart_words + j]);
|
||||
}
|
||||
log_debug_raw("ccubes", "\n");
|
||||
|
||||
|
||||
int covsum = 0;
|
||||
for (int i = 0; i < posrows; i++) {
|
||||
covsum += ctx->h_coverage[current_task * posrows + i];
|
||||
|
|
Loading…
Add table
Reference in a new issue