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

Iteration code size comparison #1

Closed
mratsim opened this issue Oct 17, 2018 · 0 comments
Closed

Iteration code size comparison #1

mratsim opened this issue Oct 17, 2018 · 0 comments

Comments

@mratsim
Copy link
Owner

mratsim commented Oct 17, 2018

As of https://github.com/numforge/laser/blob/04a675950b651535dc5b6cdd2a62706755742270/benchmarks/loop_iteration/iter_bench.nim

This is approximative stop and start point are +- 10 instructions:

Global ref iter ~710 instructions
2018-10-17_11-52-03

Global TRIOT ~1950 instructions
2018-10-17_11-53-42

Per tensor ref iter ~830 instructions
2018-10-17_11-55-58

Fused per tensor ref iter ~600 instructions
2018-10-17_11-59-04

Note that GCC is auto-unrolling some loops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant