cmath library functions in a routine directive

Hello,
My code uses some functions from the cmath library in functions where I apply the routine seq directive to crate a device version of the code.
With pgi 17.04 the code compiled but It doesn’t in pgi 17.10. I’m having the following message:
PGCC-S-1000-Call in OpenACC region to procedure ‘pow’ which has no acc routine information (source/src/fungi.cpp: 652)
PGCC-S-0155-Compiler failed to translate accelerator region (see -Minfo messages): Missing branch target block (source/src/fungi.cpp: 669)

652, Generating acc routine seq
Generating Tesla code
682, Accelerator restriction: call to ‘pow’ with no acc routine
information
Is there any way of solving this?
Many thanks,
Xavier

PS: I could fine any answer in the forum but maybe I missed it.__

Hi Xavier,

Try including “accelmath.h”. This header file contains the device definition for pow and should get you past this error.

Hope this helps,
Mat