Julia: How to copy data to another processor in Julia

后端 未结 4 1690
我在风中等你
我在风中等你 2020-11-27 16:41

How do you move data from one processor to another in julia?

Say I have an array

a = [1:10]

Or some other data structure. What is

4条回答
  •  感动是毒
    2020-11-27 17:24

    Just so everyone here knows, I put these ideas together into a package ParallelDataTransfer.jl for this. So you just need to do

    using ParallelDataTransfer
    

    (after installing) in order to use the functions mentioned in the answers here. Why? These functions are pretty useful! I added some testing, some new macros, and updated them a bit (they pass on v0.5, fail on v0.4.x). Feel free to put in pull requests to edit these and add more.

提交回复
热议问题