Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Use static range in Grad setproperty! #1537

Merged
merged 1 commit into from
Sep 10, 2020
Merged

Use static range in Grad setproperty! #1537

merged 1 commit into from
Sep 10, 2020

Conversation

mwarusz
Copy link
Contributor

@mwarusz mwarusz commented Sep 10, 2020

Description

After #1458 I noticed a slowdown. This PR proposes a fix.
Running julia --project=. experiments/AtmosLES/bomex_les.jl --monitor-timestep-duration 100steps I get
Before:

┌ Info: Wall-clock time per time-step (statistics across MPI ranks)
│    maximum (s) =    1.5273617989999998e-02
│    minimum (s) =    1.5273617989999998e-02
│    median  (s) =    1.5273617989999998e-02
└    std     (s) =                       NaN

After:

 Info: Wall-clock time per time-step (statistics across MPI ranks)
│    maximum (s) =    1.1554147779999999e-02
│    minimum (s) =    1.1554147779999999e-02
│    median  (s) =    1.1554147779999999e-02
└    std     (s) =                       NaN

The fix relies on unexported StaticArrays API but JuliaArrays/StaticArrays.jl#474 makes me think that this is ok.

I have

  • Written and run all necessary tests with CLIMA by including tests/runtests.jl
  • Followed all necessary style guidelines and run julia .dev/climaformat.jl .
  • Updated the documentation to reflect changes from this PR.

For review by CLIMA developers

  • There are no open pull requests for this already
  • CLIMA developers with relevant expertise have been assigned to review this submission
  • The code conforms to the style guidelines and has consistent naming conventions. julia .dev/format.jl has been run in a separate commit.
  • This code does what it is technically intended to do (all numerics make sense physically and/or computationally)

@mwarusz
Copy link
Contributor Author

mwarusz commented Sep 10, 2020

bors try

bors bot added a commit that referenced this pull request Sep 10, 2020
@bors
Copy link
Contributor

bors bot commented Sep 10, 2020

@mwarusz
Copy link
Contributor Author

mwarusz commented Sep 10, 2020

bors r+

bors bot added a commit that referenced this pull request Sep 10, 2020
1537: Use static range in Grad setproperty! r=mwarusz a=mwarusz

# Description

After #1458 I noticed a slowdown. This PR proposes a fix.
Running ```julia --project=. experiments/AtmosLES/bomex_les.jl --monitor-timestep-duration 100steps``` I get
Before:
```
┌ Info: Wall-clock time per time-step (statistics across MPI ranks)
│    maximum (s) =    1.5273617989999998e-02
│    minimum (s) =    1.5273617989999998e-02
│    median  (s) =    1.5273617989999998e-02
└    std     (s) =                       NaN
```
After:
```
 Info: Wall-clock time per time-step (statistics across MPI ranks)
│    maximum (s) =    1.1554147779999999e-02
│    minimum (s) =    1.1554147779999999e-02
│    median  (s) =    1.1554147779999999e-02
└    std     (s) =                       NaN
```

The fix relies on unexported `StaticArrays` API but JuliaArrays/StaticArrays.jl#474 makes me think that this is ok.




1538: Rename step (intrinsic func) r=charleskawczynski a=charleskawczynski

# Description

Closes #95.



Co-authored-by: Maciej Waruszewski <[email protected]>
Co-authored-by: Charles Kawczynski <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 10, 2020

Build failed (retrying...):

@bors
Copy link
Contributor

bors bot commented Sep 10, 2020

@bors bors bot merged commit 896368b into master Sep 10, 2020
@bors bors bot deleted the mw/grad-static-range branch September 10, 2020 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants