我有一個函數,我想在主函數中調用它。所有的參數是sharedArray,我們有一個變量是type。當我想運行該程序時出現錯誤。 @everywhere type dty{T <: Real}
...... (some variable)
end
@everywhere function func2!(v::dty,
out::SharedArray,
我使用朱莉婭0.6多類型聲明,用我的代碼在0.5.2就好了,現在我端口運行它,我得到這個錯誤 syntax: multiple type declarations for "width" 現在,當我grep -rn "width" *對整個包我得到這樣的結果 coolFile.jl:11: local const width::Int64 = Int64(sqrt(modulation))
co
我想爲並行計算編寫一個簡單的Julia代碼。 我寫了一個基於這個文檔的簡單代碼:https://docs.julialang.org/en/latest/manual/parallel-computing @everywhere function test(x)
return x * 2.0
end
nprocess = 5
addprocs(nprocess)
respons