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
......@@ -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];
}
......
  • 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?

  • That compiled, so will push the fix.

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

Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment