<div dir="ltr">Hi Jonas, <br><br>Thank you for replying :)<div class="inserted"><br>I apologize for posting this question.</div><div class="inserted"><br></div><div class="inserted">1) They are actually not related.</div><div class="inserted">2) I meant #pragma omp teams and distribute parallel for. I have found it.</div><div class="inserted"><div class="inserted"><br></div><div class="inserted">thank you!<br>Marcelo</div><div class="inserted"><br></div><div class="inserted"><div class="gmail-inserted"><div class="gmail-inserted"><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-27 12:35 GMT-02:00 Jonas Hahnfeld <span dir="ltr"><<a href="mailto:hahnjo@hahnjo.de" target="_blank">hahnjo@hahnjo.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I don't see a connection to the topic that was originally discussed in the thread?<br>
In general I'm not sure if I correctly understand your question: If you use parallel regions on the host there is only one team of threads and its size is influenced in the usual ways (num_threads() clause, omp_set_num_threads() API call, OMP_NUM_THREADS environment variable). As you talk about "thread-blocks" and explicitly mention OpenMP 4.x do you mean execution on the host or are you using the teams construct inside a target region?<br>
<br>
Jonas<div><div class="gmail-m_4174332290797889109h5"><br>
<br>
Am 2017-11-23 13:52, schrieb Marcelo Novaes:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_4174332290797889109h5">
Hi all,<br>
<br>
I was wondering if from OpenMP 4.0 to OpenMP 4.5, does the way it<br>
chooses the number of thread-blocks and the number of threads per<br>
block was changed?<br>
<br>
Thank you very much in advance.<br>
<br>
best,<br>
Marcelo<br>
<br>
2017-08-10 6:00 GMT-03:00 Marcelo Novaes <<a href="mailto:novaes.ssa@gmail.com" target="_blank">novaes.ssa@gmail.com</a>>:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_4174332290797889109h5">
That's fine, for my purpose, it would be good, but I don't need to<br>
reflect the current implementation.<br>
<br>
I'll try to update it asap :) thank you!<br>
<br>
best,<br>
Marcelo<br>
<br>
2017-08-10 5:53 GMT-03:00 Jonas Hahnfeld <<a href="mailto:hahnjo@hahnjo.de" target="_blank">hahnjo@hahnjo.de</a>>:<br>
Hmm, that's bad: 3.7 has been released almost 2 years ago, so<br>
whatever results you measure with this pretty much won't reflect the<br>
current implementation.<br>
<br>
Jonas<br>
<br>
Am 2017-08-10 10:43, schrieb Marcelo Novaes:<br>
<br>
hello Jonas, I meant, I didn't try any newer version by now.<br>
<br>
2017-08-10 5:43 GMT-03:00 Marcelo Novaes <<a href="mailto:novaes.ssa@gmail.com" target="_blank">novaes.ssa@gmail.com</a>>:<br>
<br>
Hello Jonas,<br>
<br>
I am not able to answer that at least until this weekend, sorry (I<br>
am in a rush with a strict deadline).<br>
<br>
But I can get back to you with the answer soon.  If you need it<br>
really soon, let me know.<br>
<br>
best regards,<br>
Marcelo<br>
<br>
2017-08-10 5:31 GMT-03:00 Jonas Hahnfeld <<a href="mailto:hahnjo@hahnjo.de" target="_blank">hahnjo@hahnjo.de</a>>:<br>
Hi Marcelo,<br>
<br>
so does this need to be fixed in the source or has that already<br>
happened for newer versions?<br>
<br>
Thanks,<br>
Jonas<br>
<br>
Am 2017-08-10 10:27, schrieb Marcelo Novaes:<br>
<br>
Hi Jonas,<br>
<br>
I've figured it out and forgot to reply here.<br>
<br>
Anyways, thank you for the reply!<br>
<br>
best<br>
<br>
--<br>
Solution: added ffi dynamic lib inside the<br>
openmp/src/CMakeLists.txt.<br>
Then, built openmp (make sure the binary once compiled is linked<br>
with<br>
the correct omp, not gomp (from gcc) checking via ldd).<br>
<br>
2017-08-10 4:12 GMT-03:00 Jonas Hahnfeld <<a href="mailto:hahnjo@hahnjo.de" target="_blank">hahnjo@hahnjo.de</a>>:<br>
<br>
Hi,<br>
<br>
+openmp-dev for discussion about the runtime.<br>
<br>
3.7 is quite old, do you see the same problem with 4.0.1? There<br>
might be some patches in that fixed the build for ARM.<br>
<br>
Regards,<br>
Jonas<br>
<br>
Am 2017-08-09 19:15, schrieb Marcelo Novaes via cfe-dev:<br>
<br>
Hi all,<br>
<br>
Should I be able to use OpenMP 3.1 using Clang 3.7 on  LLVM 3.7 on<br>
an<br>
ARM board with a Linux 3.10.63+?<br>
<br>
I've built the llvm 3.7 with clang 3.7 successfully, but it didn't<br>
generate omp dynamic lib. I'm getting an error when I try to do a<br>
"make" inside of my build/projects/openmp.<br>
<br>
Linking C shared library ../../../../lib/libomp.so<br>
CMakeFiles/omp.dir/z_Linux_uti<wbr>l.c.o: In function<br>
`__kmp_invoke_microtask':<br>
z_Linux_util.c:(.text.__kmp_in<wbr>voke_microtask+0x9e): undefined<br>
reference to `ffi_prep_cif'<br>
z_Linux_util.c:(.text.__kmp_in<wbr>voke_microtask+0xac): undefined<br>
reference to `ffi_call'<br>
z_Linux_util.c:(.text.__kmp_in<wbr>voke_microtask+0xd4): undefined<br>
reference to `ffi_type_pointer'<br>
z_Linux_util.c:(.text.__kmp_in<wbr>voke_microtask+0xd8): undefined<br>
reference to `ffi_type_void'<br>
collect2: error: ld returned 1 exit status<br>
make[2]: *** [lib/libomp.so] Error 1<br>
<br>
However, I have libffi linked, it didn't help.<br>
<br>
I want to generate a dyn lib I can call, I was calling a dyn from<br>
my<br>
gcc, but clang was not able to execute multi thread code compiled<br>
with<br>
the gcc's dynamic lib (it basically ignored the pragmas).<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
</div></div><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a> [1] [1] [1]<span><br>
<br>
--<br>
<br>
Best,<br>
Marcelo<br>
<br>
Links:<br>
------<br></span>
[1] <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a> [1] [1]<span><br>
<br>
--<br>
<br>
Best,<br>
Marcelo<br>
<br>
--<br>
<br>
Best,<br>
Marcelo<br>
<br>
Links:<br>
------<br>
[1] <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a> [1]<br>
</span></blockquote><span>
<br>
--<br>
<br>
Best,<br>
Marcelo<br>
<br>
--<br>
<br>
Best,<br>
Marcelo<br>
<br>
Links:<br>
------<br>
[1] <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</span></blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_4174332290797889109gmail_signature"><div dir="ltr"><div><div dir="ltr">Best,<div>Marcelo</div></div></div></div></div>
</div></div></div></div></div></div>