1
1
openmpi/contrib/platform/mellanox/optimized
Mike Dubman cdffe4f92d BUILD: update mellanox platform file
add support for UCX
2015-10-21 11:39:30 +03:00

76 строки
1.7 KiB
Plaintext

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