File: optimized

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (58 lines) | stat: -rw-r--r-- 1,364 bytes parent folder | download | duplicates (4)
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
enable_mca_no_build=coll-ml,btl-uct
enable_debug_symbols=yes
enable_mpirun_prefix_by_default=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

    hcoll_dir=${hcoll_dir:="$(pkg-config --variable=prefix hcoll)"}
    if [ -d $hcoll_dir ]; then
        with_hcoll=$hcoll_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
    with_mpi_param_check=no
    CXXFLAGS="-O3 -g"
    CCASFLAGS="-O3 -g"
    FCFLAGS="-O3 -g"
    CFLAGS="-O3 -g"
fi