Skip to content

Avoid recomputing getenv("FPC_EXPONENT_USAGE)"#24

Open
Archaversine wants to merge 2 commits into
llnl:masterfrom
Archaversine:master
Open

Avoid recomputing getenv("FPC_EXPONENT_USAGE)"#24
Archaversine wants to merge 2 commits into
llnl:masterfrom
Archaversine:master

Conversation

@Archaversine
Copy link
Copy Markdown

This PR reduces the overhead of the _FP64_CHECK_ function by storing the result of getenv("FPC_EXPONENT_USAGE") at initialization time and reusing the result within the _FP64_CHECK_ function itself. On the NPB3.0-omp-C benchmarks I was able to reduce the CG Class W benchmark execution time from ~17 seconds to ~4 seconds.

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

Labels

None yet

1 participant