Skip to content
  • Jonas Hahnfeld's avatar
    [OMPT] fix __ompt_get_teaminfo to consult lwt entries of parent teams · 28ea24bb
    Jonas Hahnfeld authored
    The comment already states, that this function should work similarly as __ompt_get_taskinfo.
    
    The function only looked for lwt entries of the current team, but not when unrolling the parents. This fix aligns the implementation to __ompt_get_taskinfo.
    
    The new test case creates a single theaded team (->lwt) and then a nested active team.
    Before the innermost print_id(1) would deliver a different team then the outer print_id(0).
    
    Patch by Joachim Protze!
    
    Differential Revision: https://reviews.llvm.org/D23309
    
    llvm-svn: 281466
    28ea24bb
Loading