-
Notifications
You must be signed in to change notification settings - Fork 16
/
configure
executable file
·13826 lines (12348 loc) · 484 KB
/
configure
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
#!/bin/bash
#****************************************************************************
#* TAU Portable Profiling Package **
#* http://www.cs.uoregon.edu/research/tau **
#****************************************************************************
#* Copyright 1997-2024 **
#* Department of Computer and Information Science, University of Oregon **
#* Advanced Computing Laboratory, Los Alamos National Laboratory **
#* Research Center Juelich, ZAM Germany **
#****************************************************************************
#*
#* Permission to use, copy, modify, and distribute this software and its
#* documentation for any purpose and without fee is hereby granted,
#* provided that the above copyright notice appear in all copies and that
#* both that copyright notice and this permission notice appear in
#* supporting documentation, and that the name of University of Oregon (UO)
#* and Los Alamos National Laboratory (LANL) not be
#* used in advertising or publicity pertaining to distribution of
#* the software without specific, written prior permission. The
#* University of Oregon and LANL makes no representations about the
#* suitability of this software for any purpose. It is provided "as is"
#* without express or implied warranty.
#*
#* THE UNIVERSITY OF OREGON AND LANL DISCLAIMS ALL WARRANTIES WITH REGARD TO
#* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
#* FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF OREGON OR LANL BE LIABLE FOR
#* ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
#* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
#* CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
#* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#****************************************************************************
cwd=`pwd`
download()
{
src="$1"
dst="$2"
local="$cwd/external_dependencies/$dst"
echo "Looking for $local..."
if [ -e $local ] ; then
echo "Found $local, using it."
cp $local $dst
elif which wget >/dev/null 2>&1 ; then
echo "wget: $src ==> $dst"
wget --no-check-certificate -O "$dst" "$src"
elif which curl >/dev/null 2>&1 ; then
echo "curl: $src ==> $dst"
curl -L "$src" > "$dst"
else
echo "ERROR: neither curl nor wget found in your path."
exit 199
fi
}
my_fail_check()
{
retval=$?
if [ $retval -ne 0 ];
then
echo "Command failed"
exit 1
fi
}
clone()
{
src="$1"
dst="$2"
echo "git clone $src" "$dst"
git clone "$src" "$dst"
}
# This function is to extract the cflags from mpi compiler wrappers
# and try to be more sophisticated than:
# args=`mpicxx -show | cut -d' ' -f2- | sed -e 's@ @#@g'`
get_cflags() {
compiler=$1
option=$2
args=`$compiler $option | cut -d' ' -f2-`
#echo "$compiler flags: $args"
_got_cflags=""
for word in $args; do
#echo "$word"
if [[ "$word" =~ ^-Wl,.* ]]; then
: # do nothing
elif [[ "$word" =~ ^-l.* ]]; then
: # do nothing
elif [[ "$word" =~ ^-L.* ]]; then
: # do nothing
else
_got_cflags="$_got_cflags $word"
fi
done
_got_cflags=`echo $_got_cflags | sed -e 's@ @#@g'`
#echo "Found MPI compiler flags: $_got_cflags"
}
# This function is to extract the ldflags from mpi compiler wrappers
# and try to be more sophisticated than:
# args=`mpicxx -show | cut -d' ' -f2- | sed -e 's@ @#@g'`
get_ldflags() {
compiler=$1
option=$2
args=`$compiler $option | cut -d' ' -f2-`
#echo "$compiler flags: $args"
_got_ldflags=""
for word in $args; do
#echo "$word"
if [[ "$word" =~ ^-Wl,.* ]]; then
_got_ldflags="$_got_ldflags $word"
elif [[ "$word" =~ ^-l.* ]]; then
_got_ldflags="$_got_ldflags $word"
elif [[ "$word" =~ ^-L.* ]]; then
_got_ldflags="$_got_ldflags $word"
elif [[ "$word" =~ ^-I.* ]]; then
: # do nothing
else
_got_ldflags="$_got_ldflags $word"
fi
done
_got_ldflags=`echo $_got_ldflags | sed -e 's@ @#@g'`
#echo "Found MPI linker flags: $_got_ldflags"
}
#get_cflags "mpicxx" "-show"
#get_ldflags "mpicxx" "-show"
#echo "cflags = $_got_cflags"
#echo "ldflags = $_got_ldflags"
#get_cflags "cc" "--cray-print-opts=all"
#get_ldflags "cc" "--cray-print-opts=all"
#echo "cflags = $_got_cflags"
#echo "ldflags = $_got_ldflags"
get_cray_mpiflags() {
my_mpicxx_exe=CC
my_mpif90_exe=ftn
mpishow_option="--cray-print-opts=all"
yet_another_option="-I$CRAY_MPICH_PREFIX/include#"
get_cflags $my_mpicxx_exe $mpishow_option
get_ldflags $my_mpicxx_exe $mpishow_option
mpiinc="${yet_another_option}${_got_cflags}"
mpilibargs=$_got_ldflags
# We have to make sure we set the mpilibrary variable here, because later
# mpilib might get reset.
mpilibrary=$_got_ldflags
get_ldflags $my_mpif90_exe $mpishow_option
mpiflibargs=`echo $_got_ldflags | sed -e 's@-qthreaded@@g'`
echo "Found $mpicxx_exe cflags: $mpiinc"
echo "Found $mpicxx_exe ldflags: $mpilibargs"
echo "Found $mpif90_exe ldflags: $mpiflibargs"
mpilibargs="-L$tautoplevel/$machine/lib#-lTauMpi\$(TAU_CONFIG)#$mpilibargs"
mpiflibargs="-L$tautoplevel/$machine/lib#-lTauMpi\$(TAU_CONFIG)#$mpiflibargs"
fixmakeargs="$fixmakeargs mpilibargs=$mpilibargs mpiflibargs=$mpiflibargs mpiincargs=$mpiinc"
mpilibargs_added_to_fixmakeargs=yes
}
# This function checks the cmake version and even does a "module load cmake" if we don't have a required version. It takes 3 args: major minor "string" and returns 0 if success
# and 1 if error
#check_cmake 3 14 "LLVM plugin"
#result=$?
#if [ $result -eq 0 ]; then
# echo "Success: building LLVM plugin"
#fi
function check_cmake() {
#check if CMake exists
cmake_major_version=`cmake --version | head -1 | sed "s/[^0-9.]*\([0-9.]*\).*/\1/" | cut -d. -f1`
cmake_minor_version=`cmake --version | head -1 | sed "s/[^0-9.]*\([0-9.]*\).*/\1/" | cut -d. -f2 `
cmake_cmd=`which cmake`
echo "CMAKE VERSION: $cmake_major_version $cmake_minor_version"
echo "WHICH CMAKE: $cmake_cmd"
load_cmake=0
if [ "x$cmake_cmd" = "x" ] || (($cmake_major_version < $1)) ; then
load_cmake=1
else
if (($cmake_major_version == $1)) && (($cmake_minor_version < $2)) ; then
load_cmake=1
fi
fi
# Try loading the cmake module if it exists
if (($load_cmake == 1)); then
echo "ERROR: cmake version $1.$2+ is required for $3. Trying module load cmake."
module avail cmake 1> /dev/null 2>&1
result=$?
if [ $result -eq 0 ]; then
module load cmake;
fi;
fi
cmake_major_version=`cmake --version | head -1 | sed "s/[^0-9.]*\([0-9.]*\).*/\1/" | cut -d. -f1`; cmake_minor_version=`cmake --version | head -1 | sed "s/[^0-9.]*\([0-9.]*\).*/\1/" | cut -d. -f2 `; cmake_cmd=`which cmake`
if (($cmake_major_version == $1)) ; then
if (($cmake_minor_version >= $2)) ; then
echo "TAU: CMAKE version check passes. Using $cmake_major_version.$cmake_minor_version "
return 0
else
echo "ERROR: cmake version $1.$2+ is required for $3. Please load cmake version $1.$2+ and retry"
return 1
fi
else
# cmake major is != $1
if (($cmake_major_version < $1)); then
echo "ERROR: cmake version $1.$2+ is required for $3. Even after module load cmake, this version is inadequate. Please load cmake version $1.$2+ and retry"
return 1
else
# cmake major > $1
echo "Success: Using CMAKE version: $cmake_major_version.$cmake_minor_version"
return 0
fi
fi
# should not have reached here
return 1
}
# Install SOS dependencies such as EVPath
installsosdeps()
{
installdir="$1"
if [ -d $installdir ]; then
echo "sos install directory exists, trying to remove sos_flow to compile it again"
if [ -d $installdir/sos_flow_master ]; then
rm -rf $installdir/sos_flow_master
fi
else
mkdir $installdir
fi
cd $installdir
P=`pwd`
#check if CMake exists
check_cmake 3 0 "SOS"
result=$?
if [ $result -eq 1 ]; then
echo 'ERROR: cmake version 3 or higher required to build SOS dependencies, exiting.'
exit 1;
fi
echo "Install SOS deps"
if [ -d chaos ]; then
echo "chaos directory exists"
else
mkdir chaos
fi
cd chaos
currdir=`pwd`
#wget https://www.sqlite.org/2017/sqlite-autoconf-3210000.tar.gz
if [ -f sqlite3/bin/sqlite3 ] && [ -f sqlite3/include/sqlite3.h ] && [ -f sqlite3/lib/libsqlite3.a ] ; then
echo "sqlite3 already installed"
else
echo "Install Sqlite3"
mkdir sqlite3
download http://www.cs.uoregon.edu/research/paracomp/tau/tauprofile/dist/sos/sqlite-autoconf-3210000.tar.gz sqlite-autoconf-3210000.tar.gz
tar -xvzf sqlite-autoconf-3210000.tar.gz
rm sqlite-autoconf-3210000.tar.gz
cd sqlite-autoconf-3210000
./configure --prefix=$currdir/sqlite3
my_fail_check
make -j
make install
my_fail_check
cd ..
rm -rf sqlite-autoconf-3210000
fi
if [ $sos_comm = evpath ]
then
#wget http://www.cc.gatech.edu/systems/projects/EVPath/chaos_bootstrap.pl
#export FLEXPATH_DIR=$currdir/inst
#perl ./chaos_bootstrap.pl adios-1.13 $currdir/inst
#perl ./chaos_build.pl
mkdir build_area
cd build_area
echo "Download SOS dependencies: $2 $3"
download "$2" "$3"
echo "Extract SOS dependencies: $3"
tar -xvf "$3"
rm -f "$3"
#Install dill
cd dill/source
cmake -DENABLE_TESTING=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$currdir/inst $currdir/build_area/dill/source
my_fail_check
make all install -j
my_fail_check
cd ../..
#Install cercs_env
cd cercs_env/source
cmake -DENABLE_TESTING=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$currdir/inst $currdir/build_area/cercs_env/source
my_fail_check
make all install -j
my_fail_check
cd ../..
#Install atl
cd atl/source
cmake -DENABLE_TESTING=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$currdir/inst $currdir/build_area/atl/source
my_fail_check
make all install -j
my_fail_check
cd ../..
#Install ffs
cd ffs/source
cmake -DENABLE_TESTING=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$currdir/inst $currdir/build_area/ffs/source
my_fail_check
make all install -j
my_fail_check
cd ../..
#Install enet
cd enet/source
$currdir/build_area/enet/source/configure CFLAGS='-g -O0' CPPFLAGS='-g -O0' --prefix=$currdir/inst
my_fail_check
make install -j
my_fail_check
cd ../..
#Install evpath
cd evpath/source
cmake -DENABLE_TESTING=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$currdir/inst $currdir/build_area/evpath/source
my_fail_check
make all install -j
my_fail_check
cd ../../..
# set path to Flexpath/EVPath (see above)
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${FLEXPATH_DIR}/lib/pkgconfig
# Copy EVPath cmake file to its inst directory
cd inst/lib/cmake/EVPath
cp EVPathConfig.cmake ../../../
cp EVPathTargets.cmake ../../../
cd ../../../..
echo "Install libfabric"
#git clone https://github.com/ofiwg/libfabric.git
download http://www.cs.uoregon.edu/research/paracomp/tau/tauprofile/dist/sos/libfabric.zip libfabric.zip
unzip libfabric.zip
cd libfabric
chmod +x autogen.sh
./autogen.sh
currdir=`pwd`
./configure --prefix=$currdir/inst
my_fail_check
make install -j
my_fail_check
cd inst/lib
cp libfabric.* ../../../inst/lib
cd ../../../..
fi
cd $P
set +x
}
# Install SOS
installsos()
{
echo "installsos - current dir: `pwd`"
#src="$1"
dst="$1"
#cd ../..
#cd $dst
currdir=`pwd`
# Check if SQLITE3 is available
#sqlite3_cmd=`which sqlite3`
#if [ "x$sqlite3_cmd" = "x" ] ; then
# echo 'ERROR: SQLITE3 required to build SOS, exiting.'
# exit 1;
#fi
cd $dst
#git checkout merge_of_doom
mkdir build-linux
cd build-linux
export sosdir=$currdir/$dst/inst
echo "EVPath Inst dir: $targetdir/$architecture/sos/chaos/inst"
echo "$sos_comm"
echo "$c_compiler"
echo "$cxx_compiler"
case $sos_comm in
sockets)
echo "Compile SOS with sockets"
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$currdir/$dst/inst -DSOS_ENABLE_PYTHON=OFF -DSQLite3_DIR=$targetdir/$architecture/sos/chaos/sqlite3 -DCMAKE_C_COMPILER=$c_compiler -DCMAKE_CXX_COMPILER=$cxx_compiler -DSOS_CLOUD_SYNC_WITH_SOCKET=ON -DSOS_CLOUD_SYNC_WITH_MPI=OFF -DSOS_CLOUD_SYNC_WITH_ZEROMQ=OFF -DSOS_CLOUD_SYNC_WITH_EVPATH=OFF ..
retval=$?
;;
mpi)
echo "Compile SOS with mpi"
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$currdir/$dst/inst -DSOS_ENABLE_PYTHON=OFF -DSQLite3_DIR=$targetdir/$architecture/sos/chaos/sqlite3 -DCMAKE_C_COMPILER=$c_compiler -DCMAKE_CXX_COMPILER=$cxx_compiler -DSOS_CLOUD_SYNC_WITH_SOCKET=OFF -DSOS_CLOUD_SYNC_WITH_MPI=ON -DSOS_CLOUD_SYNC_WITH_ZEROMQ=OFF -DSOS_CLOUD_SYNC_WITH_EVPATH=OFF ..
retval=$?
;;
evpath)
echo "Compile SOS with EVPath"
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$currdir/$dst/inst -DSOS_ENABLE_PYTHON=OFF -DEVPath_DIR=$targetdir/$architecture/sos/chaos/inst -DSQLite3_DIR=$targetdir/$architecture/sos/chaos/sqlite3 -DCMAKE_C_COMPILER=$c_compiler -DCMAKE_CXX_COMPILER=$cxx_compiler -DSOS_CLOUD_SYNC_WITH_SOCKET=OFF -DSOS_CLOUD_SYNC_WITH_MPI=OFF -DSOS_CLOUD_SYNC_WITH_ZEROMQ=OFF -DSOS_CLOUD_SYNC_WITH_EVPATH=ON ..
retval=$?
;;
# zeromq)
# echo "Compile SOS with zeromq"
# cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$currdir/$dst/inst -DSOS_ENABLE_PYTHON=OFF -DEVPath_DIR=$targetdir/$architecture/sos/chaos/inst -DSQLite3_DIR=$targetdir/$architecture/sos/chaos/sqlite3 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DSOS_CLOUD_SYNC_WITH_SOCKET=OFF -DSOS_CLOUD_SYNC_WITH_MPI=OFF -DSOS_CLOUD_SYNC_WITH_ZEROMQ=ON -DSOS_CLOUD_SYNC_WITH_EVPATH=OFF ..
# ;;
esac
if [ $retval -eq 0 ];
then
echo "Compiling sos_flow..."
else
echo "Error cmake SOS_FLOW"
exit 1
fi
# cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$currdir/$dst/inst -DEVPath_DIR=$targetdir/$architecture/sos/chaos/inst -DSQLite3_DIR=$targetdir/$architecture/sos/chaos/sqlite3 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DSOS_CLOUD_SYNC_WITH_EVPATH=TRUE ..
make -j ;
retval=$?
if [ $retval -eq 0 ];
then
echo "Compiled sos_flow"
else
echo "Error compiling SOS_FLOW"
exit 1
fi
make install
}
fix_tilde_at_the_start_of_cube_path()
{
cubedir=`echo $cubedir | sed -e "s,^~,$HOME,"g`
}
restore_perfdmf_and_paraprof()
{
restore_paraprof
restore_perfdmf
}
correction_perfdmf_and_paraprof()
{
correction_paraprof
correction_perfdmf
}
copy_own_cube_reader_if_selected()
{
if test "x$cubedir" = "xown"; then
confirmation_copy_of_own_jar_file
fi
}
save_configure_env()
{
# assuming configure is called from same directory
# tau's configure doesn't work anyway from another directory
_tauroot="."
confenvdir="$_tauroot/.configure_env"
md5sum="`which md5sum 2>/dev/null || which md5 2>/dev/null`"
if [ "x$md5sum" == "x" ] ; then
echo "Warning: can't find md5sum or md5."
return
fi
argsum=`echo "$all_args" | $md5sum | awk '{print $1}'`
mkdir -p "$confenvdir"
confenvfile="$confenvdir/$argsum"
set > "$confenvfile"
fixmakeargs="$fixmakeargs confenvfile=$confenvfile"
}
select_cube_reader_jar()
{
if test "x$cubedir" != "xown"; then
check_another_cube_installation
check_cube_installation
#at that point cubedir is either correct or empty
if test "x$cubedir" = "x"; then
warning_about_missing_cube_installation
fi
else
# select the own classpath
cubeclasspath='${TAUROOT}/${MACHINE}/lib/CubeReader.jar'
makecubeclasspath="../contrib/CubeReader.jar"
fi
return 0
}
check_another_cube_installation()
{
# check if CUBE in PATH
testline=`cube_config.sh --name 2>&1`
another_cube_present="no"
if test "x$testline" = "xCUBE"; then
another_cube_present="yes"
another_cube_dir=`cube_config.sh --cube-dir`
if test "x$another_cube_dir" != "x$cubedir"; then
warning_about_another_cube_installation $another_cube_dir
return 1
fi
fi
# check if CUBE is not in PATH , but CUBE_DIR is set
if test "x$CUBE_DIR" != "x"; then
testline=`$CUBE_DIR/bin/cube_config.sh --name 2>&1`
another_cube_present="no"
if test "x$testline" = "xCUBE"; then
another_cube_present="yes"
another_cube_dir=`$CUBE_DIR/bin/cube_config.sh --cube-dir`
if test "x$another_cube_dir" != "x$cubedir"; then
warning_about_another_cube_installation $another_cube_dir
return 1
fi
fi
fi
return 0
}
check_cube_installation()
{
# check if cubedir points to CUBE
if test "x$cubedir" != "x"; then
if test "x$cubedir" = "xext"; then
if test "x$another_cube_dir" = "x"; then
warning_about_general_missing_cube_installation
else
cubedir=$another_cube_dir
fi
fi
fix_tilde_at_the_start_of_cube_path
testline=`$cubedir/bin/cube_config.sh --name 2>&1`
cuberoot=$cubedir
#in the case one spezified /lib/directory of CUBE installation
if test "x$testline" != "xCUBE"; then
testline=`$cubedir/../bin/cube_config.sh --name 2>&1`
cuberoot=$cubedir/../
fi
if test "x$testline" = "xCUBE"; then
#check if the cube installation was done with java reader
cubeclasspath=`$cuberoot/bin/cube_config.sh --classpath`
makecubeclasspath=$cubeclasspath
if [ "x$cubeclasspath" != "x" -a -f $cuberoot/lib/CubeReader.jar ] ; then
confirm_proper_cube_installation $cuberoot
fi
else
warning_about_missing_cube_installation $cubedir
fi
fi
return 0
}
correction_paraprof()
{
# assuming configure is called from same directory
# tau's configure doesn't work anyway from another directory
cd ${tauroot}
_tauroot="."
echo "Adjust ParaProf to use CubeReader..."
cat ${_tauroot}/tools/src/paraprof/bin/paraprof.skel |
sed -e 's,@CUBECLASSPATH@,'$cubeclasspath',' > ${_tauroot}/tools/src/paraprof/bin/paraprof.new
mv ${_tauroot}/tools/src/paraprof/bin/paraprof.new ${_tauroot}/tools/src/paraprof/bin/paraprof.skel
cat ${_tauroot}/tools/src/paraprof/Makefile |
sed -e 's,@CUBECLASSPATH@,'$makecubeclasspath',' > ${_tauroot}/tools/src/paraprof/Makefile.new
mv ${_tauroot}/tools/src/paraprof/Makefile.new ${_tauroot}/tools/src/paraprof/Makefile
}
correction_perfdmf()
{
echo "Adjust PerfDmf to use CubeReader..."
cat ${_tauroot}/tools/src/perfdmf/Makefile.skel |
sed -e 's,@CUBECLASSPATH@,'$makecubeclasspath',' >${_tauroot}/tools/src/perfdmf/Makefile.new
mv ${_tauroot}/tools/src/perfdmf/Makefile.new ${_tauroot}/tools/src/perfdmf/Makefile
}
restore_paraprof()
{
# assuming configure is called from same directory
# tau's configure doesn't work anyway from another directory
_tauroot="."
echo "Unset ParaProf's cubeclasspath..."
cat ${_tauroot}/tools/src/paraprof/bin/paraprof.skel |
sed -e 's,^CUBE_JAVA_READER=.*$,CUBE_JAVA_READER=@CUBECLASSPATH@,' > ${_tauroot}/tools/src/paraprof/bin/paraprof.new
mv ${_tauroot}/tools/src/paraprof/bin/paraprof.new ${_tauroot}/tools/src/paraprof/bin/paraprof.skel
cat ${_tauroot}/tools/src/paraprof/Makefile |
sed -e 's,^CUBE_JAVA_READER=.*$,CUBE_JAVA_READER=@CUBECLASSPATH@,' > ${_tauroot}/tools/src/paraprof/Makefile.new
mv ${_tauroot}/tools/src/paraprof/Makefile.new ${_tauroot}/tools/src/paraprof/Makefile
}
restore_perfdmf()
{
# assuming configure is called from same directory
# tau's configure doesn't work anyway from another directory
_tauroot="."
_tauroot="."
echo "Unset Perfdmf cubeclasspath..."
cat ${_tauroot}/tools/src/perfdmf/Makefile |
sed -e 's,^CUBE_JAVA_READER=.*$,CUBE_JAVA_READER=@CUBECLASSPATH@,' > ${_tauroot}/tools/src/perfdmf/Makefile.new
cp ${_tauroot}/tools/src/perfdmf/Makefile.new ${_tauroot}/tools/src/perfdmf/Makefile
}
confirmation_copy_of_own_jar_file()
{
echo "===================================================="
if [ -f ${tauroot}/tools/src/contrib/CubeReader.jar ] ; then
echo " Copy ${tauroot}/tools/src/contrib/CubeReader.jar to $JARTARGET"
cp ${tauroot}/tools/src/contrib/CubeReader.jar $JARTARGET
else
echo "ERROR: Tau doesn't have own copy of CubeReader.jar under ${tauroot}/tools/src/contrib/"
echo " Please check the recent TAU distribution and report this bug to [email protected]"
exit -1
fi
echo "===================================================="
return 0
}
warning_about_another_cube_installation()
{
echo "===================================================="
echo "WARNING: CUBE is detected under $1"
echo "===================================================="
return 0
}
confirm_proper_cube_installation()
{
echo "===================================================="
echo "CUBE Reader is found under $1/lib."
echo "CLASSPATH of it is $cubeclasspath"
echo "===================================================="
return 0
}
warning_about_missing_cube_installation()
{
echo "===================================================="
echo "ERROR: Cannot find CUBE installation under $1"
echo " Please check your option -cube=$cubedir"
echo "Abort."
echo "===================================================="
exit -1
}
warning_about_general_missing_cube_installation()
{
echo "===================================================="
echo "ERROR: Cannot find CUBE installation."
echo " Please specify precise place of CUBE using option -cube=$cubedir"
echo "Abort."
echo "===================================================="
exit -1
}
usage() {
echo "TAU Configuration Utility "
echo "***********************************************************************"
echo "Usage: configure [OPTIONS]"
echo " where [OPTIONS] are:"
echo ""
echo "Compiler Options:"
echo "-c++=<compiler> ............................ specify the C++ compiler."
echo " options [CC|KCC|g++|*xlC*|cxx|pgc++|pgcpp|FCC|guidec++|aCC|c++|ecpc|"
echo " armclang++|clang++|bgclang++|hcc|g++-*|icpc|icpx|scgcc|scpathCC|pathCC"
echo " nvcpp|orCC|hipcc|amdclang++]."
echo "-cc=<compiler> ................................ specify the C compiler."
echo " options [cc|gcc|gcc-*|clang|bgclang|gcc4|scgcc|KCC|pgcc|guidec|*xlc*|ecc|"
echo " armclang|pathcc|orcc|pgc|hipcc|amdclang]."
echo "-fortran=<compiler> ..................... specify the Fortran compiler."
echo " options [gnu|sgi|ibm|ibm64|hp|cray|pgi|absoft|fujitsu|sun|compaq|"
echo " flang|f18|xlflang|armflang|g95|open64|kai|nec|hitachi|intel|absoft|lahey|"
echo " nagware|pathscale|gfortran|gfortran-*|gfortran4|amdflang]"
echo "-pdt=<dir> ........ Specify location of PDT (Program Database Toolkit)."
echo "-pdt_c++=<compiler> ............ specify a different PDT C++ compiler."
echo " options [CC|KCC|g++|*xlC*|cxx|pgc++|pgcpp|FCC|guidec++|aCC|c++|ecpc|"
echo " g++-*|g++4|icpc|icpx|scgcc|pathCC|orCC]."
echo "-useropt='<param>' .......... arguments to compilers (defaults to -O2)."
echo ""
echo "Installation Options:"
echo "-prefix=<dir> ................ Specify a target installation directory."
echo "-bfd=<dir | download> ....... Specify a binutils directory or download."
echo " Note: 'download' will download and build the library automatically."
echo "-unwind=<dir | download> ... Specify a libunwind directory or download."
echo " Note: 'download' will download and build the library automatically."
echo "-unwind_gcc ............ Specify gcc as the compiler to build libuwind."
echo "-static_libunwind ............ Use libunwind.a instead of libunwind.so."
echo "-zlib=<dir | download> .......... Specify a zlib directory or download."
echo " Note: 'download' will download and build the library automatically."
echo ""
echo "MPI Options:"
echo "-mpi .......................... Specify use of TAU MPI wrapper library."
echo "-mpiinc=<dir> ............. Specify location of MPI include dir and use"
echo " the TAU MPI Profiling and Tracing Interface."
echo "-mpilib=<dir> ............. Specify location of MPI library dir and use"
echo " the TAU MPI Profiling and Tracing Interface."
echo "-mpilibrary=<library> ................ Specify a different MPI library."
echo " e.g., -mpilibrary=-lmpi_r "
echo ""
echo "OpenMP Options:"
echo "-openmp ........................................... Use OpenMP threads."
echo "-opari .................................................... Use Opari2."
echo "-ompt ............................................ Enable OMPT support."
echo ""
echo "OpenACC Options:"
echo "-openacc ................................................... Use OpenACC"
echo "-openacclib=<dir> ...... Specify location of the OpenACC library and use"
echo " the TAU MPI Profiling and Tracing Interface."
echo ""
echo "GPGPU Options:"
echo "-cuda=<dir> ................ Specify location of the top level CUDA SDK"
echo "directory with include subdirectory. Enables OpenCL and CUDA profiling."
echo "-rocm[=<dir>] ...... Specify alternate path to ROCm (/opt/rocm default)."
echo "-rocprofiler=<dir> .............. Specify location of ROCm rocprofiler."
echo "-rocprofv2 .......................................... Enable rocprofv2."
echo "-rocprofv3 .......................................... Enable rocprofv3."
echo "-rocmsmi=<dir> ..................... Specify location of RoCm rocm_smi."
# echo "-rocprofilerinc=<dir> .... Specify location of rocprofiler include dir."
# echo "-rocprofilerlibrary=<library> .... Specify name of rocprofiler library."
echo "-level_zero[=<dir>] ................. Specify path to Intel Level Zero."
echo "-level_metrics[=<dir>]... Specify path to Level Zero Metrics Discovery."
echo "-roctracer=<dir> .................. Specify location of ROCm roctracer."
echo "-hip=<dir> .................... Specify location of ROCm HIP directory."
echo ""
echo "Other Options:"
echo "-iowrapper .................................... Build POSIX IO Wrapper."
echo "-pthread .................................. Use pthread thread package."
echo "-no_pthread_create ................... Suppress pthread_create wrapper."
echo "-papi=<dir> ............... Specify location of PAPI (Performance API)."
echo "-likwid=<dir> ............................. Specify location of LIKWID."
echo "-otf=<dir> ....... Specify location of Open Trace Format (OTF) Package."
echo "-darshan=<dir> ............... Specify location of Darshan I/O package."
echo "-python .. Automatically choose python options based on Python in path."
echo "-python=<interp> .... Choose Python options based on named interpreter."
echo "-python3 Automatically choose python options based on Python3 in path."
echo "-pythoninc=<dir> ........ Specify location of Python include directory."
echo "-pythonlib=<dir> ............ Specify location of Python lib directory."
echo "-pythonlibrary=<library> ......... Specify name of Python library file."
echo " e.g. libpython3.10.so"
echo "-tag=<unique name> ........ Specify a tag to identify the installation."
echo "-mpit ............................... Enable MPI-T profiling interface."
echo "-starpu[=<dir>] ................................ Enable StarPU support."
echo "-phiprof ................................... Activate Phiprof bindings."
echo "-llvm_src=<dir> ......................... Path to the LLVM source tree "
echo " (necessary for the instrumentation plugin)"
echo "-llvm_cxx=<dir.................. Compiler that was used to compile LLVM"
echo " (necessary for the instrumentation plugin)"
echo "-syscall ...................................... Build SYSCALL Wrapper."
echo ""
echo "-help ...................................... display this help message."
echo "-fullhelp .............................. display the full help message."
echo ""
echo "More advanced (and uncommon) options are available, use -fullhelp to see them."
}
default=false
for arg in "$@"; do
case $arg in
default)
default=true
;;
-help)
usage
exit
;;
-h)
usage
exit
;;
--help)
usage
exit
;;
-fullhelp)
echo "TAU Configuration Utility "
echo "***********************************************************************"
echo "Usage: configure [OPTIONS]"
echo " where [OPTIONS] are:"
echo "-c++=<compiler> ............................ specify the C++ compiler."
echo " options [CC|KCC|g++|*xlC*|cxx|pgc++|pgcpp|FCC|guidec++|aCC|c++|ecpc|"
echo " armclang++|clang++|bgclang++|hcc|hipcc|icpc|icpx|scgcc|scpathCC|"
echo " pathCC|orCC|hipcc|amdclang++]. "
echo "-cc=<compiler> ................................ specify the C compiler."
echo " options [cc|gcc|gcc4|scgcc|clang|hcc|pgcc|guidec|*xlc*|ecc|pathcc| "
echo " orcc| armclang|hipcc|amdclang]. "
echo "-fortran=<compiler> ..................... specify the Fortran compiler."
echo " options [gnu|sgi|ibm|ibm64|hp|cray|pgi|absoft|fujitsu|sun|compaq|"
echo " g95|open64|kai|nec|hitachi|intel|absoft|lahey|nag|nagware|pathscale|"
echo " flang|f18|xlflang|armflang|gfortran|gfortran-*|gfortran4|amdflang] "
echo "-upc=<compiler> ............................. specify the UPC compiler."
echo " options [upc|gcc(GNU UPC) |upcc (Berkeley UPC) | cc (Cray CCE UPC)"
echo "-ansic ............................. Use ANSI C language specification."
echo "-cfront ................................................... DEPRECATED."
echo "-dec ............................ Use system default cc and CC for DEC."
echo "-gnu .......................... Explicitly use GNU C and C++ compilers."
echo "-ibm .......................... Explicitly use IBM C and C++ compilers."
echo "-sgi ............................ Use system default cc and CC for SGI."
echo "-host=<host-type> ................ the type of system on which TAU runs"
echo " this is used for cross-compilation"
echo "-host_sysroot=<path> ............................ host compiler sysroot"
echo "-hostutils..............................build TAU utils for <host-type>"
echo " this is used for cross-compilation"
echo "-pdt=<dir> ........ Specify location of PDT (Program Database Toolkit)."
echo "-pdt_c++=<compiler> ............ specify a different PDT C++ compiler."
echo " options [CC|KCC|g++|*xlC*|cxx|pgc++|pgcpp|FCC|guidec++|aCC|c++|ecpc|"
echo " clang++|bgclang++|g++4|icpc|icpx|scgcc|pathCC|orCC]."
echo "-pdtcompdir=<compilerdir> . specify a different PDT compiler directory."
echo "-pdtarchdir=<archdir> . specify a different PDT architecture directory."
echo "-useropt='<param>' .......... arguments to compilers (defaults to -O2)."
echo "-opt ................................................. Same as -useropt"
echo "-extrashlibopts='<parameters>' ...... arguments for building libTAU.so."
echo "-prefix=<dir> ................ Specify a target installation directory."
echo "-exec-prefix=<arch> .......... Specify a target architecture directory."
echo "-arch=<architecture> ................... Specify a target architecture."
echo " options [xt3|craycnl|bgp|bgq|bgl|ibm64|ibm64linux|sunx86_64"
echo " nec-sx-aurora|crayxmt|solaris2-64|mips32|sgin32|sgi64|sgio32"
echo " arm_linux|arm_android]"
echo "-iowrapper .................................... Build POSIX IO Wrapper."
echo "-ugni ..................................... Build UGNI network wrapper."
echo "-chapel .................... Build Cray Chapel network atomics wrapper."
echo "-pthread .................................. Use pthread thread package."
echo "-no_pthread_create ................... Suppress pthread_create wrapper."
echo "-papithread .................................. Use PAPI thread package."
echo "-charm=<dir> .............................. Use charm++ thread package."
echo "-sproc .................................. Use SGI sproc thread package."
echo "-openmp ........................................... Use OpenMP threads."
echo "-opari .................................................... Use Opari2."
echo "-opari1 .................................................... Use Opari."
echo "-opari_region .........Only report performance data for OpenMP regions."
echo "-opari_construct .. Only report performance data for OpenMP constructs."
echo "-oparicomp=<compiler>...Specify which compiler sutie to compile Opari2."
echo " options [gcc|ibm|intel|pathscale|pgi|studio]."
echo "-ompt ............................................ Enable OMPT support."
echo "-omptlib=<dir> ...................... Specify location of OMPT library."
echo "-omptlibrary ......................... OMPT library name for link line."
echo "-papi=<dir> ............... Specify location of PAPI (Performance API)."
echo "-likwid=<dir> ............................. Specify location of LIKWID."
echo "-beacon=<dir> ............................. Specify location of BEACON."
echo "-pdt=<dir> ........ Specify location of PDT (Program Database Toolkit)."
echo "-pin=<dir> ..... Specify location of Intel PIN instrumentation toolkit."
echo "-jdk=<dir> Build a library for profiling Java code with specified jdk."
echo "-android_sdk=<dir> ................ Android SDK used for APK injection."
echo "-android_version=VERSION ................. Android version, e.g. '4.4'."
echo "-android_platform=VERSION ........ Android platform version, e.g. '19'."
echo "-asmdex=<dir | download> ...... Specify a asmdex directory or download."
echo "-boost=<dir> ....................... Specify location of Boost package."
echo "-apex ......................................... Build the APEX package."
echo "-zerosum ................................... Build the ZeroSum package."
echo "-mochi ............................ Add MOCHI backend database support."
echo "-dyninst=<dir> ................... Specify location of DynInst package."
echo "-dyninstinc=<dir> ............ Specify location of DynInst include dir."
echo "-dyninstlib=<dir> ................ Specify location of DynInst lib dir."
echo "-dwarf=<dir> ................ Specify location of the libdwarf package."
echo "-dwarflib=<dir> ... Specify location of the libdwarf library directory."
echo "-elf=<dir> .................... Specify location of the libelf package."
echo "-bfd=<dir | download> ....... Specify a binutils directory or download."
echo " Note: 'download' will download and build the library automatically."
echo "-unwinder ....... Stack unwinder [libunwind,stackealker,backtrace,none]"
echo "-unwindextras ............................. Link options for -unwinder."
echo "-unwindinc=<dir> ...... Specify location of unwinder include directory."
echo "-unwindlib=<dir> ................ Specify location of unwinder library."
echo "-unwind=<dir | download> ... Specify a libunwind directory or download."
echo " Note: 'download' will download and build the library automatically."
echo "-unwind_gcc ............ Specify gcc as the compiler to build libuwind."
echo "-static_libunwind ............ Use libunwind.a instead of libunwind.so."
echo "-zlib=<dir | download> .......... Specify a zlib directory or download."
echo " Note: 'download' will download and build the library automatically."
echo "-cube=<dir> | own.| ext..... Specify location of CUBE or use TAU's jar."
echo "-vtf=<dir> ......... Specify location of VTF3 Trace Generation Package."
echo "-otf=<dir> ....... Specify location of Open Trace Format (OTF) Package."
echo "-otfinc=<dir> ....... Specify location of stand-alone OTF header files."
echo "-otflib=<dir> ...... Specify location of stand-alone OTF library files."
echo "-ebs2otf ............... Enable conversion of EBS traces to OTF format."
echo "-mpi .......................... Specify use of TAU MPI wrapper library."
echo "-mpiinc=<dir> ............. Specify location of MPI include dir and use"
echo " the TAU MPI Profiling and Tracing Interface."
echo "-mpilib=<dir> ............. Specify location of MPI library dir and use"
echo " the TAU MPI Profiling and Tracing Interface."
echo "-mpilibrary=<library> ................ Specify a different MPI library."
echo " e.g., -mpilibrary=-lmpi_r "
echo "-openacc .................................................. Use OpenACC"
echo "-openacclib=<dir> ..... Specify location of the OpenACC library and use"
echo " the TAU OpenACC Profiling and Tracing Interface."
echo "-shmem[=pshmem].............. Specify use of TAU SHMEM wrapper library."
echo "-shmeminc=<dir> ......... Specify location of SHMEM include dir and use"
echo " the TAU SHMEM Profiling and Tracing Interface."
echo "-shmemlib=<dir> ......... Specify location of SHMEM library dir and use"
echo " the TAU MPI Profiling and Tracing Interface."
echo "-shmemlibrary=<library> ............ Specify a different SHMEM library."
echo " e.g., -shmemlibrary=-lsmac "
echo "-shmemmpiinc=<dir> ... Specify location of SHMEM MPI include directory."
echo "-nocomm ........ Disable tracking communication events in MPI library."
echo "-cuda=<dir> ................ Specify location of the top level CUDA SDK"
echo "directory with include subdirectory. Enables OpenCL and CUDA profiling."
echo "-cudalibrary=<dir> ................ Additional options or library "
echo " locations to add when linking to the cuda driver libraries."
echo "-opencl=<dir> ............ Specify location of the top level OpenCL SDK"
echo " Note: This option is needed when used with -cuda=<dir> option."
echo "-rocm[=<dir>] ..... Specify alternate path to ROCm (/opt/rocm default)."
echo "-rocprofiler=<dir> .............. Specify location of ROCm rocprofiler."
echo "-rocprofv2 .......................................... Enable rocprofv2."
echo "-rocprofv3 .......................................... Enable rocprofv3."
echo "-rocmsmi=<dir> ..................... Specify location of RoCm rocm_smi."
echo "-rocm-core=<dir> ...... Specify location of ROCm Core to detect rocmv6."
#echo "-rocprofilerinc=<dir> .... Specify location of rocprofiler include dir."
#echo "-rocprofilerlibrary=<library> .... Specify name of rocprofiler library."
echo "-roctracer=<dir> .................. Specify location of ROCm roctracer."
echo "-rocm-core=<dir> ....... Specify location of ROCm Core to detect rocmv6"
echo "-hip=<dir> .................... Specify location of ROCm HIP directory."
echo "-level_zero[=<dir>] ................ Specify path to Intel Level Zero."
echo "-level_metrics[=<dir>] .. Specify path to Level Zero Metrics Discovery."
echo "-hpctoolkit-src-dir=<dir> .......... Specify patched HPCToolkit source."
echo "-hpctoolkit-install-dir=<dir> . Specify patched HPCToolkit Install dir."
echo "-scalasca=<dir> ................ Specify location of SCALASCA package."
echo "-epilog=<dir> ............ Specify location of EPILOG Tracing package."
echo "-epiloglib=<dir> ........... Specify full path to EPILOG lib directory."
echo "-epilogbin=<dir> ........... Specify full path to EPILOG bin directory."
echo "-epiloginc=<dir> ....... Specify full path to EPILOG include directory."
echo "-vampirtrace=<dir> .. Specify location of VampirTrace Tracing package."
# echo "-mon-mpi ..... Specify MPI as TAU monitoring transport layer. "
# echo "-mon-mrnet=<dir> .. Specify location to MRNet package as TAU monitoring"
# echo " transport layer (ToM). "
# echo "-mon-mrnet-lib=<dir> ............... Specify full path to MRNet library"
# echo " installation. "
# echo "-mon-mrnet-use-lightweight ..... Instructs ToM to use MRNet lightweight"
# echo " interface. "
echo "-scorep=<dir> .................... Specify location of SCOREP package."
echo "-upcnetwork=<value> .. Specify network (mpi, udp,...) for Berkeley UPC."
echo "-gasnet=<dir> ............ Specify location of GASNET for UPC wrapper."
echo "-python .. Automatically choose python options based on Python in path."
echo "-python=<interp> .... Choose Python options based on named interpreter."
echo "-python3 Automatically choose python options based on Python3 in path."
echo "-pythoninc=<dir> ........ Specify location of Python include directory."
echo "-pythonlib=<dir> ............ Specify location of Python lib directory."
echo "-pythonlibrary=<library> ......... Specify name of Python library file."
echo "-starpu[=<dir>] ................................ Enable StarPU support."
echo "-phiprof ................................... Activate Phiprof bindings."
echo "-llvm_cc Compiler to build TAU LLVM selective instrumentation plugin."
echo "-llvm_src=<dir> ......................... Path to the LLVM source tree "
echo " (necessary for the instrumentation plugin)"
echo "-llvm_cxx=<dir.................. Compiler that was used to compile LLVM"
echo " (necessary for the instrumentation plugin)"
echo "-tag=<unique name> ........ Specify a tag to identify the installation."
echo "-perfinc=<dir> ............. Specify a Perflib[LANL] include directory."