<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Jeff,</div><div><br></div><div>thanks for your comment. When it comes to atomics, I did a cursory look on the code and it seems to me that it is already using C++11 atomics mostly everywhere. There are a few references to intrinsics as well. So I think this part is OK already.<br><br></div>Kind regards,<br></div><div>Roger<br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Missatge de Jeff Hammond <<a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a>> del dia dl., 25 de febr. 2019 a les 16:01:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Not to discourage you from doing this the standard way, but would it be possible to modify the OpenMP RTL so that it was HW/ISA agnostic using C11 atomics (and GCC/Clang intrinsics as a backup)?<br>
<br>
A few years ago, I ported a parallel runtime to ARM/AArch64 by merely replacing non-portable assembly with C++11 atomics and letting the compiler do the rest. This was a better way to do it anyways because the purpose was to unbreak Debian packaging and Debian supports a lot more than just x86/aarch.<br>
<br>
I’m sure there is a lot of OS-specific code in the RTL can’t be made portable, but at least that code is O(1) in the number of ISAs out there.  <br>
<br>
Jeff<br>
<br>
> On Feb 25, 2019, at 5:09 AM, Roger Ferrer Ibáñez via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>> wrote:<br>
> <br>
> Hi all,<br>
> <br>
> at the Barcelona Supercomputing Center we want to port the OpenMP RTL to RISC-V 64-bit Linux.<br>
> <br>
> Has anyone started this port already? I thought I'd ask to avoid doing twice the same work.<br>
> <br>
> If anyone is also interested in this port please to let us know.<br>
> <br>
> Kind regards,<br>
> -- <br>
> Roger Ferrer Ibáñez<br>
> _______________________________________________<br>
> Openmp-dev mailing list<br>
> <a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Roger Ferrer Ibáñez<br></div>