Skip to content

Commit

Permalink
Merge pull request #2374 from DARMA-tasking/2372-use-magistrate-virtu…
Browse files Browse the repository at this point in the history
…al-serialize

#2372: use updated virtual serialization macros
  • Loading branch information
nlslatt authored Dec 9, 2024
2 parents 2fd8152 + 0e7662a commit 6190033
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ci/docker/alpine-cpp.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

ARG arch=amd64
FROM alpine:3.16 as base
FROM alpine:3.16 AS base

ARG proxy=""

Expand Down Expand Up @@ -50,9 +50,9 @@ ENV CC=mpicc \
CXX=mpicxx \
PATH=/usr/lib/ccache/:$PATH

FROM base as build
FROM base AS build
COPY . /vt
RUN /vt/ci/build_cpp.sh /vt /build

FROM build as test
FROM build AS test
RUN /vt/ci/test_cpp.sh /vt /build
4 changes: 2 additions & 2 deletions examples/collection/polymorphic_collection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static constexpr int32_t const default_num_elms = 16;
struct InitialConsTag{};

struct Hello : vt::Collection<Hello, vt::Index1D> {
checkpoint_virtual_serialize_root()
magistrate_virtual_serialize_root()

explicit Hello(InitialConsTag) {}
explicit Hello(checkpoint::SERIALIZE_CONSTRUCT_TAG) {}
Expand All @@ -68,7 +68,7 @@ struct Hello : vt::Collection<Hello, vt::Index1D> {

template <typename T>
struct HelloTyped : Hello {
checkpoint_virtual_serialize_derived_from(Hello)
magistrate_virtual_serialize_derived_from(Hello)

explicit HelloTyped(InitialConsTag);
explicit HelloTyped(checkpoint::SERIALIZE_CONSTRUCT_TAG)
Expand Down
2 changes: 1 addition & 1 deletion src/vt/runtime/component/diagnostic_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ struct DiagnosticSnapshotValues {
template <typename T>
struct DiagnosticValue : DiagnosticBase {
#if !vt_check_enabled(trace_only)
checkpoint_virtual_serialize_derived_from(DiagnosticBase)
magistrate_virtual_serialize_derived_from(DiagnosticBase)
#endif
/**
* \internal \brief Create a new typed diagnostic value
Expand Down
2 changes: 1 addition & 1 deletion src/vt/runtime/component/diagnostic_value_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace vt { namespace runtime { namespace component { namespace detail {
*/
struct DiagnosticBase {
#if !vt_check_enabled(trace_only)
checkpoint_virtual_serialize_root()
magistrate_virtual_serialize_root()
#endif
/**
* \internal \brief Construct a new diagnostic base value
Expand Down
6 changes: 3 additions & 3 deletions src/vt/vrt/collection/types/storage/store_elm.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace vt { namespace vrt { namespace collection { namespace storage {
*/
struct StoreElmBase {
/// uses polymorphic serialization
checkpoint_virtual_serialize_root()
magistrate_virtual_serialize_root()

using json = nlohmann::json;

Expand Down Expand Up @@ -214,7 +214,7 @@ struct StoreElm<
> : StoreElmBase
{
/// polymorphic serializer for derived class
checkpoint_virtual_serialize_derived_from(StoreElmBase)
magistrate_virtual_serialize_derived_from(StoreElmBase)

/**
* \brief Construct with value
Expand Down Expand Up @@ -329,7 +329,7 @@ struct StoreElm<
> : StoreElmBase
{
/// polymorphic serializer for derived class
checkpoint_virtual_serialize_derived_from(StoreElmBase)
magistrate_virtual_serialize_derived_from(StoreElmBase)

static_assert(
std::is_trivially_copyable<T>::value and not std::is_pointer<T>::value,
Expand Down

0 comments on commit 6190033

Please sign in to comment.