Skip to content

Commit 1a7cd92

Browse files
authored
[flang][cuda] Update syncthreads interface (#138023)
1 parent 40941f1 commit 1a7cd92

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

flang/module/cudadevice.f90

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ module cudadevice
1717

1818
! Synchronization Functions
1919

20-
interface
21-
attributes(device) subroutine syncthreads()
22-
end subroutine
20+
interface syncthreads
21+
procedure :: syncthreads
2322
end interface
2423

2524
interface
@@ -1614,4 +1613,9 @@ attributes(device,host) logical function on_device() bind(c)
16141613
end function
16151614
end interface
16161615

1616+
contains
1617+
1618+
attributes(device) subroutine syncthreads()
1619+
end subroutine
1620+
16171621
end module

0 commit comments

Comments
 (0)