blob: b9a3ec43d4cfab98a9bcac945897cab196a126f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
! PR fortran/32823
! { dg-do compile }
! { dg-final { cleanup-modules "token_module" } }
module token_module
integer, parameter :: INT8 = SELECTED_INT_KIND(16)
integer, parameter :: REAL8 = SELECTED_REAL_KIND(12)
contains
subroutine token_allreduce_i8_v(dowhat, array, result, length)
character(*), intent(in) :: dowhat
integer, intent(in) :: length
integer(INT8), intent(in) :: array(*)
integer(INT8), intent(inout) :: result(*)
real(REAL8) :: copy_r8(length), result_r8(length)
result(1:length) = int(result_r8(1:length), INT8)
end subroutine token_allreduce_i8_v
end module token_module
|