필터 지우기
필터 지우기

Reading file content while running on cluster

조회 수: 4 (최근 30일)
yaron
yaron 2015년 7월 23일
편집: yaron 2015년 7월 28일
Hello,
How can I read an output file that has been saved by a function running on a server through the matlab function BATCH, before the work has completed?
for example: script.m
for ii=1: 10
x= dosomething(ii);
fwrite (file,x.'uint32');
end
running in bacth:
batch (mycluster,'script');
Goal: get file content from server while loop still running(i.e. ii=5)
Another point worth mention : file is not the output of the script nor any other function, its only saves partial results.
Thanks in advance.
  댓글 수: 2
Edric Ellis
Edric Ellis 2015년 7월 23일
Are you attempting to write the file to a location on disk that can be seen by both client and workers?
yaron
yaron 2015년 7월 28일
편집: yaron 2015년 7월 28일
this is part of the problem. running the example above locally simply write to a local file which is visible by the user.
But when running the batch, I dont know where the file will be written. Is there a matlab function to retrieve the file location and read it (assuming its location is accessable)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by