sharedmatrix

版本 1.17.0.0 (39.3 KB) 作者: Joshua Dillon
SHAREDMATRIX Allows any Matlab object to be shared between Matlab sessions (w/o using file I/O).
4.4K 次下载
更新时间 2011/6/8

查看许可证

SHAREDMATRIX Allows any Matlab object (e.g., struct, nd-cell, nd-matrix, sparse matrix) to be shared between multiple Matlab sessions without resorting to file I/O. The Matlab sessions must have access to the same shared memory resources, i.e., the processes are on the same physical system. This program uses shared memory functions specified by POSIX and in doing so avoids disk I/O for sharing. The program should work on any Linux variant but was only tested on Ubuntu.

*UPDATE: Thanks to contributor Andrew Smith, we now support Windows through the Boost InterProcess library. The windows version has not been tested by the first author.

% For example, assuming you have data X:

shmkey=12345;
sharedmatrix('clone',shmkey,X);
clear X;
spmd(8)
X=sharedmatrix('attach',shmkey);
% do something with X
sharedmatrix('detach',shmkey,X);
end
sharedmatrix('free',shmkey);

For complete description please see my blog post:
http://smlv.cc.gatech.edu/2010/08/27/shared-memory-in-matlab/

引用格式

Joshua Dillon (2024). sharedmatrix (https://www.mathworks.com/matlabcentral/fileexchange/28572-sharedmatrix), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 App Building 的更多信息

Community Treasure Hunt

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

Start Hunting!

sharedmatrix/

sharedmatrix/sharedmatrix_windows_by_andrew_smith/

版本 已发布 发行说明
1.17.0.0

No change to code. Updated icon only.

1.14.0.0

- Sharing of scalars is now explicitly not supported (Alen Wu).
- Windows version clone open_or_create (Guy Katz).

1.12.0.0

Fixed regression bug: incorrect calculation of sparse matrix size (nzmax).

1.11.0.0

Thanks to contributor Andrew Smith, now support structs.

Various other minor bug fixes.

1.6.0.0

Added ipcs interface: whosshared.m

1.5.0.0

Corrected mishandling of sparse logical matrices.

1.4.0.0

updated description

1.3.0.0

updated description

1.2.0.0

1) fixed empty member bug
2) fixed install_sharedmatrix.m
3) updated/clarified documentation

1.0.0.0