This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/24703] New: Unable to compile OpenMP program with omp parallel for schedule(dynamic) directive


Error while compiling an OpenMP code that uses schedule(dynamic) clause:

$ gcc -fopenmp -c -lgomp ompparfor.c 
ompparfor.c: In function â:
ompparfor.c:6: error: â undeclared (first use in this function)
ompparfor.c:6: error: (Each undeclared identifier is reported only once
ompparfor.c:6: error: for each function it appears in.)
ompparfor.c:6: error: â undeclared (first use in this function)
ompparfor.c:7: error: â undeclared (first use in this function)
ompparfor.c:8: internal compiler error: tree check: expected class â, have â
(error_mark) in
 c_finish_omp_for, at c-omp.c:199
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The source code (snippet, reproducible and compilable):

void work(int);
int work_param;
int sphinx_omp_thread_count;
int schedule_loop_cap;

int measure_omp_parallel_for_dynamic (void)
{
  int j;

#pragma omp parallel for schedule(dynamic)
  for(j=0; j < sphinx_omp_thread_count * schedule_loop_cap; j++) {
    work(work_param);
  }

  return 0;
}


-- 
           Summary: Unable to compile OpenMP program with omp parallel for
                    schedule(dynamic) directive
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: laksono at cs dot uh dot edu
 GCC build triplet: Linux  2.6.9-22.EL #1 SMP Wed Oct 5 15:20:11 EEST 2005
                    ia64 ia64
  GCC host triplet: Linux 2.6.9-22.EL #1 SMP Wed Oct 5 15:20:11 EEST 2005
                    ia64 ia64
GCC target triplet: Linux  2.6.9-22.EL #1 SMP Wed Oct 5 15:20:11 EEST 2005
                    ia64 ia64


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24703


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]