このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。
getTaskSchedulerIDs
説明
は、ジョブ schedulerIDs
= getTaskSchedulerIDs(job
)job
の各タスクの SchedulerID
を返します。SchedulerID
はサードパーティ製スケジューラにのみ適用されることに注意してください。
例
タスクのスケジューラ ID の取得
parcluster
を使用してクラスター オブジェクトを作成します。以下のコードで、MyThirdPartyScheduler
をサードパーティ製スケジューラのプロファイル名に変更します。
c = parcluster('MyThirdPartyScheduler');
ジョブを作成し、そのジョブのタスクをいくつか作成します。次にこのジョブを投入します。
job = createJob(c); for idx = 1:2 createTask(job,@ode45,2,{@vdp1,[0,10],[idx,0]}); end submit(job)
ジョブのタスクのスケジューラ ID を取得するには、getTaskSchedulerIDs
を使用します。これらの ID を使用して、サードパーティ製スケジューラで対応するジョブを参照できます。
getTaskSchedulerIDs(job)
ans = 1×1 cell array
{'4933'}
この例では、スケジューラは ID 4933
をこのジョブに割り当てています。
ジョブが完了するまで待機し、出力を取得します。
wait(job); out = fetchOutputs(job)
out = 2×2 cell array
{121×1 double} {121×2 double}
{129×1 double} {129×2 double}
ジョブから情報を取得したら、このジョブを削除して、データをクリーン アップします。
delete(job);
clear job
入力引数
job
— ジョブ
parallel.Job
オブジェクト
サードパーティ製スケジューラのジョブを表すジョブ オブジェクト。parallel.Job
オブジェクトとして指定します。
例: job = createJob(parcluster);
データ型: parallel.Job
出力引数
バージョン履歴
R2019b で導入
参考
トピック
- サードパーティ製スケジューラ向けの MATLAB Parallel Server のインストールと構成 (MATLAB Parallel Server)
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)