PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

problem with inline of C functions (floor)

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
silence



Joined: 04 Apr 2012
Posts: 3

PostPosted: Fri Aug 31, 2012 1:03 pm    Post subject: problem with inline of C functions (floor) Reply with quote

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
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6125
Location: The Portland Group Inc.

PostPosted: Fri Aug 31, 2012 2:39 pm    Post subject: Reply with quote

Hi Rengan,

Quote:
So is there any solution to this?


Include the "accelmath.h" header file.

Quote:
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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group