[flang-commits] [flang] 1a7cd92 - [flang][cuda] Update syncthreads interface (#138023)
via flang-commits
flang-commits at lists.llvm.org
Wed May 7 12:56:15 PDT 2025
Author: Valentin Clement (バレンタイン クレメン)
Date: 2025-05-07T21:56:11+02:00
New Revision: 1a7cd92c8607bbad5c212f474a1e46043a8016cd
URL: https://github.com/llvm/llvm-project/commit/1a7cd92c8607bbad5c212f474a1e46043a8016cd
DIFF: https://github.com/llvm/llvm-project/commit/1a7cd92c8607bbad5c212f474a1e46043a8016cd.diff
LOG: [flang][cuda] Update syncthreads interface (#138023)
Added:
Modified:
flang/module/cudadevice.f90
Removed:
################################################################################
diff --git a/flang/module/cudadevice.f90 b/flang/module/cudadevice.f90
index 9bd90bcfc30ec..f8a30da8b9615 100644
--- a/flang/module/cudadevice.f90
+++ b/flang/module/cudadevice.f90
@@ -17,9 +17,8 @@ module cudadevice
! Synchronization Functions
- interface
- attributes(device) subroutine syncthreads()
- end subroutine
+ interface syncthreads
+ procedure :: syncthreads
end interface
interface
@@ -1614,4 +1613,9 @@ attributes(device,host) logical function on_device() bind(c)
end function
end interface
+contains
+
+ attributes(device) subroutine syncthreads()
+ end subroutine
+
end module
More information about the flang-commits
mailing list