• 検索結果がありません。

並列スクリプト言語(Perl)+の実装と設計

N/A
N/A
Protected

Academic year: 2021

シェア "並列スクリプト言語(Perl)+の実装と設計"

Copied!
1
0
0

読み込み中.... (全文を見る)

全文

(1)Vol. 43. No. SIG 3(PRO 14). Mar. 2002. 情報処理学会論文誌:プログラミング. 発表概要. 並列スクリプト 言語 (Perl)+の実装と設計 外崎. 由 里 子†. 大. 和 彦†. 野. 中. 島. 浩†. PC クラスタやデュアル CPU マシンなどの普及により近い将来,研究者だけでなく一般のエンド ユーザが並列環境を利用できるのが当たり前になると予想される.逐次計算機上では,C などの高性 能なコンパイラ型言語処理系とともに,Perl などの手軽なスクリプト言語処理系が使用されてきた. 並列計算機上では前者に対して HPC++などが開発されているが,後者に相当するものの研究は進ん でいない.そこで我々は,エンド ユーザが容易に並列計算機資源を有効利用できる環境を実現するた め,並列性を簡易に記述できるように Perl を拡張した,並列スクリプト言語 (Perl)+の設計・開発を 行っている.(Perl)+では指定した計算機を並列環境に追加し ,RPC により任意のサブルーチンを 実行することができる.その返り値は遅延評価されるため,ユーザは複数のサブルーチン呼び出しを 容易に並列タスクとして実行できる.また,並列タスク間では通信用に擬似的なファイルストリーム を開くことができ,Perl の入出力関数を使ってデータを送受信できる.これらの機能は C で実装し, Perl と C を組み合わせるためのツールである XS を使って Perl モジュール Perlplus.pm を構築して いる.このため,ユーザは本モジュールを取り込むだけで (Perl)+の機能を利用できる.本モジュー ルは起動時に各ホスト上に Perl プロセスを生成し ,PVM により RPC や通信を実現している.ま た,各プロセス上で実行スレッド /受信スレッド を生成することで,RPC の実行と並行して受信処理 を行えるようにしている.. Design and Implementation of a Parallel Script Language (Perl)+ Yuriko Tonosaki,† Kazuhiko Ohno† and Hiroshi Nakashima† The spread of PC clusters and multi-CPU machines makes multiprocessors environment available not only for the reseachers but also for the end users. On the uniprocessor machines, we can use both efficient languages such as C and simple script languages such as Perl. On the multiprocessors, the languages of the former type such as HPC++ have been developed. However, the latter type is not researched enough. Thus, we designed and implemented a parallel script language named (Perl)+ as an extension of Perl. (Perl)+ supports parallel task generation using RPC. Since the return value of a subroutine is lazily evaluated, the subroutine is executed in parallel to its caller. In addition to the communication through input arguments and return value, a user may open quasi file streams for the communication between parallel subroutines. Through this stream, any type of Perl data may be transferred using input/output functions of Perl. We implemented these functions in C. The user-interface is built as a Perl module Perlplus.pm, using XS for the linkage of C and Perl. This module adds specified hosts to the PVM virtual machines and creates Perl processes. We also introduced multi-threads for concurrent execution of user’s Perl code and PVM message receiving.. ( 平成 13 年 7 月 27 日発表). † 豊橋技術科学大学情報工学系 Department of Information and Computer Sciences, Toyohashi University of Technology. 82.

(2)

参照

関連したドキュメント

The edges terminating in a correspond to the generators, i.e., the south-west cor- ners of the respective Ferrers diagram, whereas the edges originating in a correspond to the

H ernández , Positive and free boundary solutions to singular nonlinear elliptic problems with absorption; An overview and open problems, in: Proceedings of the Variational

Keywords: Convex order ; Fréchet distribution ; Median ; Mittag-Leffler distribution ; Mittag- Leffler function ; Stable distribution ; Stochastic order.. AMS MSC 2010: Primary 60E05

In [9], it was shown that under diffusive scaling, the random set of coalescing random walk paths with one walker starting from every point on the space-time lattice Z × Z converges

In Section 3, we show that the clique- width is unbounded in any superfactorial class of graphs, and in Section 4, we prove that the clique-width is bounded in any hereditary

Inside this class, we identify a new subclass of Liouvillian integrable systems, under suitable conditions such Liouvillian integrable systems can have at most one limit cycle, and

Shen, “A note on the existence and uniqueness of mild solutions to neutral stochastic partial functional differential equations with non-Lipschitz coefficients,” Computers

In this work, our main purpose is to establish, via minimax methods, new versions of Rolle's Theorem, providing further sufficient conditions to ensure global