/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
HeterogeneousCore/MPICore/interface/MPIToken.h
26 строк
635 B
Andrea Bocci
Redesign the MPI event and stream synchronisation
27 апр 2026, 15:05
Не верифицирован
27 апр 2026, 15:05
7eadb80
Код
Авторство
О чём код?
#ifndef HeterogeneousCore_MPICore_interface_MPIToken_h #define HeterogeneousCore_MPICore_interface_MPIToken_h // C++ standard library headers #include <memory> // forward declaration class MPIChannel; class MPIToken { public: // default constructor, needed to write the type's dictionary MPIToken() = default; // user-defined constructor explicit MPIToken(MPIChannel& channel); // access the data member MPIChannel* channel() const { return channel_.get(); } private: // wrap the MPI communicator and destination std::shared_ptr<MPIChannel> channel_; }; #endif // HeterogeneousCore_MPICore_interface_MPIToken_h