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

Improve LC to compile faster version of nbody #92

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

czgdp1807
Copy link
Collaborator

num = 10000000

Compiler Time (s) Relative
lc --fast 0.46 1.21
lc 0.83s 2.18
clang++ -O3 -march=native -ffast-math 0.38s 1.0
clang++ -std=c++20 1.49s 3.92

@czgdp1807 czgdp1807 marked this pull request as ready for review February 14, 2024 19:27
@czgdp1807 czgdp1807 enabled auto-merge February 14, 2024 19:28
@@ -220,4 +220,5 @@ RUN(NAME pointer_03.cpp LABELS gcc llvm NOFAST)

RUN(NAME function_01.cpp LABELS gcc llvm NOFAST)

RUN(NAME nbody.cpp LABELS gcc llvm NOFAST)
RUN(NAME nbody_01.cpp LABELS gcc llvm NOFAST)
RUN(NAME nbody_02.cpp LABELS gcc llvm NOFAST)
Copy link
Contributor

Choose a reason for hiding this comment

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

If lc --fast works, then these can be removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lc --fast doesn't work yet. I just did some modifications in lc.cpp to make it work for benchmarking purposes.

@czgdp1807 czgdp1807 merged commit 5eb7bcb into lcompilers:main Feb 14, 2024
2 checks passed
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