-
Notifications
You must be signed in to change notification settings - Fork 3
/
winconfigure.wsf
8018 lines (7706 loc) · 327 KB
/
winconfigure.wsf
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<package>
<job id="winconfigure">
<runtime>
<description>This script generates files for building MPICH2</description>
<unnamed
name = "--force"
helpstring = "Force the creation of new files, overwriting the old"
required = "false"
/>
<unnamed
name = "--force=no"
helpstring = "Only create files that do not already exist"
required = "false"
/>
<unnamed
name = "--enable-timer-type=x86cycle"
helpstring = "Use the Pentium rdtsc instruction for timing"
required = "false"
/>
<unnamed
name = "--enable-timer-type=queryperformancecounter"
helpstring = "Use QueryPerformanceCounter for timing"
required = "false"
/>
<!-- <unnamed
name = "--with-mcxx"
helpstring = "Generate the managed C++ interface"
required = "false"
/>
-->
<unnamed
name = "--defmsg"
helpstring = "Generate defmsg.h"
required = "false"
/>
<unnamed
name = "--genstates"
helpstring = "Generate mpiallstates.h and describe_states.c"
required = "false"
/>
<unnamed
name = "--mpicc"
helpstring = "Generate mpicc.wsf"
required = "false"
/>
<unnamed
name = "--ifaces"
helpstring = "Generate the interfaces (c++,f77,f90,etc)"
required = "false"
/>
<unnamed
name = "--remove-fortran"
helpstring = "Remove fortran code and interfaces"
required = "false"
/>
<unnamed
name = "--use-ib-rdma"
helpstring = "Use the rdma interface in the infiniband channel"
required = "false"
/>
<unnamed
name = "--cleancode"
helpstring = "Clean up the c++ header file"
required = "false"
/>
<unnamed
name = "--dlldec"
helpstring = "Add dll decoration to the mpi function prototypes"
required = "false"
/>
<unnamed
name = "--testdir"
helpstring = "Configure the test directory only"
require = "false"
/>
<unnamed
name = "--gen-mpi"
helpstring = "Generate the stub MPI functions"
require = "false"
/>
<!--
<unnamed
name = "--vs05"
helpstring = "apply settings to the Visual Studio 2005 project files"
require = "false"
/>
-->
<unnamed
name = "--genbuild"
helpstring = "generate a build script and nmake file"
require = "false"
/>
<unnamed
name = "--genbuildfiles"
helpstring = "generate the DIRS, SOURCES, etc files necessary for the build tool"
require = "false"
/>
<unnamed
name = "--rmbuildfiles"
helpstring = "delete the DIRS, SOURCES, etc files created by --genbuildfiles"
require = "false"
/>
<!--
<named
name = "channel"
helpstring = "specify the channel for --genbuildfiles (sock,nemesis)"
type = "string"
require = "false"
/>
-->
<named
name = "channel"
helpstring = "specify the channel for --genbuildfiles (sock,nemesis)"
type = "string"
require = "false"
/>
<unnamed
name = "--smpd_version"
helpstring = "update the smpd version in smpd.h"
require = "false"
/>
<unnamed
name = "--ia64"
helpstring = "use definitions for Win64 IA64 instead of X64"
require = "false"
/>
<unnamed
name = "--verbose"
helpstring = "Use verbose option for verbose output"
require = "false"
/>
<example>Example: winconfigure.wsf --cleancode</example>
</runtime>
<script language="VBScript">
' check if we are running cscript or wscript
isCScript = false
If InStr(1, LCase(WScript.FullName), "cscript") > 0 Then
isCscript = true
End If
' Use cEcho to echo information to the command line only.
' The output is truncated to 4096 characters.
Function cEcho(str)
On Error Resume Next
WScript.Echo str
if err <> 0 then
num_chars = Len(str) / 2
if num_chars > 4096 then
num_chars = 4096
end if
WScript.Echo Left(str, num_chars) & vbCrLf & "..." & vbCrLf
WScript.Echo Right(str, num_chars)
end if
End Function
wEchoMsgBoxStr=""
Function wEcho(str)
wEchoMsgBoxStr = wEchoMsgBoxStr & str & vbCrLf
End Function
Function wEchoFlush()
MsgBox wEchoMsgBoxStr
End Function
Function gEcho(str)
If isCscript Then
cEcho(str)
Else
wEcho(str)
End If
End Function
' print Error msgs with ERROR - output by default
echoErrorMsgs = true
' print status msgs with STATUS - output by default
echoStatusMsgs = true
' print debug & non-status msgs with VERBOSE - suppressed by default
' use "--verbose" option to enable
echoVerboseMsgs = false
Function printMsgFlush()
If(Not isCscript) Then
wEchoFlush()
End If
End Function
Function printMsg(level, str)
Select Case level
Case "ERROR"
If echoErrorMsgs Then
gEcho(str)
End If
Case "STATUS"
If echoStatusMsgs Then
gEcho(str)
End If
Case "VERBOSE"
If echoVerboseMsgs Then
gEcho(str)
End If
Case Else
WScript.Echo "ERROR: INVALID USAGE OF PRINTMSG"
End Select
End Function
printMsg "STATUS", "Configuring MPICH2 for windows..."
x64 = True
bVS2005 = False
bUseIbRDMA = False
bUsePinCache = False
bRemoveFortran = False
bUseCycleCounter = False
bForce = True
bCleanCode = False
bAddDllDecoration = False
bMcxx = False
bf77_name_lower = False
bf77_name_lower_uscore = False
bf77_name_lower_2uscore = False
bf77_name_upper = False
bf77_name_mixed = False
bf77_name_mixed_uscore = False
unhandled_definitions = ""
unhandled_definitions_count = 0
unhandled_definitions_instances = 0
unhandled_ats = ""
unhandled_ats_count = 0
unhandled_ats_instances = 0
Set customDefDict = Nothing
' variables for creating the nmake file
Dim bfile
Dim mfile
creating_rules = false
files_found = false
cxx_files_found = false
fortran_files_found = false
outdir = "OUTDIR"
cxxflags = "impl_cxxflags"
extra_flags = ""
fort_prefix = ""
remove_buildfiles = false
buildfiles_channel = "sock"
'
' Miscellaneous settings
'
MPI_MAX_PROCESSOR_NAME = "128"
' Use the decorated MPI_AINT64_TYPE with MPI_AINT64_TYPEDEF_BEGIN & *END decos
' for user exposed headers
MPI_AINT64_TYPE = "MPI_AINT64_TYPE"
' Use MPI_AINT64 for internal headers
MPI_AINT64 = "__int64"
MPI_AINT64_FMT_DEC_SPEC = "%I64d"
MPIR_PINT64_FMT_DEC_SPEC = """%I64d"""
MPIR_UPINT64_FMT_DEC_SPEC = """%I64u"""
MPI_AINT64_FMT_HEX_SPEC = "%I64x"
BSEND_OVERHEAD64 = "95"
MPI_AINT32 = "int"
MPI_AINT32_FMT_DEC_SPEC = "%d"
MPIR_PINT32_FMT_DEC_SPEC = """%d"""
MPIR_UPINT32_FMT_DEC_SPEC = """%u"""
MPI_AINT32_FMT_HEX_SPEC = "%x"
BSEND_OVERHEAD32 = "59"
MPI_FINT = "int"
'MPI_OFFSET = "long long"
MPI_OFFSET = "__int64"
'MPI_OFFSET_TYPEDEF = "typedef __int64 MPI_Offset;"
'MPI_OFFSET_TYPEDEF = "typedef long long MPI_Offset;"
MPI_OFFSET_TYPEDEF = "#if defined(USE_GCC) || defined(__GNUC__)" + vbCrLf + "typedef long long MPI_Offset;" + vbCrLf + "#else" + vbCrLf + "typedef __int64 MPI_Offset;" + vbCrLf + "#endif"
MPI_AINT64_TYPEDEF_BEGIN = "#ifdef MPI_AINT64_TYPE" + vbCrLf + "#undef MPI_AINT64_TYPE" + vbCrLf + "#endif" + vbCrLf + "#if defined(USE_GCC) || defined(__GNUC__)" + vbCrLf + "#define MPI_AINT64_TYPE long long" + vbCrLf + "#else" + vbCrLf + "#define MPI_AINT64_TYPE __int64" + vbCrLf + "#endif" + vbCrLf
MPI_AINT64_TYPEDEF_END = vbCrLf + "#undef MPI_AINT64_TYPE" + vbCrLf
EXTRA_STATUS_DECL = ""
HAVE_ROMIO = "#include ""mpio.h"""
mpi_dll_spec_definition = "#ifdef USE_MPI_STATIC_LIBRARY" + vbCrLf + "# define MPIU_DLL_SPEC" + vbCrLf + "#else" + vbCrLf + "# ifdef MPI_EXPORTS" + vbCrLf + "# define MPIU_DLL_SPEC __declspec(dllexport)" + vbCrLf + "# else" + vbCrLf + "# define MPIU_DLL_SPEC __declspec(dllimport)" + vbCrLf + "# endif" + vbCrLf + "#endif" + vbCrLf + "#define MPI_CALL __cdecl" + vbCrLf
set f = WScript.CreateObject("Scripting.FileSystemObject")
Set fin = f.OpenTextFile("src\mpid\common\thread\mpe_types.i")
mpid_thread_typedefs = fin.ReadAll()
fin.Close()
Set fin = f.OpenTextFile("src\mpid\common\thread\mpe_funcs.i")
mpid_thread_funcs = fin.ReadAll()
fin.Close()
' Process arguments
If WScript.Arguments.Named.Exists("channel") Then
buildfiles_channel = WScript.Arguments.Named.Item("channel")
End If
argCount = WScript.Arguments.Count
For arg = 0 To argCount - 1
argValue = WScript.Arguments(arg)
If argValue = "--enable-timer-type=x86cycle" Then
bUseCycleCounter = True
ElseIf argValue = "--enable-timer-type=queryperformancecounter" Then
bUseCycleCounter = False
ElseIf argValue = "--enable-hptiming" Then
bUseCycleCounter = True
ElseIf argValue = "--enable-hptiming=yes" Then
bUseCycleCounter = True
ElseIf argValue = "--enable-hptiming=no" Then
bUseCycleCounter = False
ElseIf argValue = "--force" Then
bForce = True
ElseIf argValue = "--force=yes" Then
bForce = True
ElseIf argValue = "--force=no" Then
bForce = False
ElseIf argValue = "--cleancode" Then
bCleanCode = True
ElseIf argValue = "--dlldec" Then
bAddDllDecoration = True
ElseIf argValue = "--with-mcxx" Then
bMcxx = True
ElseIf argValue = "--f77_name_lower" Then
bf77_name_lower = True
ElseIf argValue = "--f77_name_lower_uscore" Then
bf77_name_lower_uscore = True
ElseIf argValue = "--f77_name_lower_2uscore" Then
bf77_name_loser_2uscore = True
ElseIf argValue = "--f77_name_upper" Then
bf77_name_upper = True
ElseIf argValue = "--f77_name_mixed" Then
bf77_name_mixed = True
ElseIf argValue = "--f77_name_mixed_uscore" Then
bf77_name_mixed_uscore = True
ElseIf argValue = "--defmsg" Then
GenerateDefmsg()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--genstates" Then
GenerateStatesFiles()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--mpicc" Then
GenerateMPICC()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--ifaces" Then
printMsg "ERROR", "Option not implemented, run the entire script to generate the interfaces"
' BuildIFaces needs the dictionary object to replace the @xxx@s in mpif.h
'BuildIFaces()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--remove-fortran" Then
bRemoveFortran = True
ElseIf argValue = "--use-ib-rdma" Then
bUseIbRDMA = True
ElseIf argValue = "--use_ib_rdma" Then
bUseIbRDMA = True
ElseIf argValue = "--use-pin-cache" Then
bUsePinCache = True
ElseIf argValue = "--use_pin_cache" Then
bUsePinCache = True
ElseIf argValue = "--testdir" Then
ConfigureTestDir()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--gen-mpi" Then
FindMPIFuncs()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--gen-sfort" Then
CreateStdcallFortranInterface()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--vs05" Then
bVS2005 = True
ElseIf argValue = "--genbuild" Then
GenBuild()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--genbuildfiles" Then
GenBuildFiles(".")
printMsgFlush()
WScript.Quit
ElseIf argValue = "--rmbuildfiles" Then
remove_buildfiles = true
GenBuildFiles(".")
printMsgFlush()
WScript.Quit
ElseIf argValue = "--smpd_version" Then
UpdateSMPDVersion()
printMsgFlush()
WScript.Quit
ElseIf argValue = "--ia64" Then
x64 = False
ElseIf argValue = "--verbose" Then
echoVerboseMsgs = True
ElseIf argValue = "--help" Then
WScript.Arguments.ShowUsage
printMsgFlush()
WScript.Quit
End If
Next
'
' datatype sizes
'
len_short = "02"
len_int = "04"
len_long = "04"
len_long_long = "08"
len_float = "04"
len_double = "08"
len_long_double = "08"
len_wchar = "02"
len_wchar_t = "02"
len_float_int = "08"
len_double_int = "10"
len_long_int = "08"
len_short_int = "08"
len_two_int = "08"
len_long_double_int = "10"
' Fortran datatype sizes
len_integer32 = "04"
len_doublecplx = "10"
len_2dc = "20"
' Special C++ Datatypes
len_bool = "01"
len_complex = "08"
len_double_complex = "10"
len_long_double_complex = "10"
' C99 types - These types are not supported by VS, however
' C++ pgms use the same types. So we use the C++ type sizes here
' Also since _Complex is an alias for float _Complex we don't need
' to handle it here
len__Bool = "01"
len_float__Complex = "08"
len_double__Complex = "10"
len_long_double__Complex = "10"
len_mpi_aint64 = "08"
len_mpi_aint32 = "04"
len_mpi_offset = "08"
Function CreateDtypeDictionary(byref types, str, b64)
dim regEx, Match, Matches
set regEx = New RegExp
'set types = WScript.CreateObject("Scripting.Dictionary")
' remove all dnl lines to prevent false matches
regEx.Pattern = "dnl .*"
regEx.IgnoreCase = True
regEx.Global = True
str = regEx.Replace(str, "")
' find the datatype handles
regEx.Pattern = "MPI_.*=""?0x4c00.*[0-9a-f][0-9a-f]"
regEx.IgnoreCase = False
regEx.Global = True
Set Matches = regEx.Execute(str)
For Each Match in Matches
size_str = RegExpFind("\$\{len.*\}", Match.Value)
dtype_str = RegExpFind("MPI_[^=]*", Match.Value)
dtype_val_str = RegExpFind("0x4c00.*[0-9a-f][0-9a-f]", Match.Value)
' If size_str is empty then the datatype handle is hardcoded
if size_str <> "" then
Select Case size_str
Case "${len_int}"
dtype_val_str = Replace(dtype_val_str, size_str, len_int)
Case "${len_short}"
dtype_val_str = Replace(dtype_val_str, size_str, len_short)
Case "${len_long}"
dtype_val_str = Replace(dtype_val_str, size_str, len_long)
Case "${len_long_long}"
dtype_val_str = Replace(dtype_val_str, size_str, len_long_long)
Case "${len_float_int}"
dtype_val_str = Replace(dtype_val_str, size_str, len_float_int)
Case "${len_double_int}"
dtype_val_str = Replace(dtype_val_str, size_str, len_double_int)
Case "${len_long_int}"
dtype_val_str = Replace(dtype_val_str, size_str, len_long_int)
Case "${len_short_int}"
dtype_val_str = Replace(dtype_val_str, size_str, len_short_int)
Case "${len_two_int}"
dtype_val_str = Replace(dtype_val_str, size_str, len_two_int)
Case "${len_long_double_int}"
dtype_val_str = Replace(dtype_val_str, size_str, len_long_double_int)
Case "${len_double}"
dtype_val_str = Replace(dtype_val_str, size_str, len_double)
Case "${len_doublecplx}"
dtype_val_str = Replace(dtype_val_str, size_str, len_doublecplx)
Case "${len_2dc}"
dtype_val_str = Replace(dtype_val_str, size_str, len_2dc)
Case "${len_float}"
dtype_val_str = Replace(dtype_val_str, size_str, len_float)
Case "${len_long_double}"
dtype_val_str = Replace(dtype_val_str, size_str, len_long_double)
Case "${len_integer}"
dtype_val_str = Replace(dtype_val_str, size_str, len_integer32)
Case "${len_wchar_t}"
dtype_val_str = Replace(dtype_val_str, size_str, len_wchar_t)
Case "${len_wchar}"
dtype_val_str = Replace(dtype_val_str, size_str, len_wchar)
Case "${len__Bool}"
dtype_val_str = Replace(dtype_val_str, size_str, len__Bool)
Case "${len_float__Complex}"
dtype_val_str = Replace(dtype_val_str, size_str, len_float__Complex)
Case "${len_double__Complex}"
dtype_val_str = Replace(dtype_val_str, size_str, len_double__Complex)
Case "${len_long_double__Complex}"
dtype_val_str = Replace(dtype_val_str, size_str, len_long_double__Complex)
Case "${len_mpi_aint}"
If b64 Then
dtype_val_str = Replace(dtype_val_str, size_str, len_mpi_aint64)
Else
dtype_val_str = Replace(dtype_val_str, size_str, len_mpi_aint32)
End If
Case "${len_mpi_offset}"
dtype_val_str = Replace(dtype_val_str, size_str, len_mpi_offset)
Case Else
unmatched_size_strs = unmatched_size_strs & " " & size_str & vbCrLf
End Select
end if
if types.Exists(dtype_str) then
if types.Item(dtype_str) <> dtype_val_str then
temp_str = dtype_str & " = " & types.Item(dtype_str) & " or " & dtype_val_str
MsgBox temp_str
end if
else
types.Add dtype_str, dtype_val_str
end if
Next
if unmatched_size_strs <> "" then
MsgBox unmatched_size_strs
end if
'CreateDtypeDictionary = types
End Function
'
' Create a dictionary of all the datatype handles
'
unmatched_size_strs = ""
set fin = f.OpenTextFile("configure.in")
contents = fin.ReadAll()
fin.Close()
'set fin = f.OpenTextFile("src\binding\f77\configure.in")
'contents = contents + fin.ReadAll()
'fin.Close()
'set dtypes = CreateDtypeDictionary(contents, false)
'set dtypes64 = CreateDtypeDictionary(contents, true)
set dtypes = WScript.CreateObject("Scripting.Dictionary")
CreateDtypeDictionary dtypes, contents, false
set dtypes64 = WScript.CreateObject("Scripting.Dictionary")
CreateDtypeDictionary dtypes64, contents, true
'mpi_datatype_prefix = "4c00"
'MPI_CHAR = "0x" + mpi_datatype_prefix + "0101"
'MPI_SIGNED_CHAR = "0x" + mpi_datatype_prefix + "0118"
'MPI_UNSIGNED_CHAR = "0x" + mpi_datatype_prefix + "0102"
'MPI_BYTE = "0x" + mpi_datatype_prefix + "010d"
'MPI_WCHAR = "0x" + mpi_datatype_prefix + len_wchar + "0e"
'MPI_WCHAR_T = "0x" + mpi_datatype_prefix + len_wchar_t + "0e"
'MPI_SHORT = "0x" + mpi_datatype_prefix + len_short + "03"
'MPI_UNSIGNED_SHORT = "0x" + mpi_datatype_prefix + len_short + "04"
'MPI_INT = "0x" + mpi_datatype_prefix + len_int + "05"
'MPI_UNSIGNED = "0x" + mpi_datatype_prefix + len_int + "06"
'MPI_LONG = "0x" + mpi_datatype_prefix + len_long + "07"
'MPI_UNSIGNED_LONG = "0x" + mpi_datatype_prefix + len_long + "08"
'MPI_LONG_LONG = "0x" + mpi_datatype_prefix + len_long_long + "09"
'MPI_LONG_LONG_INT = "0x" + mpi_datatype_prefix + len_long_long + "09"
'MPI_UNSIGNED_LONG_LONG ="0x" + mpi_datatype_prefix + len_long_long + "19"
'MPI_FLOAT = "0x" + mpi_datatype_prefix + len_float + "0a"
'MPI_DOUBLE = "0x" + mpi_datatype_prefix + len_double + "0b"
'MPI_LONG_DOUBLE = "0x" + mpi_datatype_prefix + len_long_double + "0c"
'MPI_PACKED = "0x" + mpi_datatype_prefix + "010f"
'MPI_LB = "0x" + mpi_datatype_prefix + "0010"
'MPI_UB = "0x" + mpi_datatype_prefix + "0011"
'MPI_REAL4 = "0x" + mpi_datatype_prefix + "0427"
'MPI_REAL8 = "0x" + mpi_datatype_prefix + "0829"
'MPI_REAL16 = "0x" + mpi_datatype_prefix + "1029"
'MPI_COMPLEX8 = "0x" + mpi_datatype_prefix + "0828"
'MPI_COMPLEX16 = "0x" + mpi_datatype_prefix + "102b"
'MPI_COMPLEX32 = "0x" + mpi_datatype_prefix + "2030"
'MPI_INTEGER1 = "0x" + mpi_datatype_prefix + "012d"
'MPI_INTEGER2 = "0x" + mpi_datatype_prefix + "022f"
'MPI_INTEGER4 = "0x" + mpi_datatype_prefix + "0430"
'MPI_INTEGER8 = "0x" + mpi_datatype_prefix + "082a"
'MPI_INTEGER16 = "0x" + mpi_datatype_prefix + "102f"
'MPI_FLOAT_INT = "0x" + mpi_datatype_prefix + len_float_int + "12"
'MPI_DOUBLE_INT = "0x" + mpi_datatype_prefix + len_double_int + "13"
'MPI_LONG_INT = "0x" + mpi_datatype_prefix + len_long_int + "14"
'MPI_SHORT_INT = "0x" + mpi_datatype_prefix + len_short_int + "15"
'MPI_2INT = "0x" + mpi_datatype_prefix + len_two_int + "16"
'MPI_LONG_DOUBLE_INT = "0x" + mpi_datatype_prefix + len_long_double_int + "17"
'MPI_CHARACTER = "0x" + mpi_datatype_prefix + "011a"
'MPI_INTEGER = "0x" + mpi_datatype_prefix + len_integer + "1b"
'MPI_REAL = "0x" + mpi_datatype_prefix + len_integer + "1c"
'MPI_LOGICAL = "0x" + mpi_datatype_prefix + len_integer + "1d"
'MPI_COMPLEX = "0x" + mpi_datatype_prefix + len_double + "1e"
'MPI_DOUBLE_PRECISION = "0x" + mpi_datatype_prefix + len_double + "1f"
'MPI_2INTEGER = "0x" + mpi_datatype_prefix + len_double + "20"
'MPI_2REAL = "0x" + mpi_datatype_prefix + len_double + "21"
'MPI_DOUBLE_COMPLEX = "0x" + mpi_datatype_prefix + len_doublecplx + "22"
'MPI_2DOUBLE_PRECISION = "0x" + mpi_datatype_prefix + len_doublecplx + "23"
'MPI_2COMPLEX = "0x" + mpi_datatype_prefix + len_doublecplx + "24"
'MPI_2DOUBLE_COMPLEX = "0x" + mpi_datatype_prefix + len_2dc + "25"
'F77_MPI_COMPLEX = "1275070494"
'F77_MPI_DOUBLE_COMPLEX = "1275072546"
'F77_MPI_LOGICAL = "1275069469"
'F77_MPI_REAL = "1275069468"
'F77_MPI_DOUBLE_PRECISION = "1275070495"
'F77_MPI_INTEGER = "1275069467"
'F77_MPI_2INTEGER = "1275070496"
'F77_MPI_2COMPLEX = "1275072548"
'F77_MPI_2DOUBLE_COMPLEX = "1275076645"
'F77_MPI_2REAL = "1275070497"
'F77_MPI_2DOUBLE_PRECISION = "1275072547"
'F77_MPI_CHARACTER = "1275068698"
'F77_MPI_LB = "1275068432"
'F77_MPI_PACKED = "1275068687"
'F77_MPI_UB = "1275068433"
'F77_COMPLEX8 = "1275070504"
'F77_COMPLEX16 = "1275072554"
'F77_COMPLEX32 = "MPI_DATATYPE_NULL"
'F77_INTEGER1 = "1275068717"
'F77_INTEGER2 = "1275068975"
'F77_INTEGER4 = "1275069488"
'F77_INTEGER8 = "1275070507"
'F77_INTEGER16 = "MPI_DATATYPE_NULL"
'F77_REAL4 = "1275069479"
'F77_REAL8 = "1275070505"
'F77_REAL16 = "MPI_DATATYPE_NULL"
'
' Set the datatype variables from the dictionary
'
mpi_datatype_prefix = "4c00"
missing_datatypes = ""
if dtypes.Exists("MPI_CHAR") then
MPI_CHAR = dtypes.Item("MPI_CHAR")
else
missing_datatypes = missing_datatypes & "MPI_CHAR" & vbCrLf
MPI_CHAR = "0x" + mpi_datatype_prefix + "0101"
end if
if dtypes.Exists("MPI_SIGNED_CHAR") then
MPI_SIGNED_CHAR = dtypes.Item("MPI_SIGNED_CHAR")
else
missing_datatypes = missing_datatypes & "MPI_SIGNED_CHAR" & vbCrLf
MPI_SIGNED_CHAR = "0x" + mpi_datatype_prefix + "0118"
end if
if dtypes.Exists("MPI_UNSIGNED_CHAR") then
MPI_UNSIGNED_CHAR = dtypes.Item("MPI_UNSIGNED_CHAR")
else
missing_datatypes = missing_datatypes & "MPI_UNSIGNED_CHAR" & vbCrLf
MPI_UNSIGNED_CHAR = "0x" + mpi_datatype_prefix + "0102"
end if
if dtypes.Exists("MPI_BYTE") then
MPI_BYTE = dtypes.Item("MPI_BYTE")
else
missing_datatypes = missing_datatypes & "MPI_BYTE" & vbCrLf
MPI_BYTE = "0x" + mpi_datatype_prefix + "010d"
end if
if dtypes.Exists("MPI_WCHAR") then
MPI_WCHAR = dtypes.Item("MPI_WCHAR")
else
missing_datatypes = missing_datatypes & "MPI_WCHAR" & vbCrLf
MPI_WCHAR = "0x" + mpi_datatype_prefix + len_wchar + "0e"
end if
if dtypes.Exists("MPI_WCHAR_T") then
MPI_WCHAR_T = dtypes.Item("MPI_WCHAR_T")
else
'missing_datatypes = missing_datatypes & "MPI_WCHAR_T" & vbCrLf
'MPI_WCHAR_T = "0x" + mpi_datatype_prefix + len_wchar_t + "0e"
if dtypes.Exists("MPI_WCHAR") then
MPI_WCHAR_T = dtypes.Item("MPI_WCHAR")
dtypes.Add "MPI_WCHAR_T", MPI_WCHAR_T
else
missing_datatypes = missing_datatypes & "MPI_WCHAR_T" & vbCrLf
MPI_WCHAR_T = "0x" + mpi_datatype_prefix + len_wchar + "0e"
end if
end if
if dtypes.Exists("MPI_SHORT") then
MPI_SHORT = dtypes.Item("MPI_SHORT")
else
missing_datatypes = missing_datatypes & "MPI_SHORT" & vbCrLf
MPI_SHORT = "0x" + mpi_datatype_prefix + len_short + "03"
end if
if dtypes.Exists("MPI_UNSIGNED_SHORT") then
MPI_UNSIGNED_SHORT = dtypes.Item("MPI_UNSIGNED_SHORT")
else
missing_datatypes = missing_datatypes & "MPI_UNSIGNED_SHORT" & vbCrLf
MPI_UNSIGNED_SHORT = "0x" + mpi_datatype_prefix + len_short + "04"
end if
if dtypes.Exists("MPI_INT") then
MPI_INT = dtypes.Item("MPI_INT")
else
missing_datatypes = missing_datatypes & "MPI_INT" & vbCrLf
MPI_INT = "0x" + mpi_datatype_prefix + len_int + "05"
end if
if dtypes.Exists("MPI_UNSIGNED_INT") then
MPI_UNSIGNED_INT = dtypes.Item("MPI_UNSIGNED_INT")
else
missing_datatypes = missing_datatypes & "MPI_UNSIGNED_INT" & vbCrLf
MPI_UNSIGNED_INT = "0x" + mpi_datatype_prefix + len_int + "06"
end if
if dtypes.Exists("MPI_UNSIGNED") then
MPI_UNSIGNED = dtypes.Item("MPI_UNSIGNED")
else
'missing_datatypes = missing_datatypes & "MPI_UNSIGNED" & vbCrLf
'MPI_UNSIGNED = "0x" + mpi_datatype_prefix + len_int + "06"
if dtypes.Exists("MPI_UNSIGNED_INT") then
MPI_UNSIGNED = dtypes.Item("MPI_UNSIGNED_INT")
dtypes.Add "MPI_UNSIGNED", MPI_UNSIGNED
else
missing_datatypes = missing_datatypes & "MPI_UNSIGNED" & vbCrLf
MPI_UNSIGNED = "0x" + mpi_datatype_prefix + len_int + "06"
end if
end if
if dtypes.Exists("MPI_LONG") then
MPI_LONG = dtypes.Item("MPI_LONG")
else
missing_datatypes = missing_datatypes & "MPI_LONG" & vbCrLf
MPI_LONG = "0x" + mpi_datatype_prefix + len_long + "07"
end if
if dtypes.Exists("MPI_UNSIGNED_LONG") then
MPI_UNSIGNED_LONG = dtypes.Item("MPI_UNSIGNED_LONG")
else
missing_datatypes = missing_datatypes & "MPI_UNSIGNED_LONG" & vbCrLf
MPI_UNSIGNED_LONG = "0x" + mpi_datatype_prefix + len_long + "08"
end if
if dtypes.Exists("MPI_LONG_LONG") then
MPI_LONG_LONG = dtypes.Item("MPI_LONG_LONG")
else
missing_datatypes = missing_datatypes & "MPI_LONG_LONG" & vbCrLf
MPI_LONG_LONG = "0x" + mpi_datatype_prefix + len_long_long + "09"
end if
if dtypes.Exists("MPI_LONG_LONG_INT") then
MPI_LONG_LONG_INT = dtypes.Item("MPI_LONG_LONG_INT")
else
'missing_datatypes = missing_datatypes & "MPI_LONG_LONG_INT" & vbCrLf
'MPI_LONG_LONG_INT = "0x" + mpi_datatype_prefix + len_long_long + "09"
if dtypes.Exists("MPI_LONG_LONG") then
MPI_LONG_LONG_INT = dtypes.Item("MPI_LONG_LONG")
dtypes.Add "MPI_LONG_LONG_INT", MPI_LONG_LONG_INT
else
missing_datatypes = missing_datatypes & "MPI_LONG_LONG_INT" & vbCrLf
MPI_LONG_LONG_INT = "0x" + mpi_datatype_prefix + len_long_long + "09"
end if
end if
if dtypes.Exists("MPI_UNSIGNED_LONG_LONG") then
MPI_UNSIGNED_LONG_LONG = dtypes.Item("MPI_UNSIGNED_LONG_LONG")
else
missing_datatypes = missing_datatypes & "MPI_UNSIGNED_LONG_LONG" & vbCrLf
MPI_UNSIGNED_LONG_LONG ="0x" + mpi_datatype_prefix + len_long_long + "19"
end if
if dtypes.Exists("MPI_FLOAT") then
MPI_FLOAT = dtypes.Item("MPI_FLOAT")
else
missing_datatypes = missing_datatypes & "MPI_FLOAT" & vbCrLf
MPI_FLOAT = "0x" + mpi_datatype_prefix + len_float + "0a"
end if
if dtypes.Exists("MPI_DOUBLE") then
MPI_DOUBLE = dtypes.Item("MPI_DOUBLE")
else
missing_datatypes = missing_datatypes & "MPI_DOUBLE" & vbCrLf
MPI_DOUBLE = "0x" + mpi_datatype_prefix + len_double + "0b"
end if
if dtypes.Exists("MPI_LONG_DOUBLE") then
MPI_LONG_DOUBLE = dtypes.Item("MPI_LONG_DOUBLE")
else
missing_datatypes = missing_datatypes & "MPI_LONG_DOUBLE" & vbCrLf
MPI_LONG_DOUBLE = "0x" + mpi_datatype_prefix + len_long_double + "0c"
end if
if dtypes.Exists("MPI_PACKED") then
MPI_PACKED = dtypes.Item("MPI_PACKED")
else
missing_datatypes = missing_datatypes & "MPI_PACKED" & vbCrLf
MPI_PACKED = "0x" + mpi_datatype_prefix + "010f"
end if
if dtypes.Exists("MPI_LB") then
MPI_LB = dtypes.Item("MPI_LB")
else
missing_datatypes = missing_datatypes & "MPI_LB" & vbCrLf
MPI_LB = "0x" + mpi_datatype_prefix + "0010"
end if
if dtypes.Exists("MPI_UB") then
MPI_UB = dtypes.Item("MPI_UB")
else
missing_datatypes = missing_datatypes & "MPI_UB" & vbCrLf
MPI_UB = "0x" + mpi_datatype_prefix + "0011"
end if
if dtypes.Exists("MPI_REAL4") then
MPI_REAL4 = dtypes.Item("MPI_REAL4")
else
missing_datatypes = missing_datatypes & "MPI_REAL4" & vbCrLf
MPI_REAL4 = "0x" + mpi_datatype_prefix + "0427"
end if
if dtypes.Exists("MPI_REAL8") then
MPI_REAL8 = dtypes.Item("MPI_REAL8")
else
missing_datatypes = missing_datatypes & "MPI_REAL8" & vbCrLf
MPI_REAL8 = "0x" + mpi_datatype_prefix + "0829"
end if
if dtypes.Exists("MPI_REAL16") then
MPI_REAL16 = dtypes.Item("MPI_REAL16")
else
missing_datatypes = missing_datatypes & "MPI_REAL16" & vbCrLf
MPI_REAL16 = "0x" + mpi_datatype_prefix + "1029"
end if
if dtypes.Exists("MPI_COMPLEX8") then
MPI_COMPLEX8 = dtypes.Item("MPI_COMPLEX8")
else
missing_datatypes = missing_datatypes & "MPI_COMPLEX8" & vbCrLf
MPI_COMPLEX8 = "0x" + mpi_datatype_prefix + "0828"
end if
if dtypes.Exists("MPI_COMPLEX16") then
MPI_COMPLEX16 = dtypes.Item("MPI_COMPLEX16")
else
missing_datatypes = missing_datatypes & "MPI_COMPLEX16" & vbCrLf
MPI_COMPLEX16 = "0x" + mpi_datatype_prefix + "102b"
end if
if dtypes.Exists("MPI_COMPLEX32") then
MPI_COMPLEX32 = dtypes.Item("MPI_COMPLEX32")
else
missing_datatypes = missing_datatypes & "MPI_COMPLEX32" & vbCrLf
MPI_COMPLEX32 = "0x" + mpi_datatype_prefix + "2030"
end if
if dtypes.Exists("MPI_INTEGER1") then
MPI_INTEGER1 = dtypes.Item("MPI_INTEGER1")
else
missing_datatypes = missing_datatypes & "MPI_INTEGER1" & vbCrLf
MPI_INTEGER1 = "0x" + mpi_datatype_prefix + "012d"
end if
if dtypes.Exists("MPI_INTEGER2") then
MPI_INTEGER2 = dtypes.Item("MPI_INTEGER2")
else
missing_datatypes = missing_datatypes & "MPI_INTEGER2" & vbCrLf
MPI_INTEGER2 = "0x" + mpi_datatype_prefix + "022f"
end if
if dtypes.Exists("MPI_INTEGER4") then
MPI_INTEGER4 = dtypes.Item("MPI_INTEGER4")
else
missing_datatypes = missing_datatypes & "MPI_INTEGER4" & vbCrLf
MPI_INTEGER4 = "0x" + mpi_datatype_prefix + "0430"
end if
if dtypes.Exists("MPI_INTEGER8") then
MPI_INTEGER8 = dtypes.Item("MPI_INTEGER8")
else
missing_datatypes = missing_datatypes & "MPI_INTEGER8" & vbCrLf
MPI_INTEGER8 = "0x" + mpi_datatype_prefix + "082a"
end if
if dtypes.Exists("MPI_INTEGER16") then
MPI_INTEGER16 = dtypes.Item("MPI_INTEGER16")
else
missing_datatypes = missing_datatypes & "MPI_INTEGER16" & vbCrLf
MPI_INTEGER16 = "0x" + mpi_datatype_prefix + "102f"
end if
if dtypes.Exists("MPI_FLOAT_INT") then
MPI_FLOAT_INT = dtypes.Item("MPI_FLOAT_INT")
else
'missing_datatypes = missing_datatypes & "MPI_FLOAT_INT" & vbCrLf
'MPI_FLOAT_INT = "0x" + mpi_datatype_prefix + len_float_int + "12"
MPI_FLOAT_INT = "0x8c000000"
dtypes.Add "MPI_FLOAT_INT", MPI_FLOAT_INT
end if
if dtypes.Exists("MPI_DOUBLE_INT") then
MPI_DOUBLE_INT = dtypes.Item("MPI_DOUBLE_INT")
else
'missing_datatypes = missing_datatypes & "MPI_DOUBLE_INT" & vbCrLf
'MPI_DOUBLE_INT = "0x" + mpi_datatype_prefix + len_double_int + "13"
MPI_DOUBLE_INT = "0x8c000001"
dtypes.Add "MPI_DOUBLE_INT", MPI_DOUBLE_INT
end if
if dtypes.Exists("MPI_LONG_INT") then
MPI_LONG_INT = dtypes.Item("MPI_LONG_INT")
else
'missing_datatypes = missing_datatypes & "MPI_LONG_INT" & vbCrLf
'MPI_LONG_INT = "0x" + mpi_datatype_prefix + len_long_int + "14"
MPI_LONG_INT = "0x8c000002"
dtypes.Add "MPI_LONG_INT", MPI_LONG_INT
end if
if dtypes.Exists("MPI_SHORT_INT") then
MPI_SHORT_INT = dtypes.Item("MPI_SHORT_INT")
else
'missing_datatypes = missing_datatypes & "MPI_SHORT_INT" & vbCrLf
'MPI_SHORT_INT = "0x" + mpi_datatype_prefix + len_short_int + "15"
MPI_SHORT_INT = "0x8c000003"
dtypes.Add "MPI_SHORT_INT", MPI_SHORT_INT
end if
if dtypes.Exists("MPI_2INT") then
MPI_2INT = dtypes.Item("MPI_2INT")
else
missing_datatypes = missing_datatypes & "MPI_2INT" & vbCrLf
MPI_2INT = "0x" + mpi_datatype_prefix + len_two_int + "16"
end if
if dtypes.Exists("MPI_LONG_DOUBLE_INT") then
MPI_LONG_DOUBLE_INT = dtypes.Item("MPI_LONG_DOUBLE_INT")
else
'missing_datatypes = missing_datatypes & "MPI_LONG_DOUBLE_INT" & vbCrLf
'MPI_LONG_DOUBLE_INT = "0x" + mpi_datatype_prefix + len_long_double_int + "17"
MPI_LONG_DOUBLE_INT = "0x8c000004"
dtypes.Add "MPI_LONG_DOUBLE_INT", MPI_LONG_DOUBLE_INT
end if
if dtypes.Exists("MPI_CHARACTER") then
MPI_CHARACTER = dtypes.Item("MPI_CHARACTER")
else
missing_datatypes = missing_datatypes & "MPI_CHARACTER" & vbCrLf
MPI_CHARACTER = "0x" + mpi_datatype_prefix + "011a"
end if
' Win32 versions
if dtypes.Exists("MPI_INTEGER") then
MPI_INTEGER_W32 = dtypes.Item("MPI_INTEGER")
else
missing_datatypes = missing_datatypes & "MPI_INTEGER" & vbCrLf
MPI_INTEGER_W32 = "0x" + mpi_datatype_prefix + len_integer + "1b"
end if
if dtypes.Exists("MPI_REAL") then
MPI_REAL_W32 = dtypes.Item("MPI_REAL")
else
missing_datatypes = missing_datatypes & "MPI_REAL" & vbCrLf
MPI_REAL_W32 = "0x" + mpi_datatype_prefix + len_integer + "1c"
end if
if dtypes.Exists("MPI_LOGICAL") then
MPI_LOGICAL_W32 = dtypes.Item("MPI_LOGICAL")
else
missing_datatypes = missing_datatypes & "MPI_LOGICAL" & vbCrLf
MPI_LOGICAL_W32 = "0x" + mpi_datatype_prefix + len_integer + "1d"
end if
' Win64 versions
if dtypes64.Exists("MPI_INTEGER") then
MPI_INTEGER_W64 = dtypes64.Item("MPI_INTEGER")
else
missing_datatypes = missing_datatypes & "MPI_INTEGER" & vbCrLf
MPI_INTEGER_W64 = "0x" + mpi_datatype_prefix + len_integer + "1b"
end if
if dtypes64.Exists("MPI_REAL") then
MPI_REAL_W64 = dtypes64.Item("MPI_REAL")
else
missing_datatypes = missing_datatypes & "MPI_REAL" & vbCrLf
MPI_REAL_W64 = "0x" + mpi_datatype_prefix + len_integer + "1c"
end if
if dtypes64.Exists("MPI_LOGICAL") then
MPI_LOGICAL_W64 = dtypes64.Item("MPI_LOGICAL")
else
missing_datatypes = missing_datatypes & "MPI_LOGICAL" & vbCrLf
MPI_LOGICAL_W64 = "0x" + mpi_datatype_prefix + len_integer + "1d"
end if
' end versions
if dtypes.Exists("MPI_COMPLEX") then
MPI_COMPLEX = dtypes.Item("MPI_COMPLEX")
else
missing_datatypes = missing_datatypes & "MPI_COMPLEX" & vbCrLf
MPI_COMPLEX = "0x" + mpi_datatype_prefix + len_double + "1e"
end if
if dtypes.Exists("MPI_DOUBLE_PRECISION") then
MPI_DOUBLE_PRECISION = dtypes.Item("MPI_DOUBLE_PRECISION")
else
missing_datatypes = missing_datatypes & "MPI_DOUBLE_PRECISION" & vbCrLf
MPI_DOUBLE_PRECISION = "0x" + mpi_datatype_prefix + len_double + "1f"
end if
if dtypes.Exists("MPI_2INTEGER") then
MPI_2INTEGER = dtypes.Item("MPI_2INTEGER")
else
missing_datatypes = missing_datatypes & "MPI_2INTEGER" & vbCrLf
MPI_2INTEGER = "0x" + mpi_datatype_prefix + len_double + "20"
end if
if dtypes.Exists("MPI_2REAL") then
MPI_2REAL = dtypes.Item("MPI_2REAL")
else
missing_datatypes = missing_datatypes & "MPI_2REAL" & vbCrLf
MPI_2REAL = "0x" + mpi_datatype_prefix + len_double + "21"
end if
if dtypes.Exists("MPI_DOUBLE_COMPLEX") then
MPI_DOUBLE_COMPLEX = dtypes.Item("MPI_DOUBLE_COMPLEX")
else
missing_datatypes = missing_datatypes & "MPI_DOUBLE_COMPLEX" & vbCrLf
MPI_DOUBLE_COMPLEX = "0x" + mpi_datatype_prefix + len_doublecplx + "22"
end if
if dtypes.Exists("MPI_2DOUBLE_PRECISION") then
MPI_2DOUBLE_PRECISION = dtypes.Item("MPI_2DOUBLE_PRECISION")
else
missing_datatypes = missing_datatypes & "MPI_2DOUBLE_PRECISION" & vbCrLf
MPI_2DOUBLE_PRECISION = "0x" + mpi_datatype_prefix + len_doublecplx + "23"
end if
if dtypes.Exists("MPI_2COMPLEX") then
MPI_2COMPLEX = dtypes.Item("MPI_2COMPLEX")
else
missing_datatypes = missing_datatypes & "MPI_2COMPLEX" & vbCrLf
MPI_2COMPLEX = "0x" + mpi_datatype_prefix + len_doublecplx + "24"
end if
if dtypes.Exists("MPI_2DOUBLE_COMPLEX") then
MPI_2DOUBLE_COMPLEX = dtypes.Item("MPI_2DOUBLE_COMPLEX")
else
missing_datatypes = missing_datatypes & "MPI_2DOUBLE_COMPLEX" & vbCrLf
MPI_2DOUBLE_COMPLEX = "0x" + mpi_datatype_prefix + len_2dc + "25"
end if
' Special C++ Datatypes to support Fortran datatypes within C++
MPIR_CXX_BOOL = "0x" + mpi_datatype_prefix + len_bool + "33"
MPIR_CXX_COMPLEX = "0x" + mpi_datatype_prefix + len_complex + "34"
MPIR_CXX_DOUBLE_COMPLEX = "0x" + mpi_datatype_prefix + len_double_complex + "35"
MPIR_CXX_LONG_DOUBLE_COMPLEX = "0x" + mpi_datatype_prefix + len_long_double_complex + "36"