Missing branch target block (PGI Accelerator)

Hi,
I getting an error while compiling my Accelerator Fortran code:
PGF90-W-0155-Compiler failed to translate accelerator region (see -Minfo messages): Missing branch target block

The error occurs at my outer parallel region (I do have a loop nest inside of my accelerator region). However, the messages of -Minfo do not help me. I just don’t know what a “missing branch target block” could actually mean… Any ideas what the issue could be?

    166, Loop is parallelizable
         Sequential loop scheduled on host
         Accelerator scalar kernel generated
    181, Complex loop carried dependence of 'distarray' prevents parallelization
         Loop carried reuse of 'distarray' prevents parallelization
         Loop carried scalar dependence for 'local_distances' at line 230
         Scalar last value needed after loop for 'local_distances' at line 256
         Scalar last value needed after loop for 'local_distances' at line 264
         Inner sequential loop scheduled on host
         Accelerator scalar kernel generated
    229, Sum reduction generated for local_counter
    255, Inner sequential loop scheduled on accelerator
         Inner sequential loop scheduled on host
         Accelerator scalar kernel generated
    256, Accelerator restriction: induction variable live-out from loop: k
    257, Accelerator scalar kernel generated
    262, Accelerator restriction: induction variable live-out from loop: k
         Accelerator scalar kernel generated

Bye, Sandra

Hi Sandra,

This seems likely a compiler issue. Mind sending an example to PGI Customer Service (trs@pgroup.com) so we can take a look?

Thanks,
Mat

Okay, I will try to make a test case and send it to you.