<div dir="auto">A follow on to "does anyone know how to write this in opencl", which sadly got no replies.<div dir="auto"><br></div><div dir="auto">The current deviceRTL uses __shared__ memory and arch specific parameters, intrinsics. It compiles as c++ if I comment out the shared and device attributes.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Anyone<span style="font-family:sans-serif"> strongly for or against?</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Jon</span></div></div>