Awesome! The `HDF5.h5read` worked perfectly, thanks!

On Thursday, July 24, 2014 6:40:57 PM UTC-7, Tim Holy wrote:
>
> You can either say `HDF5.h5read` or say `@everywhere using HDF5`. It seems 
> that `using` causes the package to be loaded on all processes, but it only 
> brings it into Main's namespace in the main process. 
>
> --Tim 
>
> On Thursday, July 24, 2014 03:52:14 PM David Koslicki wrote: 
> > Hi, 
> > 
> > I'm trying to parallelize file I/O, but am running into a problem with 
> > package availability. 
> > 
> > In particular, I would like to do the following 
> > 
> > *@everywhere function my_func(i)* 
> > *     file = h5read("file$(i).h5","/data");* 
> > *     result = perform_some_computation(file)* 
> > *     return result* 
> > *end* 
> > 
> > *pmap(my_func,1:100)* 
> > 
> > However, I keep getting errors that h5read is not defined. Even after 
> > running 
> > *using HDF5* 
> > 
> > Any ideas how I can load the HDF5 package on all cores? 
> > 
> > Thanks, 
> > 
> > ~David 
>
>

Reply via email to