Skip to content

Conversation

csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Feb 26, 2024

todo: probably want to add some locking around the recv rather than just crazyily spinlock

closes #383

@lgarithm
Copy link
Contributor

also improves both small and large messages, but not as good as #382

BGN ========================================bench_allreduce========================================
bench_all_reduce(np=4) took 0.0507s, total workload: 3.662MiB, rate: 0.071GiB/s
bench_all_reduce(np=4) took 0.0483s, total workload: 3.662MiB, rate: 0.074GiB/s
bench_all_reduce(np=4) took 0.0489s, total workload: 3.662MiB, rate: 0.073GiB/s
bench_all_reduce(np=4) took 0.0487s, total workload: 3.662MiB, rate: 0.073GiB/s
bench_all_reduce(np=4) took 0.0468s, total workload: 3.662MiB, rate: 0.076GiB/s
bench_all_reduce(np=4) took 0.0458s, total workload: 3.662MiB, rate: 0.078GiB/s
bench_all_reduce(np=4) took 0.0456s, total workload: 3.662MiB, rate: 0.078GiB/s
bench_all_reduce(np=4) took 0.0482s, total workload: 3.662MiB, rate: 0.074GiB/s
bench_all_reduce(np=4) took 0.0481s, total workload: 3.662MiB, rate: 0.074GiB/s
bench_all_reduce(np=4) took 0.0479s, total workload: 3.662MiB, rate: 0.075GiB/s
bench_all_reduce(np=4) took 0.3474s, total workload: 1.144GiB, rate: 3.292GiB/s
bench_all_reduce(np=4) took 0.3404s, total workload: 1.144GiB, rate: 3.359GiB/s
bench_all_reduce(np=4) took 0.3378s, total workload: 1.144GiB, rate: 3.386GiB/s
bench_all_reduce(np=4) took 0.3351s, total workload: 1.144GiB, rate: 3.413GiB/s
bench_all_reduce(np=4) took 0.3427s, total workload: 1.144GiB, rate: 3.337GiB/s
bench_all_reduce(np=4) took 0.3394s, total workload: 1.144GiB, rate: 3.370GiB/s
bench_all_reduce(np=4) took 0.3416s, total workload: 1.144GiB, rate: 3.348GiB/s
bench_all_reduce(np=4) took 0.3355s, total workload: 1.144GiB, rate: 3.409GiB/s
bench_all_reduce(np=4) took 0.3369s, total workload: 1.144GiB, rate: 3.395GiB/s
bench_all_reduce(np=4) took 0.3456s, total workload: 1.144GiB, rate: 3.309GiB/s
END ========================================bench_allreduce========================================

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

Attention: Patch coverage is 18.51852% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 81.85%. Comparing base (f780e45) to head (007870a).
Report is 1 commits behind head on main.

Files Patch % Lines
include/faabric/atomic_queue/atomic_queue.h 0.00% 18 Missing ⚠️
include/faabric/atomic_queue/defs.h 0.00% 2 Missing ⚠️
include/faabric/util/queue.h 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #385      +/-   ##
==========================================
- Coverage   82.07%   81.85%   -0.23%     
==========================================
  Files         113      115       +2     
  Lines        7515     7539      +24     
==========================================
+ Hits         6168     6171       +3     
- Misses       1347     1368      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@csegarragonz csegarragonz force-pushed the spinlock branch 2 times, most recently from 4ad82c2 to ead631c Compare February 28, 2024 10:27
return value;
}

long size()
Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove this method right? it's not virtual.

csegarragonz added a commit that referenced this pull request Feb 28, 2024
csegarragonz added a commit that referenced this pull request Feb 28, 2024
csegarragonz added a commit that referenced this pull request Feb 28, 2024
csegarragonz added a commit that referenced this pull request Mar 13, 2024
@csegarragonz csegarragonz force-pushed the spinlock branch 2 times, most recently from a934a4e to 0b0f1b1 Compare March 13, 2024 10:46
csegarragonz added a commit that referenced this pull request Mar 13, 2024
@csegarragonz csegarragonz force-pushed the spinlock branch 2 times, most recently from 7f8ecab to 8049520 Compare March 26, 2024 17:24
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.

2 participants