Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

66AK2H14: OpenMP compilation issue

$
0
0

Part Number:66AK2H14

Hello, I'm developing an APP with EVMK2H66AK2H14 and I'm trying to compile this section of code with clacc:

#pragma omp declare target
extern int printf(const char *_format, ...);

static void function() {
   // CODE
}

#pragma omp end declare target

int main()
{
   #pragma omp target update to(vars...)
   #pragma omp target
   {
      function();
   }
   #pragma omp target update from(vars...)
}

but I get this error:

INTERNAL ERROR: acpia6x experienced a segmentation fault
                  while processing function (unknown or file scope) file (unknown) line 0

This is caused by a defect in the compiler itself. TI Customer
Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue". Include this ENTIRE error message and a
copy of the .pp file created when option --preproc_with_comment
(-ppc) is used.

Idk how to fix it but I realize that if I change to this one, it compiles and executes correctly:

#pragma omp declare target
extern int printf(const char *_format, ...);

static void function() {
   #pragma omp target update to(vars...)
   #pragma omp target
   {
      // CODE
   }
   #pragma omp target update from(vars...)
}

#pragma omp end declare target

int main()
{
   function();
}

Thanks


Viewing all articles
Browse latest Browse all 262198

Trending Articles