Skip to content

Instantly share code, notes, and snippets.

@niczky12
Created April 5, 2022 10:37
Show Gist options
  • Save niczky12/398948b68ec18f9f740b510e7358849a to your computer and use it in GitHub Desktop.
Save niczky12/398948b68ec18f9f740b510e7358849a to your computer and use it in GitHub Desktop.
using Distributed
function sumupto_dist(fun, N)
@distributed (+) for i in 1:N
fun(i)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment