I need to run some processes on a x64 system (like most modern computers), save the results (e.g. by serializing them to a file), and then load and use the results on a Raspberry Pi (which is a x86 system). The object in question is a Interpolations.jl
object.
Is there any way to accomplish this?
Right now, I understandably get this error when trying to deserialize the object on the Pi:
julia> c = deserialize("tmp")
ERROR: TypeError: in Vararg, in count, expected Int32, got a value of type Int64
Stacktrace:
[1] deserialize_datatype(::Serializer{IOStream}, ::Bool) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:1276
[2] handle_deserialize(::Serializer{IOStream}, ::Int32) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:826
[3] deserialize(::Serializer{IOStream}) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
[4] deserialize_datatype(::Serializer{IOStream}, ::Bool) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:1276
[5] handle_deserialize(::Serializer{IOStream}, ::Int32) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:826
[6] deserialize(::Serializer{IOStream}) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
[7] deserialize_datatype(::Serializer{IOStream}, ::Bool) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:1276
[8] handle_deserialize(::Serializer{IOStream}, ::Int32) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:826
[9] deserialize(::Serializer{IOStream}) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
[10] deserialize_datatype(::Serializer{IOStream}, ::Bool) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:1276
[11] handle_deserialize(::Serializer{IOStream}, ::Int32) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:826
[12] deserialize(::Serializer{IOStream}) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
[13] deserialize_datatype(::Serializer{IOStream}, ::Bool) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:1267
[14] handle_deserialize(::Serializer{IOStream}, ::Int32) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:826
[15] deserialize(::Serializer{IOStream}) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
[16] deserialize_datatype(::Serializer{IOStream}, ::Bool) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:1276
[17] handle_deserialize(::Serializer{IOStream}, ::Int32) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:826
[18] deserialize(::Serializer{IOStream}) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
[19] handle_deserialize(::Serializer{IOStream}, ::Int32) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:833
[20] deserialize(::Serializer{IOStream}) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
[21] handle_deserialize(::Serializer{IOStream}, ::Int32) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:879
[22] deserialize(::Serializer{IOStream}) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
[23] deserialize at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:760 [inlined]
[24] open(::typeof(deserialize), ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:325
[25] open at ./io.jl:323 [inlined]
[26] deserialize(::String) at /home/pi/work/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:770
[27] top-level scope at REPL[4]:1