function or procedure calls are not allowed

Functions called within an accelerator region must first be inlined before the region can be accelerated. The restriction is mostly due to the lack of a linker for device code as well as limited calling support on the device. NVIDIA will begin shipping a device linker with CUDA 5 and the Kepler K20 will have several improvements with will make function calling more feasible. We’ll begin looking on how to extend the PGI Accelerator Model to allow for function calling later this year.

So in the meantime, you will need to inline your routines, either automatically using compiler optimisation, or manually. For help on automatic Inlining into accelerator regions, you may find this post helpful: function/procedure calls not supported

If use a code box how does one make a code box?

Three ways.

  1. Press the “Code” button (the fifth one from the left) to open the tag. Type in your code. Then press “Code” again to close the tag.
  2. Type in your code and then highlight it using your mouse. Press the “Code” button. This will put in both an open and close tag.
  3. Manually type the open tag “[ code ]” and close tag “[ /code ]” surrounding your code. (Note remove the extra spaces in the tags and the quotes around the tags. I needed to put them in so the forum didn’t make a code box.).

Hope this helps,
Mat