5
5
6
6
module prif
7
7
8
- use iso_c_binding, only: c_int, c_bool, c_intptr_t, c_intmax_t, c_ptr, c_funptr, c_size_t, c_ptrdiff_t, c_null_ptr, c_int64_t
8
+ use iso_c_binding, only: c_int, c_bool, c_intptr_t, c_ptr, c_funptr, c_size_t, c_ptrdiff_t, c_null_ptr, c_int64_t
9
9
10
10
implicit none
11
11
@@ -428,8 +428,8 @@ module subroutine prif_put_strided_indirect_with_notify_indirect( &
428
428
module subroutine prif_alias_create (source_handle , alias_lcobounds , alias_ucobounds , alias_handle )
429
429
implicit none
430
430
type (prif_coarray_handle), intent (in ) :: source_handle
431
- integer (c_intmax_t ), intent (in ) :: alias_lcobounds(:)
432
- integer (c_intmax_t ), intent (in ) :: alias_ucobounds(:)
431
+ integer (c_int64_t ), intent (in ) :: alias_lcobounds(:)
432
+ integer (c_int64_t ), intent (in ) :: alias_ucobounds(:)
433
433
type (prif_coarray_handle), intent (out ) :: alias_handle
434
434
end subroutine
435
435
@@ -442,26 +442,26 @@ module subroutine prif_lcobound_with_dim(coarray_handle, dim, lcobound)
442
442
implicit none
443
443
type (prif_coarray_handle), intent (in ) :: coarray_handle
444
444
integer (c_int), intent (in ) :: dim
445
- integer (c_intmax_t ), intent (out ) :: lcobound
445
+ integer (c_int64_t ), intent (out ) :: lcobound
446
446
end subroutine
447
447
448
448
module subroutine prif_lcobound_no_dim (coarray_handle , lcobounds )
449
449
implicit none
450
450
type (prif_coarray_handle), intent (in ) :: coarray_handle
451
- integer (c_intmax_t ), intent (out ) :: lcobounds(:)
451
+ integer (c_int64_t ), intent (out ) :: lcobounds(:)
452
452
end subroutine
453
453
454
454
module subroutine prif_ucobound_with_dim (coarray_handle , dim , ucobound )
455
455
implicit none
456
456
type (prif_coarray_handle), intent (in ) :: coarray_handle
457
457
integer (c_int), intent (in ) :: dim
458
- integer (c_intmax_t ), intent (out ) :: ucobound
458
+ integer (c_int64_t ), intent (out ) :: ucobound
459
459
end subroutine
460
460
461
461
module subroutine prif_ucobound_no_dim (coarray_handle , ucobounds )
462
462
implicit none
463
463
type (prif_coarray_handle), intent (in ) :: coarray_handle
464
- integer (c_intmax_t ), intent (out ) :: ucobounds(:)
464
+ integer (c_int64_t ), intent (out ) :: ucobounds(:)
465
465
end subroutine
466
466
467
467
module subroutine prif_coshape (coarray_handle , sizes )
@@ -473,22 +473,22 @@ module subroutine prif_coshape(coarray_handle, sizes)
473
473
module subroutine prif_image_index (coarray_handle , sub , image_index )
474
474
implicit none
475
475
type (prif_coarray_handle), intent (in ) :: coarray_handle
476
- integer (c_intmax_t ), intent (in ) :: sub(:)
476
+ integer (c_int64_t ), intent (in ) :: sub(:)
477
477
integer (c_int), intent (out ) :: image_index
478
478
end subroutine
479
479
480
480
module subroutine prif_image_index_with_team (coarray_handle , sub , team , image_index )
481
481
implicit none
482
482
type (prif_coarray_handle), intent (in ) :: coarray_handle
483
- integer (c_intmax_t ), intent (in ) :: sub(:)
483
+ integer (c_int64_t ), intent (in ) :: sub(:)
484
484
type (prif_team_type), intent (in ) :: team
485
485
integer (c_int), intent (out ) :: image_index
486
486
end subroutine
487
487
488
488
module subroutine prif_image_index_with_team_number (coarray_handle , sub , team_number , image_index )
489
489
implicit none
490
490
type (prif_coarray_handle), intent (in ) :: coarray_handle
491
- integer (c_intmax_t ), intent (in ) :: sub(:)
491
+ integer (c_int64_t ), intent (in ) :: sub(:)
492
492
integer (c_int), intent (in ) :: team_number
493
493
integer (c_int), intent (out ) :: image_index
494
494
end subroutine
@@ -506,7 +506,7 @@ module subroutine prif_num_images_with_team(team, num_images)
506
506
507
507
module subroutine prif_num_images_with_team_number (team_number , num_images )
508
508
implicit none
509
- integer (c_intmax_t ), intent (in ) :: team_number
509
+ integer (c_int64_t ), intent (in ) :: team_number
510
510
integer (c_int), intent (out ) :: num_images
511
511
end subroutine
512
512
@@ -520,15 +520,15 @@ module subroutine prif_this_image_with_coarray(coarray_handle, team, cosubscript
520
520
implicit none
521
521
type (prif_coarray_handle), intent (in ) :: coarray_handle
522
522
type (prif_team_type), intent (in ), optional :: team
523
- integer (c_intmax_t ), intent (out ) :: cosubscripts(:)
523
+ integer (c_int64_t ), intent (out ) :: cosubscripts(:)
524
524
end subroutine
525
525
526
526
module subroutine prif_this_image_with_dim (coarray_handle , dim , team , cosubscript )
527
527
implicit none
528
528
type (prif_coarray_handle), intent (in ) :: coarray_handle
529
529
integer (c_int), intent (in ) :: dim
530
530
type (prif_team_type), intent (in ), optional :: team
531
- integer (c_intmax_t ), intent (out ) :: cosubscript
531
+ integer (c_int64_t ), intent (out ) :: cosubscript
532
532
end subroutine
533
533
534
534
module subroutine prif_failed_images (team , failed_images )
@@ -621,7 +621,7 @@ module subroutine prif_co_broadcast(a, source_image, stat, errmsg, errmsg_alloc)
621
621
622
622
module subroutine prif_form_team (team_number , team , new_index , stat , errmsg , errmsg_alloc )
623
623
implicit none
624
- integer (c_intmax_t ), intent (in ) :: team_number
624
+ integer (c_int64_t ), intent (in ) :: team_number
625
625
type (prif_team_type), intent (out ) :: team
626
626
integer (c_int), intent (in ), optional :: new_index
627
627
integer (c_int), intent (out ), optional :: stat
@@ -653,7 +653,7 @@ module subroutine prif_get_team(level, team)
653
653
module subroutine prif_team_number (team , team_number )
654
654
implicit none
655
655
type (prif_team_type), intent (in ), optional :: team
656
- integer (c_intmax_t ), intent (out ) :: team_number
656
+ integer (c_int64_t ), intent (out ) :: team_number
657
657
end subroutine
658
658
659
659
module subroutine prif_sync_all (stat , errmsg , errmsg_alloc )
@@ -761,7 +761,7 @@ module subroutine prif_event_post_indirect(image_num, event_var_ptr, stat, errms
761
761
module subroutine prif_event_wait (event_var_ptr , until_count , stat , errmsg , errmsg_alloc )
762
762
implicit none
763
763
type (c_ptr), intent (in ) :: event_var_ptr
764
- integer (c_intmax_t ), intent (in ), optional :: until_count
764
+ integer (c_int64_t ), intent (in ), optional :: until_count
765
765
integer (c_int), intent (out ), optional :: stat
766
766
character (len=* ), intent (inout ), optional :: errmsg
767
767
character (len= :), intent (inout ), allocatable , optional :: errmsg_alloc
@@ -770,14 +770,14 @@ module subroutine prif_event_wait(event_var_ptr, until_count, stat, errmsg, errm
770
770
module subroutine prif_event_query (event_var_ptr , count , stat )
771
771
implicit none
772
772
type (c_ptr), intent (in ) :: event_var_ptr
773
- integer (c_intmax_t ), intent (out ) :: count
773
+ integer (c_int64_t ), intent (out ) :: count
774
774
integer (c_int), intent (out ), optional :: stat
775
775
end subroutine
776
776
777
777
module subroutine prif_notify_wait (notify_var_ptr , until_count , stat , errmsg , errmsg_alloc )
778
778
implicit none
779
779
type (c_ptr), intent (in ) :: notify_var_ptr
780
- integer (c_intmax_t ), intent (in ), optional :: until_count
780
+ integer (c_int64_t ), intent (in ), optional :: until_count
781
781
integer (c_int), intent (out ), optional :: stat
782
782
character (len=* ), intent (inout ), optional :: errmsg
783
783
character (len= :), intent (inout ), allocatable , optional :: errmsg_alloc
@@ -1048,7 +1048,7 @@ module subroutine prif_atomic_ref_logical_indirect(image_num, atom_remote_ptr, v
1048
1048
integer (c_size_t) :: coarray_size
1049
1049
type (c_funptr) :: final_func
1050
1050
type (c_ptr) :: previous_handle = c_null_ptr, next_handle = c_null_ptr
1051
- integer (c_intmax_t ) :: lcobounds(15 ), ucobounds(15 )
1051
+ integer (c_int64_t ) :: lcobounds(15 ), ucobounds(15 )
1052
1052
end type
1053
1053
1054
1054
type, private :: team_data
0 commit comments