[flang-commits] [flang] [flang][cuda] Adding atomicadd as a cudadevice intrinsic and converting it LLVM dialect (PR #123840)

Renaud Kauffmann via flang-commits flang-commits at lists.llvm.org
Wed Jan 22 15:58:27 PST 2025


================
@@ -92,5 +92,31 @@ attributes(device) subroutine threadfence_system()
     end function
   end interface
   public :: __fadd_ru
+
+  ! Atomic Operations
   
+  interface atomicadd
+    attributes(device) pure integer function atomicaddi(address, val)
+  !dir$ ignore_tkr (rd) address, (d) val
----------------
Renaud-K wrote:

Brent mentioned 1 element arrays but could not be definitive. I can remove it and maybe we will learn something.

https://github.com/llvm/llvm-project/pull/123840


More information about the flang-commits mailing list