Parallel processing 在Julia中创建一个共享数组,元组{Int,Char,String}作为元素类型

Parallel processing 在Julia中创建一个共享数组,元组{Int,Char,String}作为元素类型,parallel-processing,julia,Parallel Processing,Julia,有没有办法创建数据类型为Tuple{Int,Char,String}的共享数组? 我收到一个错误,说数据类型必须是bits类型,所以我怀疑这是不可能的,我在文档中找不到任何内容。forSharedArray状态 Construct a SharedArray of a bitstype T and size dims across the processes specified by pids - all of which have to be on the same host. 所以实际上,

有没有办法创建数据类型为Tuple{Int,Char,String}的共享数组? 我收到一个错误,说数据类型必须是bits类型,所以我怀疑这是不可能的,我在文档中找不到任何内容。

for
SharedArray
状态

Construct a SharedArray of a bitstype T and size dims across the processes specified by pids - all
of which have to be on the same host.
所以实际上,
T
必须是“位”类型。实际限制是该类型必须是
isbits
,即“普通数据”类型。例如,
Tuple{Int,Char}
就可以了。但是
String
不是纯数据,因此
Tuple{Int,Char,String}
也不是纯数据

julia> isbits(Tuple{Int,Char,String})
false