problem with inline of C functions (floor)

Hi,


In my acc region, I need to use floor function, but the compiler always complains “function/procedure calls are not supported; unsupported calls to ‘floor’”. I looked at some other similar posts and tried to compile with different inline flags, like "-Minline’, “-Minline=floor”, “-Minline=name:floor” and “-Mipa=inline” but all of them failed. So is there any solution to this?

Is there a list of C functions that pgi support inside the region? I mean both pgi region and OpenACC region (parallel, kernels, loop, etc.).

Thanks,
Rengan

Hi Rengan,

So is there any solution to this?

Include the “accelmath.h” header file.

Is there a list of C functions that pgi support inside the region?

The header file is the easiest place to look. (on my system it’s located at /opt/pgi/linux86-64/12.8/include/accelmath.h)

Hope this helps,
Mat