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

Use the pure Julia exp function for fastmath #21948

Merged
merged 1 commit into from
May 28, 2017

Conversation

musm
Copy link
Contributor

@musm musm commented May 18, 2017

I noticed this when I was doing some benchmarking and found the fastmath version to be a bit slower, only realizing it was still calling the openlibm version and not the pure julia implementation.

@ararslan ararslan added the maths Mathematical functions label May 18, 2017
@ararslan ararslan requested a review from simonbyrne May 18, 2017 20:39
@giordano
Copy link
Contributor

Should be backported to 0.6?

@musm
Copy link
Contributor Author

musm commented May 20, 2017

It should

@musm
Copy link
Contributor Author

musm commented May 26, 2017

bump

@tkelman
Copy link
Contributor

tkelman commented May 26, 2017

any way of testing these or tracking them in the benchmark suite?

@ViralBShah
Copy link
Member

@eschnett could perhaps take a look and review this too.

@musm
Copy link
Contributor Author

musm commented May 28, 2017

This is really straightforward all it's doing is removing the libm call and allowing the following line https://github.com/musm/julia/blob/9c7c389a449e58c27316b13e525514b11b46808a/base/fastmath.jl#L326 to call the pure julia version.

@KristofferC KristofferC merged commit efca045 into JuliaLang:master May 28, 2017
@musm musm deleted the patch-3 branch May 28, 2017 18:30
tkelman pushed a commit that referenced this pull request Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maths Mathematical functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants