Indeed, SharedArrays use mmap. Basically what you'd need is some way of accessing the underlying file object, because that is what would be passed to the other processes. If you start with the underlying HDF5 dataset rather than the mmapped array, I would imagine this should be reasonably straightforward (that's not to say that there isn't a way to "go backward" from the array, it's just I don't know of one). But to my knowledge we don't have any code to do that now, so it would surely take a little experimentation.
Best, --Tim On Saturday, December 06, 2014 09:44:29 AM Douglas Bates wrote: > If I have a memory-mapped array, say an uncompressed dataset in a HDF5 > file, can I convert it to a SharedArray directly? From my, admittedly > inexpert, reading of base/sharedarray.jl it seems that a SharedArray will > end up being memory-mapped. Is there a way to avoid creating a new > memory-mapped array? In the case I have in mind the SharedArray will be > read-only.
