Skip to content

Commit 9532b48

Browse files
committed
minor log message improvements
1 parent 122b673 commit 9532b48

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/coop_vec.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ void jitc_coop_vec_pack_matrices(uint32_t count,
441441
JitBackend backend;
442442
{
443443
const Variable *out_v = jitc_var(out);
444-
jitc_log(Debug, "jit_coop_vec_pack(): packing %u matrixes (%u bytes)",
445-
count, out_v->size * type_size[out_v->type]);
444+
jitc_log(Debug, "jit_coop_vec_pack(): packing %u %s, %u bytes, r%u -> r%u",
445+
count, count == 1 ? "matrix" : "matrices", out_v->size * type_size[out_v->type], in, out);
446446
backend = (JitBackend) out_v->backend;
447447
}
448448

src/var.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,10 @@ uint32_t jitc_var_pointer(JitBackend backend, const void *value,
854854
std::swap(scope_backup, ts->scope);
855855
uint32_t result = jitc_var_new(v);
856856
std::swap(scope_backup, ts->scope);
857+
858+
jitc_log(Debug, "jit_var_pointer(): pointer r%u = " DRJIT_PTR " (r%u, write=%i)",
859+
result, (uintptr_t) value, dep, write);
860+
857861
return result;
858862
}
859863

0 commit comments

Comments
 (0)