File: optimized

package info (click to toggle)
openmpi 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 99,912 kB
  • ctags: 55,589
  • sloc: ansic: 525,999; f90: 18,307; makefile: 12,062; sh: 6,583; java: 6,278; asm: 3,515; cpp: 2,227; perl: 2,136; python: 1,350; lex: 734; fortran: 52; tcl: 12
file content (75 lines) | stat: -rw-r--r-- 1,777 bytes parent folder | download | duplicates (2)
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
enable_mca_no_build=coll-ml
enable_debug_symbols=yes
enable_orterun_prefix_by_default=yes
with_verbs=yes
with_devel_headers=yes
enable_oshmem=yes
enable_oshmem_fortran=yes
disable_wrapper_rpath=yes

mellanox_autodetect=${mellanox_autodetect:="no"}
mellanox_debug=${mellanox_debug:="no"}
mellanox_threads=${mellanox_threads:="no"}

if [ "$mellanox_threads" == "yes" ]; then
    enable_mpi_thread_multiple=yes
    enable_opal_multi_threads=yes
fi

if [ "$mellanox_autodetect" == "yes" ]; then

    ucx_dir=${ucx_dir:="$(pkg-config --variable=prefix ucx)"}
    if [ -d $ucx_dir ]; then
        with_ucx=$ucx_dir
    fi

    mxm_dir=${mxm_dir:="$(pkg-config --variable=prefix mxm)"}
    if [ -d $mxm_dir ]; then
        with_mxm=$mxm_dir
    fi

    fca_dir=${fca_dir:="$(pkg-config --variable=prefix fca)"}
    if [ -d $fca_dir ]; then
        with_fca=$fca_dir
    fi

    hcoll_dir=${hcoll_dir:="$(pkg-config --variable=prefix hcoll)"}
    if [ -d $hcoll_dir ]; then
        with_hcoll=$hcoll_dir
    fi

    knem_dir=${knem_dir:="$(pkg-config --variable=prefix knem)"}
    if [ -d $knem_dir ]; then
        with_knem=$knem_dir
    fi

    slurm_dir=${slurm_dir:="/usr"}
    if [ -f $slurm_dir/include/slurm/slurm.h ]; then
        with_slurm=$slurm_dir
        with_pmi=$slurm_dir
    fi

fi

if [ "$mellanox_debug" == "yes" ]; then
    enable_debug=yes
    enable_memchecker=yes
    with_valgrind=yes
    CXXFLAGS="-O0 -g"
    CCASFLAGS="-O0 -g"
    FCFLAGS="-O0 -g"
    CFLAGS="-O0 -g"
else
    enable_debug=no
    enable_mem_debug=no
    enable_mem_profile=no
    enable_memchecker=no
    enable_picky=no
    enable_heterogeneous=no
    enable_ft_thread=no
    with_mpi_param_check=no
    CXXFLAGS="-O3 -g"
    CCASFLAGS="-O3 -g"
    FCFLAGS="-O3 -g"
    CFLAGS="-O3 -g"
fi