Abstract

A statically typed version of the data driven functional parallel computing model is proposed. It enables a representation of dynamically changing parallelism by means of asynchronous serial data flows. We consider the features of the syntax and semantics of the statically typed data driven functional parallel programming language Smile that supports asynchronous sequential flows. Our main idea is to apply the Hoar concept of communicating sequential processes to the computation control on the data readiness. It is assumed that on the data readiness a control signal is emitted to inform the processes about the occurrence of certain events. The special feature of our approach is that the model is extended with the special asynchronous containers that can generate events on their partial filling. These containers are a stream and a swarm, each of which has its own specifics. A stream is used to process data which have identical type. The data comes sequentially and asynchronously at arbitrary time moments. The number of the incoming data elements is initially unknown, so the processing completes on the signal of the end of the stream. A swarm is used to contain independent data of the same type and may be used for the massive parallel operations performing. Unlike a stream, the swarm’s size is fixed and known in advance. General principles of the operations with the asynchronous sequential flows with an arbitrary order of data arrival are described. The use of the streams and the swarms in various situations is considered. We propose the language constructions which allow us to operate the swarms and streams and describe the specifics of their application. We provide the sample functions to illustrate the use of the different approaches to description of the parallelism: recursive processing of the asynchronous flows, processing of the flows in an arbitrary or predefined order of operations, direct access and access by the reference to the elements of the streams and swarms, pipelining of calculations. We give a preliminary parallelism assessment which depends on the ratio of the rates of data arrival and their processing. The proposed methods can be used in the development of the future languages and tool-kits of architecture-independent parallel programming.

Highlights

  • A statically typed version of the data driven functional parallel computing model is proposed. It enables a representation of dynamically changing parallelism by means of asynchronous serial data ows

  • We consider the features of the syntax and semantics of the statically typed data driven functional parallel programming language Smile that supports asynchronous sequential ows

  • It is assumed that on the data readiness a control signal is emi ed to inform the processes about the occurrence of certain events. e special feature of our approach is that the model is extended with the special asynchronous containers that can generate events on their partial lling. ese containers are a stream and a swarm, each of which has its own speci cs

Read more

Summary

Data Flows

A statically typed version of the data driven functional parallel computing model is proposed. We consider the features of the syntax and semantics of the statically typed data driven functional parallel programming language Smile that supports asynchronous sequential ows. A swarm is used to contain independent data of the same type and may be used for the massive parallel operations performing. General principles of the operations with the asynchronous sequential ows with an arbitrary order of data arrival are described. We provide the sample functions to illustrate the use of the di erent approaches to description of the parallelism: recursive processing of the asynchronous ows, processing of the ows in an arbitrary or prede ned order of operations, direct access and access by the reference to the elements of the streams and swarms, pipelining of calculations.

INFORMATION ABOUT THE AUTHORS
Александр Иванович Легалов автор для корреспонденции
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call