X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/55a08c7439db5b0335a5b26e40b3a46e1e03d3e8..ea74f5d95928a521a588737e81f1de94eef25d19:/src/smpi/include/smpi_actor.hpp?ds=sidebyside diff --git a/src/smpi/include/smpi_actor.hpp b/src/smpi/include/smpi_actor.hpp index f4712d6b42..3b1e6f83c6 100644 --- a/src/smpi/include/smpi_actor.hpp +++ b/src/smpi/include/smpi_actor.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2022. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -36,9 +36,9 @@ class ActorExt { #endif std::string tracing_category_ = ""; MPI_Info info_env_; - void* bsend_buffer_ = nullptr; - int bsend_buffer_size_ = 0; - + void* bsend_buffer_ = nullptr; + int bsend_buffer_size_ = 0; + #if HAVE_PAPI /** Contains hardware data as read by PAPI **/ int papi_event_set_; @@ -59,6 +59,7 @@ public: void mark_as_initialized(); void set_replaying(bool value); bool replaying() const; + std::string get_instance_id() const { return instance_id_;} void set_tracing_category(const std::string& category) { tracing_category_ = category; } const std::string& get_tracing_category() const { return tracing_category_; } smpi_trace_call_location_t* call_location(); @@ -75,6 +76,7 @@ public: void simulated_start(); double simulated_elapsed() const; MPI_Comm comm_world() const; + bool comm_self_is_set() const { return (comm_self_ != MPI_COMM_NULL); }; MPI_Comm comm_self(); MPI_Comm comm_intra(); void set_comm_intra(MPI_Comm comm); @@ -86,7 +88,7 @@ public: void set_optind(int optind); MPI_Info info_env(); void bsend_buffer(void** buf, int* size); - void set_bsend_buffer(void* buf, int size); + int set_bsend_buffer(void* buf, int size); }; } // namespace smpi