[flang-commits] [flang] [flang][cuda] Add bind(c) interfaces for __fadd_rd and __fadd_ru (PR #122535)

Zhen Wang via flang-commits flang-commits at lists.llvm.org
Fri Jan 10 14:10:49 PST 2025


================
@@ -71,4 +71,18 @@ attributes(device) subroutine threadfence_system()
   end interface
   public :: threadfence_system
 
+  interface
+    attributes(device) function __fadd_rd(x, y) bind(c, name='__nv_fadd_rd')
+      real :: x, y, __fadd_rd
----------------
wangzpgi wrote:

Should the attributes be `attributes(host,device)`?
Does `x` and `y` need `value` attribute?
Do we need `!dir$ ignore_tkr (d) x, (d) y` in this interface?

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


More information about the flang-commits mailing list