parallel-runtimes / lomp

Little OpenMP Library
Apache License 2.0
153 stars 17 forks source link

Implement the schedule passed as 0x40000024 #26

Closed JimCownie closed 3 years ago

JimCownie commented 3 years ago

Describe the bug The schedbench.c code from the EPCC micro-benchmarks dies with the message LOMP:***FATAL ERROR*** schedule(unknown schedule) 0x40000024 not yet supported

To Reproduce Please provide steps to reproduce the behaviour:

  1. Build the EPCC microbenchmarks using Clang
  2. Try to run schedbench with LOMP
  3. See error

Expected behaviour Code should run correctly!

Discussion From the schedbench code it looks as if this should be the internal code for a guided schedule, which we have as kmp_sch_guided_chunked = 36 (which matches the 0x24 in the low bits). Given that kmp_sch_modifier_nonmonotonic = (1 << 30) this looks as if we're just missing removing that from the incoming schedule somewhere.

Desktop (please complete the following information):