diff --git a/cuwrapper/rc/rc_server_abi.cpp b/cuwrapper/rc/rc_server_abi.cpp index da2f1938..71e32c2a 100644 --- a/cuwrapper/rc/rc_server_abi.cpp +++ b/cuwrapper/rc/rc_server_abi.cpp @@ -613,6 +613,10 @@ int rc_prepare(rc_server *srv, const rc_prepare_req *req, srv->opts.t_prep_ms ? hipObj::v2::clockSource().nowMs() + srv->opts.t_prep_ms : 0; + /* The session record carries its own id copy: reap logging and the + * terminal teardown record read core.id, while the map key is the + * only other place the id lives. */ + rs.core.id = id; { std::lock_guard g(srv->map_mtx); rs.staging_buf = reinterpret_cast(buf);