[Openmp-dev] [RFC] Port RTL to openmp

Jon Chesterfield via Openmp-dev openmp-dev at lists.llvm.org
Tue Jan 28 06:50:39 PST 2020


A follow on to "does anyone know how to write this in opencl", which sadly
got no replies.

The current deviceRTL uses __shared__ memory and arch specific parameters,
intrinsics. It compiles as c++ if I comment out the shared and device
attributes.

I'm proposing defining the shared variables with pragma omp target declare
and rewriting the uses of volatile to follow c++ semantics. Expecting some
clang work around address spaces and constructors.

Fairly big and controversial piece of work so I'm polling the list for
opinions first. It'll especially help anyone writing an openmp compiler who
doesn't have cuda or hip already implemented.

Anyone strongly for or against?

Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20200128/c42408ff/attachment.html>


More information about the Openmp-dev mailing list