erf and erfc for windows using pgcpp

Where would i find the definitions for erf and erfc for pgcpp 6.2-3 on windows?

Hi Ron,

Since PGI uses Microsoft’s math libraries on Windows and that Microsoft doesn’t support the C99 standard, several C99 math functions, including erf and erfc, are not available.

However, I have seen one code (SPEC CPU2006 444.namd) which solved this issue by integrating the erf source into the benchmark. The same basic version is freely available from’s web site.

Hope this helps,

I will see if i can incorporate the spec src since its going into another spec benchmark.