SlideShare ist ein Scribd-Unternehmen logo
1 von 21
2011/8/24
デンソーアイティーラボラトリ 増谷

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
利用イメージ
“ ジョブ” を定義
ジョブの中身(プログラム)を用意
ジョブの分割方法を定義
実行
ジョブマネージャから実行
ジョブマネージャ

ジョ
ブ
Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved

ジョ
ブ

ジョ
ブ

ジョ
ブ
タスクの種類
1. シリアルアプリケーション
単純な(パラメータを持たない)独立したバッチ処理
例:ランダムなサンプルデータ生成 …

2. パラメータスイープ
インデックス付の入出力ファイルをバッチ処理
例:大量画像処理、大量 Web ページ処理…

3. (番外編) Matlab から利用
いろいろなやり方

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
1. シリアルアプリケーション
あまり使わないが、基

本操作を覚えるには良
い

“ ジョブの詳細” でジョ

ブ名などを設定

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved

一過性のもの
なのであまり
考えなくてい
い
追加をクリッ
クでタスクを
追加

1. シリアルアプリケーション
タスクを指定
コマンドライン実行

ファイルなら何でも良
い

コマンドを指
定
作業ディレク
トリを指定
標準出力をフ
ァイルに落と
す

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
1. シリアルアプリケーショ
ン
リソースの選択
実行に利用するコン

ピュータを指定
通常はすべてに投げれ
ば良い

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved

使いたいグループを追
加
(しなくても良い)

実行に利用する最低ス
ペックを指定できる
1. シリアルアプリケーション
実行(ジョブの送信)

結果のビュー
タスクIDを選択する

利用されたノードがわ
かる

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
2. パラメータスイープ
ほとんど同じ要領
“ 新しいジョブ” で” パラメータースイープタスク” を

追加

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
2. パラメータスイープ
パラメータを指定して

コマンドライン実行
“ * “ で表現

入力パラメータ、入

力ファイル名、出力
ファイルなどに指定
できる
ファイルをスイープ
したい場合は内部で
変換するか、ファイ
ル名を連番にすれば
Copyright 2011 Denso IT Laboratory, Inc.
よい
All rights reserved
2. パラメータスイープ
同じ共有フォルダに出

力するようにしておけ
ば、結果が集まる

バッチ内で指定しても

いい

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
ここまででできること
exe 、 bat にできれば、なんでもいい。
C/C++/.NET/Java/Ruby/Python …
Matlab もコンパイルすれば
問題を分割する
ファイル処理なら、ファイル単位で分割すればよい
タスクが独立な処理ならこの方法で良い
注意点
共有フォルダをうまく利用して結果を集約させる
別にDBにアクセスしてもいい
 なるべくローカルフォルダは利用しない(汚すので)


Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
3.Matlab から HPC
Matlab で並列計算と言えば
Parallel Computing Toolbox
http://

www.mathworks.co.jp/products/parallel-computing/index.h
中々のお値段: Toolbox 17 万、 Server 102 万以上

お手軽版として HPC Server を利用
単純なバッチ処理分割なら十分

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
3.Matlab から HPC
いくつか利用法がある
3-1 Parallel Computing Toolbox を使う
[ こんな時 ] PCT を持ってるよ。でもサーバは無いよ
ccsscheduler というコマンドを利用
ジョブの発行
 ジョブファイルのやり取り
 クラスタスペックの取得
 など


Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
3.Matlab から HPC
3-2 コンパイルする
Matlab Compiler でコンパイルして、 exe にしてし

まう

[ こんな時 ] すでにコンパイルしている、その方が速

い
以降の使い方はバッチ処理と同じ
ノードに Matlab ライセンス不要
事前に MCR を配置する必要がある?

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
3.Matlab から HPC
3-3 Matlab インタプリタをそのまま利用
[ こんな時 ] コンパイルが面倒、試行錯誤したい
ノードに Matlab ライセンスが必要
アクセスユーザに注意が必要
バッチファイルと matlab のコマンドラインモードを

利用する
いくつかの方式について、 run helper を作成済み


cobPublicDocumentshpcrunhelpers

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
3.Matlab から HPC
3-3-1 logfile run helper を利用
コンソールの log を利用
結果ログを出すだけで良いとき
コマンドとログ出力ファイル名を引数として渡すだけ

コマンドが終了するまで待つ

スプラッシュなし

第一引数を実行

start /w matlab -wait -nodesktop -nosplash -minimize -r %1 -logfile %2
コマンドが終了するまで待つ

GUIなし

コンソールウィンドウ最小化
ログファイル出力先

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
3.Matlab から HPC
3-3-1 logfile run helper を利用
 cobPublicDocumentshpcrunhelpersmatlabmatlablogfile

Job 指定方法
普通のバッチコマンドと同じ
リソースをライセンスのあるマシンに
  限定
run helper バッチファイル:すべてのノードから参照できる場所
cobPublicDocumentshpcrunhelpersmatlabmatlablogfilematlabtask.bat
"disp(magic(*));exit;" cobPublicDocumentshpcappstestmat_result*.log
ログの出力先
コマンド
(
( * でパラメータスイープ)* でパラメータスイープ)
Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
3.Matlab から HPC
3-3-2 command sweep run helper を利用
 cobPublicDocumentshpcrunhelpersmatlabmatlabcommandsweep

コマンドがログを出すことにする
-logfile の出力からゴミを除去するのが面倒なとき
Usage(Bat 中に記載 )





%1 Matlab コマンド名 ※コマンドの引数を書かないでください。
%2 スィープパラメータ 通常はタスクプロパティの "*" を入れれば良いでしょう。
%3 コマンドの第二引数 通常はコマンドの出力先を入れれば良いでしょう。
%4 ログファイル出力先 一応デバッグのためログファイルも指定できます。

matlabcommandsweep mycommand *
cobPublicDocumentshpcappshogehogematout*
cobPublicDocumentshpcappshogehogematlog*.txt
Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
Matlab ライセンスについて
ライセンスはユーザと紐づく
通常ドメインアカウントに紐づいている
インストール時に指定したログインアカウントだけ
1ユーザ4つまでインストール可能
以上の方法では、4並列まで

どうにかならないか?
(いわゆる Windows )タスクを利用

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved
3.Matlab から HPC
3-3-3 “command sweep multi” run helper を利用
 各マシンの Matlab インストールユーザで実行
 ブリッジするバッチファイルをローカルに配布
 一度だけ認証すると、以降認証いらず

matlabcommandsweepx
matlabcommandsweepx

Run_matlab_by_validuser
Run_matlab_by_validuser
各マシンのライセンスユーザで一度実行しておく

Copyright 2011 Denso IT Laboratory, Inc.
All rights reserved

Weitere ähnliche Inhalte

Andere mochten auch

Stochastic Process Overview (hypothesis)
Stochastic Process Overview (hypothesis)Stochastic Process Overview (hypothesis)
Stochastic Process Overview (hypothesis)
Yoshiaki Sakakura
 
Notes on the low rank matrix approximation of kernel
Notes on the low rank matrix approximation of kernelNotes on the low rank matrix approximation of kernel
Notes on the low rank matrix approximation of kernel
Hiroshi Tsukahara
 
Go-ICP: グローバル最適(Globally optimal) なICPの解説
Go-ICP: グローバル最適(Globally optimal) なICPの解説Go-ICP: グローバル最適(Globally optimal) なICPの解説
Go-ICP: グローバル最適(Globally optimal) なICPの解説
Yusuke Sekikawa
 

Andere mochten auch (19)

Windows Store アプリをuniversal にして申請する手順
Windows Store アプリをuniversal にして申請する手順Windows Store アプリをuniversal にして申請する手順
Windows Store アプリをuniversal にして申請する手順
 
Stochastic Process Overview (hypothesis)
Stochastic Process Overview (hypothesis)Stochastic Process Overview (hypothesis)
Stochastic Process Overview (hypothesis)
 
Notes on the low rank matrix approximation of kernel
Notes on the low rank matrix approximation of kernelNotes on the low rank matrix approximation of kernel
Notes on the low rank matrix approximation of kernel
 
On the eigenstructure of dft matrices(in japanese only)
On the eigenstructure of dft matrices(in japanese only)On the eigenstructure of dft matrices(in japanese only)
On the eigenstructure of dft matrices(in japanese only)
 
Variational Kalman Filter
Variational Kalman FilterVariational Kalman Filter
Variational Kalman Filter
 
マーク付き点過程
マーク付き点過程マーク付き点過程
マーク付き点過程
 
Gitのすすめ
GitのすすめGitのすすめ
Gitのすすめ
 
DSIRNLP06 Nested Pitman-Yor Language Model
DSIRNLP06 Nested Pitman-Yor Language ModelDSIRNLP06 Nested Pitman-Yor Language Model
DSIRNLP06 Nested Pitman-Yor Language Model
 
Holonomic Gradient Descent
Holonomic Gradient DescentHolonomic Gradient Descent
Holonomic Gradient Descent
 
Vanishing Component Analysisの試作と簡単な実験
Vanishing Component Analysisの試作と簡単な実験Vanishing Component Analysisの試作と簡単な実験
Vanishing Component Analysisの試作と簡単な実験
 
KeyGraph Analysis on NIPS2013 Papers
KeyGraph Analysis on NIPS2013 PapersKeyGraph Analysis on NIPS2013 Papers
KeyGraph Analysis on NIPS2013 Papers
 
Swift 2 (& lldb) シンポジウム
Swift 2 (& lldb) シンポジウムSwift 2 (& lldb) シンポジウム
Swift 2 (& lldb) シンポジウム
 
Kernel entropy component analysis
Kernel entropy component analysisKernel entropy component analysis
Kernel entropy component analysis
 
Pylm public
Pylm publicPylm public
Pylm public
 
Dsirnlp#7
Dsirnlp#7Dsirnlp#7
Dsirnlp#7
 
Sparse Isotropic Hashing
Sparse Isotropic HashingSparse Isotropic Hashing
Sparse Isotropic Hashing
 
Gamglm
GamglmGamglm
Gamglm
 
Go-ICP: グローバル最適(Globally optimal) なICPの解説
Go-ICP: グローバル最適(Globally optimal) なICPの解説Go-ICP: グローバル最適(Globally optimal) なICPの解説
Go-ICP: グローバル最適(Globally optimal) なICPの解説
 
FLAT CAM: Replacing Lenses with Masks and Computationの解説
FLAT CAM: Replacing Lenses with Masks and Computationの解説FLAT CAM: Replacing Lenses with Masks and Computationの解説
FLAT CAM: Replacing Lenses with Masks and Computationの解説
 

Mehr von Osamu Masutani

Mehr von Osamu Masutani (20)

Azure AI Conference Report
Azure AI Conference ReportAzure AI Conference Report
Azure AI Conference Report
 
Decode2018 report
Decode2018 reportDecode2018 report
Decode2018 report
 
TOWARD A BETTER IPA EXPERIENCE FOR A CONNECTED VEHICLE BY MEANS OF USAGE PRED...
TOWARD A BETTER IPA EXPERIENCE FOR A CONNECTED VEHICLE BY MEANS OF USAGE PRED...TOWARD A BETTER IPA EXPERIENCE FOR A CONNECTED VEHICLE BY MEANS OF USAGE PRED...
TOWARD A BETTER IPA EXPERIENCE FOR A CONNECTED VEHICLE BY MEANS OF USAGE PRED...
 
Power BI勉強会 #6 Power BI で地理的分析とこまでできる?
Power BI勉強会 #6 Power BI で地理的分析とこまでできる?Power BI勉強会 #6 Power BI で地理的分析とこまでできる?
Power BI勉強会 #6 Power BI で地理的分析とこまでできる?
 
コネクテッドカーの胎動と交通サイバーフィジカルシステム
コネクテッドカーの胎動と交通サイバーフィジカルシステムコネクテッドカーの胎動と交通サイバーフィジカルシステム
コネクテッドカーの胎動と交通サイバーフィジカルシステム
 
R tools for Vsual Studio
R tools for Vsual StudioR tools for Vsual Studio
R tools for Vsual Studio
 
Taxi Fare Deep Dive
Taxi Fare Deep DiveTaxi Fare Deep Dive
Taxi Fare Deep Dive
 
Power BI チュートリアル 導入・初級編
Power BI チュートリアル 導入・初級編Power BI チュートリアル 導入・初級編
Power BI チュートリアル 導入・初級編
 
A Sensing Coverage Analysis of a Route Control Method for Vehicular Crowd Sen...
A Sensing Coverage Analysis of a Route Control Method for Vehicular Crowd Sen...A Sensing Coverage Analysis of a Route Control Method for Vehicular Crowd Sen...
A Sensing Coverage Analysis of a Route Control Method for Vehicular Crowd Sen...
 
Matlab distributed computing serverの使い方
Matlab distributed computing serverの使い方Matlab distributed computing serverの使い方
Matlab distributed computing serverの使い方
 
Traffic simulation based on space syntax
Traffic simulation based on space syntaxTraffic simulation based on space syntax
Traffic simulation based on space syntax
 
C++ AMPを使ってみよう
C++ AMPを使ってみようC++ AMPを使ってみよう
C++ AMPを使ってみよう
 
A Multiple Pairs Shortest Path Algorithm 解説
A Multiple Pairs Shortest Path Algorithm 解説A Multiple Pairs Shortest Path Algorithm 解説
A Multiple Pairs Shortest Path Algorithm 解説
 
Clustering of time series subsequences is meaningless 解説
Clustering of time series subsequences is meaningless 解説Clustering of time series subsequences is meaningless 解説
Clustering of time series subsequences is meaningless 解説
 
Autopoiesis 2
Autopoiesis 2Autopoiesis 2
Autopoiesis 2
 
Autopoiesis 1
Autopoiesis 1Autopoiesis 1
Autopoiesis 1
 
UIMAウマー
UIMAウマーUIMAウマー
UIMAウマー
 
Toward a resilient prediction system for non-uniform traffic data
Toward a resilient prediction system for non-uniform traffic data Toward a resilient prediction system for non-uniform traffic data
Toward a resilient prediction system for non-uniform traffic data
 
BEIRA: A geo-semantic clustering method for area summary
BEIRA: A geo-semantic clustering method for area summaryBEIRA: A geo-semantic clustering method for area summary
BEIRA: A geo-semantic clustering method for area summary
 
BEIRA -鳥瞰型情報検索アプリケーション
BEIRA -鳥瞰型情報検索アプリケーションBEIRA -鳥瞰型情報検索アプリケーション
BEIRA -鳥瞰型情報検索アプリケーション
 

Kürzlich hochgeladen

Kürzlich hochgeladen (10)

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 

Windows HPC Server 講習会 第1回 導入編 2/2

Hinweis der Redaktion

  1. {}