Open yslan opened 1 month ago
@yslan
Unless you are using unified memory, if the node has pointers that can only be accessed on the GPU -- printing will segfault.
That said, there may be a trick you can try:
Node mesh_copy;
mesh_copy.set(mesh_data);
mesh_copy.print();
Depending on how things are built, "set" can be gpu aware and copy data back to the CPU, so you can print.
@cyrush
That works, but I don't want to copy data back to CPU.
Is there a way to print something like (values are not on the host)
to avoid SEGV?
Conduit isn't compiled with any knowledge of host / device, so it's print functions can't be that smart right now. We are working on adding some optional GPU support, we can evaluate what is possible when we have GPU infrastructure in Conduit.
I'm trying to print the
mesh_data
withprint()
from the first rank and I get the SIGSEGV.code
error
version