Skip to content

Commit

Permalink
update pmapreduce example (#13)
Browse files Browse the repository at this point in the history
* update pmapreduce example

* version bump to v0.8.5
  • Loading branch information
jishnub committed Jul 11, 2021
1 parent e14043a commit aa838b3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ParallelUtilities"
uuid = "fad6cfc8-4f83-11e9-06cc-151124046ad0"
authors = ["Jishnu Bhattacharya"]
version = "0.8.4"
version = "0.8.5"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
ParallelUtilities = "fad6cfc8-4f83-11e9-06cc-151124046ad0"

[compat]
Documenter = "0.25"
Documenter = "0.27"
20 changes: 20 additions & 0 deletions docs/src/examples/pmapreduce.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,26 @@ end

We compare the performance of the serial and parallel evaluations using 20 cores on one node:

We define a caller function first

```julia
function compare_with_serial()
# precompile
main_mapreduce(0)
main_pmapreduce(0)

# time
println("Tesing serial")
A = @time main_mapreduce(5e-6)
println("Tesing parallel")
B = @time main_pmapreduce(5e-6)

# check results
println("Results match : ", A == B)
end
```

We run this caller on the cluster:
```julia
julia> compare_with_serial()
Tesing serial
Expand Down

2 comments on commit aa838b3

@jishnub
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/40679

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.8.5 -m "<description of version>" aa838b369498db23febbf777d990584c4a44b86d
git push origin v0.8.5

Please sign in to comment.