Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use concrete phase types #71

Merged
merged 1 commit into from
Dec 12, 2021
Merged

Use concrete phase types #71

merged 1 commit into from
Dec 12, 2021

Conversation

charleskawczynski
Copy link
Member

This should help with allocations, since we make closures over these types, which are Unionall right now, this PR makes them concrete.

@charleskawczynski
Copy link
Member Author

bors r+

@charleskawczynski
Copy link
Member Author

bors r-

@bors
Copy link
Contributor

bors bot commented Dec 12, 2021

Canceled.

@charleskawczynski
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Dec 12, 2021
71: Use concrete phase types r=charleskawczynski a=charleskawczynski

This should help with allocations, since we make closures over these types, which are Unionall right now, this PR makes them concrete.

Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
@bors
Copy link
Contributor

bors bot commented Dec 12, 2021

Build failed:

@charleskawczynski charleskawczynski force-pushed the ck/improve_perf branch 2 times, most recently from 7bb0ef3 to 0cdc6c4 Compare December 12, 2021 21:05
@codecov
Copy link

codecov bot commented Dec 12, 2021

Codecov Report

Merging #71 (0cdc6c4) into main (c18f29b) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 0cdc6c4 differs from pull request most recent head 4709361. Consider uploading reports for the commit 4709361 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main      #71      +/-   ##
==========================================
- Coverage   96.84%   96.84%   -0.01%     
==========================================
  Files           7        7              
  Lines         857      855       -2     
==========================================
- Hits          830      828       -2     
  Misses         27       27              
Impacted Files Coverage Δ
src/config_numerical_method.jl 73.13% <ø> (-0.40%) ⬇️
src/relations.jl 98.71% <ø> (ø)
src/TestedProfiles.jl 100.00% <100.00%> (ø)
src/states.jl 98.19% <100.00%> (-0.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c18f29b...4709361. Read the comment docs.

Bump patch version number

Remove ExprTools

Try CUDA_VERSION 10.2

Only catch phase_type as type parameter

Add pTq constructor analysis, fix 0 alloc case
@charleskawczynski
Copy link
Member Author

bors r+

@bors bors bot merged commit fcd8f07 into main Dec 12, 2021
@bors bors bot deleted the ck/improve_perf branch December 12, 2021 21:49
bors bot added a commit to CliMA/ClimaTimeSteppers.jl that referenced this pull request Dec 5, 2022
93: Prep alleviating latency issues r=charleskawczynski a=charleskawczynski

This PR takes a couple steps to tackle some latency issues:
 - [Avoid UnionAll::DataType in struct](52c9ff0), which was shown to improve inference [here](CliMA/Thermodynamics.jl#71), and a smaller MWE [here](https://gist.github.com/charleskawczynski/61efc7b769e14eab7231e686773b9d0e)
 - [Allow SparseContainers to work with Arrays](c5c53ee)

Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant