Skip to content

Commit

Permalink
Merge pull request #2072 from DARMA-tasking/2071-make-old-initializat…
Browse files Browse the repository at this point in the history
…ion-syntax-deprecated-instead-of-removed

#2071: make pre-worker-removal init call deprecated
  • Loading branch information
lifflander authored Jan 19, 2023
2 parents 96455a5 + 741c87b commit 54b4ebd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vt/collective/collective_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ struct CollectiveAnyOps {
int& argc, char**& argv, bool is_interop = false, MPI_Comm* comm = nullptr,
arguments::AppConfig const* appConfig = nullptr
);
[[deprecated]] static RuntimePtrType initialize(
int& argc, char**& argv, PhysicalResourceType const /* num_workers */,
bool is_interop = false, MPI_Comm* comm = nullptr,
arguments::AppConfig const* appConfig = nullptr
)
{
return initialize(argc, argv, is_interop, comm, appConfig);
}
static void finalize(RuntimePtrType in_rt = nullptr);
static void scheduleThenFinalize(RuntimePtrType in_rt = nullptr);
static void setCurrentRuntimeTLS(RuntimeUnsafePtrType in_rt = nullptr);
Expand Down
2 changes: 2 additions & 0 deletions src/vt/configs/types/types_sentinels.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ namespace vt {
// Physical identifier sentinel values (nodes etc.)
static constexpr NodeType const uninitialized_destination = static_cast<NodeType>(0xFFFF);

static constexpr PhysicalResourceType const no_workers [[deprecated]] = static_cast<PhysicalResourceType>(0xFFFF);

// Runtime default `empty' sentinel value
static constexpr uint64_t const u64empty = 0xFFFFFFFFFFFFFFFF;
static constexpr uint32_t const u32empty = 0xFEEDFEED;
Expand Down

0 comments on commit 54b4ebd

Please sign in to comment.