[flang-commits] [flang] [flang][cuda] Add bind c to cudadevice procedures (PR #92822)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Mon May 27 19:52:40 PDT 2024
================
@@ -18,34 +18,34 @@ module cudadevice
! Synchronization Functions
interface
- attributes(device) subroutine syncthreads()
+ attributes(device) subroutine syncthreads() bind(c, name='__syncthreads')
end subroutine
end interface
public :: syncthreads
interface
- attributes(device) integer function syncthreads_and(value)
+ attributes(device) integer function syncthreads_and(value) bind(c, name='__syncthreads_and')
integer :: value
end function
end interface
public :: syncthreads_and
interface
- attributes(device) integer function syncthreads_count(value)
+ attributes(device) integer function syncthreads_count(value) bind(c, name='__syncthreads_count')
integer :: value
end function
end interface
public :: syncthreads_count
interface
- attributes(device) integer function syncthreads_or(value)
+ attributes(device) integer function syncthreads_or(value) bind(c, name='__syncthreads_or')
integer :: value
end function
end interface
public :: syncthreads_or
interface
- attributes(device) subroutine syncwarp(mask)
+ attributes(device) subroutine syncwarp(mask) bind(c, name='__syncwrap')
----------------
vzakhari wrote:
```suggestion
attributes(device) subroutine syncwarp(mask) bind(c, name='__syncwarp')
```
https://github.com/llvm/llvm-project/pull/92822
More information about the flang-commits
mailing list