Skip to content

C: Enable elemental tests #1596

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

Merged
merged 2 commits into from
Mar 21, 2023
Merged

C: Enable elemental tests #1596

merged 2 commits into from
Mar 21, 2023

Conversation

Smit-create
Copy link
Collaborator

With this, we have 193/205 (~94%) running with the C-backend.

@Smit-create Smit-create requested a review from certik March 21, 2023 11:21
@Smit-create Smit-create added the c Label for C language related changes label Mar 21, 2023
@Smit-create Smit-create marked this pull request as ready for review March 21, 2023 12:50
@@ -30,7 +30,7 @@ def elemental_sqrt32():
observed: f32[256] = empty(256)
shape: i32[1] = empty(1, dtype=int)
eps: f32
eps = f32(2e-6)
eps = f32(5e-6)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why we need to increase the error tolerance here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It has some precision issues with floats in the C backend.

@certik certik merged commit 30bd056 into lcompilers:main Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c Label for C language related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants