@@ -86,6 +86,7 @@ sub write_file {
86
86
# ----------------------------------------------------------------------------
87
87
88
88
my $handles ;
89
+ my $lhandles ;
89
90
90
91
$handles -> {MPI_COMM_WORLD } = 0;
91
92
$handles -> {MPI_COMM_SELF } = 1;
@@ -398,7 +399,9 @@ sub write_file {
398
399
$io_constants -> {MPI_MODE_EXCL } = 64;
399
400
$io_constants -> {MPI_MODE_APPEND } = 128;
400
401
$io_constants -> {MPI_MODE_SEQUENTIAL } = 256;
401
- $io_constants -> {MPI_DISPLACEMENT_CURRENT } = -54278278;
402
+
403
+ my $lio_constants ;
404
+ $lio_constants -> {MPI_DISPLACEMENT_CURRENT } = -54278278;
402
405
403
406
# ----------------------------------------------------------------------------
404
407
@@ -421,6 +424,8 @@ sub write_file {
421
424
! All rights reserved.
422
425
! Copyright (c) 2006-2012 Cisco Systems, Inc. All rights reserved.
423
426
! Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
427
+ ! Copyright (c) 2016 Research Organization for Information Science
428
+ ! and Technology (RIST). All rights reserved.
424
429
! $COPYRIGHT$
425
430
!
426
431
! Additional copyrights may follow
@@ -431,26 +436,32 @@ sub write_file {
431
436
' ;
432
437
433
438
sub write_fortran_file {
434
- my ($header , $vals , $file ) = @_ ;
439
+ my ($header , $vals , $lvals , $ file ) = @_ ;
435
440
436
441
foreach my $key (sort (keys (%{$vals }))) {
437
442
$header .= " integer $key \n " ;
438
443
}
444
+ foreach my $key (sort (keys (%{$lvals }))) {
445
+ $header .= " integer(KIND=MPI_OFFSET_KIND) $key \n " ;
446
+ }
439
447
$header .= " \n " ;
440
448
foreach my $key (sort (keys (%{$vals }))) {
441
449
$header .= " parameter ($key =$vals ->{$key })\n " ;
442
450
}
451
+ foreach my $key (sort (keys (%{$lvals }))) {
452
+ $header .= " parameter ($key =$lvals ->{$key })\n " ;
453
+ }
443
454
444
455
write_file($file , $header );
445
456
}
446
457
447
- write_fortran_file($header , $handles ,
458
+ write_fortran_file($header , $handles , {},
448
459
" $topdir /ompi/include/mpif-handles.h" );
449
- write_fortran_file($header , $constants ,
460
+ write_fortran_file($header , $constants , {},
450
461
" $topdir /ompi/include/mpif-constants.h" );
451
- write_fortran_file($header , $io_handles ,
462
+ write_fortran_file($header , $io_handles , {},
452
463
" $topdir /ompi/include/mpif-io-handles.h" );
453
- write_fortran_file($header , $io_constants ,
464
+ write_fortran_file($header , $io_constants , $lio_constants ,
454
465
" $topdir /ompi/include/mpif-io-constants.h" );
455
466
456
467
# ----------------------------------------------------------------------------
@@ -478,6 +489,8 @@ sub write_fortran_file {
478
489
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
479
490
* Copyright (c) 2009-2012 Los Alamos National Security, LLC.
480
491
* All rights reserved.
492
+ * Copyright (c) 2016 Research Organization for Information Science
493
+ * and Technology (RIST). All rights reserved.
481
494
* $COPYRIGHT$
482
495
*
483
496
* Additional copyrights may follow
@@ -502,6 +515,9 @@ sub write_fortran_file {
502
515
foreach my $key (sort (keys (%{$io_constants }))) {
503
516
$output .= " #define OMPI_$key $io_constants ->{$key }\n " ;
504
517
}
518
+ foreach my $key (sort (keys (%{$lio_constants }))) {
519
+ $output .= " #define OMPI_$key $lio_constants ->{$key }\n " ;
520
+ }
505
521
$output .= " \n " ;
506
522
foreach my $key (sort (keys (%{$io_handles }))) {
507
523
$output .= " #define OMPI_$key $io_handles ->{$key }\n " ;
0 commit comments