Skip to content

Commit 3f4e4e0

Browse files
authored
[flang][cuda] Add on_device interface to cudadevice (#134747)
1 parent bb1f32d commit 3f4e4e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flang/module/cudadevice.f90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,4 +1609,9 @@ attributes(device) integer function ballot_sync(mask, pred)
16091609
end subroutine
16101610
end interface
16111611

1612+
interface
1613+
attributes(device,host) logical function on_device() bind(c)
1614+
end function
1615+
end interface
1616+
16121617
end module

0 commit comments

Comments
 (0)