Skip to content
Snippets Groups Projects
Commit fc14489c authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Prevent an FPE in the cooling code created by the Intel compiler's over-enthusiastic vectorizer.

parent 4edeaaf1
Branches
Tags
No related merge requests found
......@@ -293,7 +293,10 @@ void read_cooling_header(const char *fname,
cooling->nH[i] = log10(cooling->nH[i]);
}
/* Compute inverse of solar mass fractions */
/* Compute inverse of solar mass fractions */
#if defined(__ICC)
#pragma novec
#endif
for (int i = 0; i < N_SolarAbundances; ++i) {
cooling->SolarAbundances_inv[i] = 1.f / cooling->SolarAbundances[i];
}
......
  • Owner

    Seeing:

    icc: command line remark #10120: overriding '-O0' with '-O3'
    cooling/EAGLE/cooling_tables.c(298): error #161: unrecognized #pragma
      #pragma novec

    Shouldn't this be novector?

  • Owner

    That compiled, so will push the fix.

  • Author Owner

    Thanks. I should not be editing code on my laptop and cosma at the same time...

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment