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

[TTFS] Replace broadcast operators by explicit for loops in IPM kernels #231

Merged
merged 5 commits into from
Oct 24, 2022

Conversation

frapac
Copy link
Collaborator

@frapac frapac commented Oct 7, 2022

Reduce drastically the precompile time.

On current master, we get

InferenceTimingNode: 3.715741/6.123850 on Core.Compiler.Timings.ROOT() with 1 direct children

On this branch:

InferenceTimingNode: 2.793325/3.842035 on Core.Compiler.Timings.ROOT() with 1 direct children

x-ref: #186

@frapac frapac requested a review from sshin23 October 7, 2022 21:49
Copy link
Member

@sshin23 sshin23 left a comment

Choose a reason for hiding this comment

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

@frapac Thanks for working on this! Seems that this can significantly reduce the time. Though, I'd suggest we run a benchmark to better understand the impact on solution time.

Another suggestion, I think for many of these operations, @simd is applicable. Have you considered/tested this?

src/IPM/solver.jl Outdated Show resolved Hide resolved
src/IPM/kernels.jl Outdated Show resolved Hide resolved
src/IPM/kernels.jl Outdated Show resolved Hide resolved
src/IPM/solver.jl Outdated Show resolved Hide resolved
src/IPM/solver.jl Outdated Show resolved Hide resolved
src/IPM/solver.jl Outdated Show resolved Hide resolved
src/IPM/solver.jl Outdated Show resolved Hide resolved
src/IPM/solver.jl Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #231 (4a56f4b) into master (8260ac9) will increase coverage by 1.54%.
The diff coverage is 90.44%.

@@            Coverage Diff             @@
##           master     #231      +/-   ##
==========================================
+ Coverage   74.19%   75.74%   +1.54%     
==========================================
  Files          38       38              
  Lines        3697     3512     -185     
==========================================
- Hits         2743     2660      -83     
+ Misses        954      852     -102     
Impacted Files Coverage Δ
src/IPM/kernels.jl 93.39% <84.33%> (+9.22%) ⬆️
src/IPM/restoration.jl 100.00% <100.00%> (ø)
src/IPM/solver.jl 91.70% <100.00%> (+0.30%) ⬆️
src/nlpmodels.jl 100.00% <100.00%> (+3.22%) ⬆️
src/LinearSolvers/linearsolvers.jl 0.00% <0.00%> (-20.00%) ⬇️
src/Interfaces/utils.jl 66.03% <0.00%> (-2.69%) ⬇️
src/utils.jl 83.78% <0.00%> (-1.94%) ⬇️
src/Interfaces/MOI_interface.jl 69.53% <0.00%> (-1.78%) ⬇️
src/options.jl 96.42% <0.00%> (-0.24%) ⬇️
src/KKT/KKTsystem.jl 97.14% <0.00%> (-0.23%) ⬇️
... and 21 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sshin23 sshin23 merged commit e4d5bd5 into master Oct 24, 2022
@frapac frapac deleted the fp/broadcast_kernels branch May 31, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants