rtsPDe (1158450)

Файл №1158450 rtsPDe (Раздаточные материалы)rtsPDe (1158450)2019-09-18СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла

5


Keldysh Institute of Applied Mathematics

Russia Academy of Sciences

Lib-DVM library

Preliminary design

March 2000

CONTENTS

1 Lib-DVM functions 3

2 Content of Lib-DVM 3

3 Approach and principles of implementation 4

1Lib-DVM functions

Lib-DVM is Run-Time System for DVM-programs execution. A parallel Fortran DVM (or C-DVM) program is translated to the program in the standard Fortran 77 (or C) language extended by Lib-DVM function calls, and to be executed according to SPMD model on the each processor assigned to the task. Lib-DVM functions, called when the parallel program is executed, are described in the document "Lib-DVM. Interface description" and are used to perform the following main operations:

  1. Run-Time System initialization and termination.

  2. Creating an abstract machine.

  3. Mapping an abstract machine.

  4. Distributed array creating and deleting.

  5. Mapping a distributed array.

  6. Mapping a parallel loop.

  7. Mapping parallel tasks.

  8. Executing reduction operations.

  9. Renewing shadow edges of distributed arrays.

  10. Creating and loading buffers for access to remote data.

  11. Executing input/output operations.

Besides of the performance of the operations above, Run-Time System must support:

  1. Dealing with the accumulation subsystem of the program execution characteristics on each processor concerned (accumulation subsystem of PPPA).

  2. Dealing with DVM-debugger.

  3. The accumulation of the system trace, that is tracing Run-Time System function calls and communication library calls. The trace is used for debugging DVM-programs, Run-Time System itself, and as the input information for a predictor.

  4. Input of the parameters, controlling the operating of Run-Time System, DVM debugger and the accumulation subsystem of the execution characteristics.

Run-Time System functions should use for message exchange two communication libraries – MPI and PVM.

2Content of Lib-DVM

Besides of the functions, described in document "Lib-DVM. Interface description", Lib-DVM contains a lot of functions, providing the execution of the following subsidiary operations:

  1. Message exchange operations.

  2. Dynamic allocation of the memory.

  3. Program synchronization.

  4. Input of the controlling parameters.

  5. System trace accumulation.

  6. Interaction with DVM-debugger and the subsystem of program execution characteristics accumulation.

3Approach and principles of implementation

To provide possibility of using different communication libraries, the set of message exchange functions was developed. The implementation of these functions for different communication libraries doesn't require considerable efforts.

  1. Run-Time System initialization and termination.

When Run-Time System is initialized:

  • One of the processors concerned (input/output processor) reads the controlling parameters from the files and sends them to the other processors.

  • Run-Time System, DVM debugger and accumulation subsystem of the program execution characteristics are tuned according to the input parameters.

  • The buffers for the accumulation of the system trace and the program execution characteristics are created on the memory of all the processors concerned.

  • Time at all the processors is synchronized.

  • The messages, containing main modes of Run-Time System operating and characteristics of its execution environment are reported by a user request.

When Run-Time System is terminated:

  • Accumulated system trace and the program execution characteristics are written to the files.

  • The user is notified (by his request) about the program completion.

  1. Creating and mapping abstract machine.

It is the preparing operation for data and computation mapping on the processors, implemented through their mapping on an abstract machine.

  1. Distributed array creating and deleting.

When an array is created, the array descriptor is created, but the memory for the array is not allocated. When the array is deleted, its descriptor is deleted and the memory allocated for the array is freed.

  1. Mapping distributed array on an abstract machine.

When the array is mapped, at each processor the memory for the array elements, mapped on the processor, and for shadow edges is allocated.

  1. Mapping a parallel loop on an abstract machine.

The loop iterations, to be executed on the processor and their execution order are determined for each processor.

  1. Mapping parallel tasks on an abstract machine.

The tasks, to be executed on the processor, are determined for each processor. A parallel task startup and completion are performed by special Lib-DVM functions.

  1. Executing reduction operation.

Reduction operations are executed by gathering on the special processor (the central processor of the task) the partial results of the reduction, obtained on the processors, participating in the parallel loop execution. After evaluating the final result on the central processor it is sent to all other processors. Overlapping reduction execution with computations is implemented by parallel process simulation by regular polling for incoming messages.

  1. Renewing shadow edges of the distributed arrays.

Shadow edges renewing is implemented as asynchronous operation. Overlapping the exchanges with computations is implemented by non-blocking exchange operations.

  1. Creating and loading buffers for an access to remote data.

The size of the buffers is determined by examining on each processor the references to remote elements and the range of the loop iterations, executed on the processor. The buffer loading as well as shadow edge renewing can be overlapped with computations.

  1. Executing input/output operations.

The special versions of standard input/output programs are developed for C programs. Input of the information is performed at the input/output processor, using usual input functions. Then the information is sent to other processors in accordance with data distribution. The output data, that are not available on the input/output processor, are transferred to this processor and then are outputted using usual output functions.

Input/output for Fortran programs is implemented by the compiler similarly and special Lib-DVM functions are used for data movement between the buffer of the input/output processor and the processors, where the data are allocated.

  1. Accumulation of the trace of Lib-DVM function calls and communication library calls.

The trace is used for debugging DVM-programs, Run-Time System itself, and it is the input information for the predictor.

The trace contains the information about called functions and their parameters and the information about functioning of Run-Time System internal mechanisms. It can be accumulated in the buffer or in the file. Trace, accumulated in the buffer, is uploaded in the file, when the program is terminated. The events to be traced and the trace modes are specified in the parameter file.

Характеристики

Тип файла документ

Документы такого типа открываются такими программами, как Microsoft Office Word на компьютерах Windows, Apple Pages на компьютерах Mac, Open Office - бесплатная альтернатива на различных платформах, в том числе Linux. Наиболее простым и современным решением будут Google документы, так как открываются онлайн без скачивания прямо в браузере на любой платформе. Существуют российские качественные аналоги, например от Яндекса.

Будьте внимательны на мобильных устройствах, так как там используются упрощённый функционал даже в официальном приложении от Microsoft, поэтому для просмотра скачивайте PDF-версию. А если нужно редактировать файл, то используйте оригинальный файл.

Файлы такого типа обычно разбиты на страницы, а текст может быть форматированным (жирный, курсив, выбор шрифта, таблицы и т.п.), а также в него можно добавлять изображения. Формат идеально подходит для рефератов, докладов и РПЗ курсовых проектов, которые необходимо распечатать. Кстати перед печатью также сохраняйте файл в PDF, так как принтер может начудить со шрифтами.

Список файлов учебной работы

Свежие статьи
Популярно сейчас
Как Вы думаете, сколько людей до Вас делали точно такое же задание? 99% студентов выполняют точно такие же задания, как и их предшественники год назад. Найдите нужный учебный материал на СтудИзбе!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
7034
Авторов
на СтудИзбе
260
Средний доход
с одного платного файла
Обучение Подробнее