[Openmp-dev] Clang9 warning and compiler error with atomics

Narayanaswamy, Ravi via Openmp-dev openmp-dev at lists.llvm.org
Thu Dec 5 12:18:44 PST 2019


+Alexey

From: Sunita Chandrasekaran [mailto:schandra at udel.edu]
Sent: Wednesday, December 4, 2019 7:02 PM
To: openmp-dev at lists.llvm.org
Cc: Jeffrey Kelling <j.kelling at hzdr.de>; Guido Juckeland <g.juckeland at hzdr.de>; Narayanaswamy, Ravi <ravi.narayanaswamy at intel.com>; Doerfert, Johannes Rudolf <jdoerfert at anl.gov>
Subject: Clang9 warning and compiler error with atomics

Hello Everyone

I guess I have not posted to this alias in the near past, but I probably *can* !
Guess we will find out :-)
(copying Ravi and Johannes just in case my mail doesn't get thru the mailing list..please let me know)

Some of us are working on an application PIConGPU which is also one of the 8 ORNL CAAR projects for Frontier system. There are 2 issues pointed out by the developer Jeffrey Kelling (copied here) while he is running Alpaka tests with LLVM.

1. Clang9 is spamming the a pointless warning:
warning: Non-trivial type 'const
alpaka::vec::Vec<std::__1::integral_constant<unsigned long, 1>, unsigned
long>' is mapped, only trivial types are guara
nteed to be mapped correctly [-Wopenmp-target]

While we are aware that the warning will appear, we need to turn off -werror
because of this, may miss more important warnings due to the spam. Jeff also does not want to turn of -Wopenmp-target, because these should be the most
interesting warnings. It would be nice, if this one could be fixed.

2. Jeff also just encountered an internal compiler error with atomics and the NVPTX backend, and created a bug report:
https://bugs.llvm.org/show_bug.cgi?id=44219

Addressing these issues for CAAR is very time critical and that led me to send an email to this mailing list to get some quick advice/insights into both these issues.

Thank you very much for your time!!
Cheers
sunita



----------------------------------------
Sunita Chandrasekaran
Asst. Prof. Computer and Information Sciences
Affiliated, Center for Bioinformatics and Computational Biology
Affiliated, Data Science Institute
University of Delaware
430 Smith Hall, Newark, DE, USA
p: 302-831-2714 e: schandra at udel.edu<mailto:schandra at udel.edu>
----------------------------------------
Adjunct Prof. Dept. of Computer Science
University of Houston, TX
----------------------------------------
CRPL
Research Group:
http://crpl.cis.udel.edu/
t: https://twitter.com/sunitachandra29
w: https://www.eecis.udel.edu/~schandra/

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


More information about the Openmp-dev mailing list