Help with OpenMP pragmas source to source translation.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with OpenMP pragmas source to source translation.

Kristof Beyls via cfe-dev
Hello guys,
I'm a Clang newcomer. To make my travel through Clang interesting, I'm trying to solve this bug https://bugs.llvm.org/show_bug.cgi?id=40253. I've spend many many hours debugging Clang using gdb. To fully understand how "#pragma target" works, I started debbuging this simple program:

int main() {
  #pragma omp parallel
  {
    int a;
  }
  return 0;
}

I tracked the compilation up to this function https://clang.llvm.org/doxygen/CGOpenMPRuntime_8cpp_source.html#l01716. I'm kind of lost, I don't know if this is the proper way of learning how OpenMP works in Clang. There's a huge amount of code and I don't know which functions to understand and which ones to skip.

Could someone please guide me, or just give me some advice?. If it helps, I have Clang compiled in Debug mode and with shared libraries.

Thanks.


_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Help with OpenMP pragmas source to source translation.

Kristof Beyls via cfe-dev

What exactly do you want to understand?

-------------
Best regards,
Alexey Bataev
26.09.2019 19:06, Hamilton Tobón Mosquera via cfe-dev пишет:
Hello guys,
I'm a Clang newcomer. To make my travel through Clang interesting, I'm trying to solve this bug https://bugs.llvm.org/show_bug.cgi?id=40253. I've spend many many hours debugging Clang using gdb. To fully understand how "#pragma target" works, I started debbuging this simple program:

int main() {
  #pragma omp parallel
  {
    int a;
  }
  return 0;
}

I tracked the compilation up to this function https://clang.llvm.org/doxygen/CGOpenMPRuntime_8cpp_source.html#l01716. I'm kind of lost, I don't know if this is the proper way of learning how OpenMP works in Clang. There's a huge amount of code and I don't know which functions to understand and which ones to skip.

Could someone please guide me, or just give me some advice?. If it helps, I have Clang compiled in Debug mode and with shared libraries.

Thanks.


_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

signature.asc (849 bytes) Download Attachment