CUDA.device() info is displayed, but neither printed nor stored on variable

That seems like a weird thing to do. Why don’t you query the name directly (CUDA.name(::CuDevice)) instead of relying on the I/O routines?