mpi :: ProcessorInfo
mpi :: ProcessorInfo :: defaultinit
mpi :: ProcessorInfo :: name
mpi :: ProcessorInfo :: name=
mpi :: ProcessorInfo :: rank
mpi :: ProcessorInfo :: rank=
mpi :: ProcessorInfo :: size
mpi :: ProcessorInfo :: size=
mpi $ ProcessorInfo :: SELF
Type of this instance, automatically specialized in every classmpi $ ProcessorInfo :: core_serialize_to
Actual serialization ofself
to serializer
mpi $ ProcessorInfo :: from_deserializer
Create an instance of this class from thedeserializer
serialization :: Serializable :: accept_json_serializer
Refinable service to customize the serialization of this class to JSONserialization :: Serializable :: accept_msgpack_attribute_counter
Hook to customize the behavior of theAttributeCounter
serialization :: Serializable :: accept_msgpack_serializer
Hook to customize the serialization of this class to MessagePackserialization :: Serializable :: add_to_bundle
Called by[]=
to dynamically choose the appropriate method according
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
mpi :: ProcessorInfo :: defaultinit
core :: Object :: defaultinit
serialization :: Serializable :: from_deserializer
Create an instance of this class from thedeserializer
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
serialization :: Serializable :: msgpack_extra_array_items
Hook to request a larger than usual metadata arraympi :: ProcessorInfo :: name
mpi :: ProcessorInfo :: name=
core :: Object :: output_class_name
Display class name on stdout (debug only).mpi :: ProcessorInfo :: rank
mpi :: ProcessorInfo :: rank=
serialization :: Serializable :: serialize_msgpack
Serializeself
to MessagePack bytes
serialization :: Serializable :: serialize_to
Serializeself
to serializer
serialization :: Serializable :: serialize_to_json
Serializeself
to JSON
mpi :: ProcessorInfo :: size
mpi :: ProcessorInfo :: size=
serialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
Serializer::serialize
# Simple class transfered between processors
class ProcessorInfo
auto_serializable
var rank: Int
var size: Int
var name: String
var string_of_random_length: String
init(mpi: MPI)
do
self.rank = comm_world.rank.to_i
self.size = comm_world.size
self.name = mpi.processor_name
self.string_of_random_length = "+" * 10.rand
end
redef fun to_s do return "<{name}: {rank}/{size} {string_of_random_length}>"
end
lib/mpi/examples/src/mpi_simple.nit:21,1--39,3