-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add performance testing framework #20
Changes from all commits
b4b3b4e
226958f
3d10ebe
ca30c09
60a6863
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED. | ||
# | ||
# $COPYRIGHT$ | ||
# $HEADER$ | ||
# | ||
|
||
|
||
# | ||
# Enable compiling tests with MPI | ||
# | ||
AS_IF([test -n "$MPI_HOME"], [with_ompi="$MPI_HOME"]) | ||
AC_ARG_WITH([mpi], | ||
[AS_HELP_STRING([--with-mpi@<:@=MPIHOME@:>@], [Compile MPI tests (default is NO).])], | ||
[], | ||
[with_mpi=no]) | ||
|
||
# | ||
# Search for mpicc and mpirun in the given path. | ||
# | ||
mpirun_path="" | ||
mpicc_path="" | ||
AS_IF([test "x$with_mpi" != xno], | ||
[AS_IF([test "x$with_mpi" == xyes], | ||
[AC_PATH_PROGS([mpicc_path], [mpicc]) | ||
AC_PATH_PROGS([mpirun_path], [mpirun])], | ||
[AC_PATH_PROGS([mpicc_path], [mpicc], [], [$with_mpi/bin]) | ||
AC_PATH_PROGS([mpirun_path], [mpirun], [], [$with_mpi/bin])]) | ||
AS_IF([! test -z $mpicc_path], | ||
[AC_DEFINE(HAVE_MPI, [1], "MPI compilation support") | ||
AC_SUBST([MPICC], [$mpicc_path])], | ||
[AC_MSG_ERROR(MPI support requsted but mpicc was not found)]) | ||
AS_IF([! test -z $mpirun_path], | ||
[AC_SUBST([MPIRUN], [$mpirun_path])], | ||
[AC_MSG_ERROR(MPI support requsted but mpirun was not found)]) | ||
]) | ||
|
||
AM_CONDITIONAL([HAVE_MPI], [! test -z $mpicc_path]) | ||
AM_CONDITIONAL([HAVE_MPIRUN], [! test -z $mpirun_path]) | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ if [ -z "$BUILD_NUMBER" ]; then | |
echo Running interactive | ||
WORKSPACE=$PWD | ||
BUILD_NUMBER=1 | ||
JOB_URL=$WORKSPACE | ||
JOB_URL=file://$WORKSPACE | ||
else | ||
echo Running under jenkins | ||
JOB_URL=$JOB_URL/ws | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. JOB_URL is set by Jenkins |
||
fi | ||
|
||
rpm_topdir=$WORKSPACE/rpm-dist | ||
|
@@ -20,11 +21,15 @@ echo Starting on host: $(hostname) | |
echo "Autogen" | ||
./autogen.sh | ||
|
||
echo "Making a directory for test build" | ||
mkdir -p build-test | ||
cd build-test | ||
|
||
echo "Build release" | ||
./contrib/configure-release && make $make_opt && make $make_opt distcheck | ||
../contrib/configure-release && make $make_opt && make $make_opt distcheck | ||
|
||
echo "Build gtest " | ||
make clean && ./contrib/configure-devel && make $make_opt | ||
make clean && ../contrib/configure-devel && make $make_opt | ||
|
||
echo "Starting gtest" | ||
|
||
|
@@ -46,7 +51,7 @@ nerrors=$(cov-analyze --dir $cov_build |grep "Defect occurrences found" | awk '{ | |
cov-format-errors --dir $cov_build | ||
rc=$(($rc+$nerrors)) | ||
|
||
cov_url="$JOB_URL/ws/$cov_build_id/c/output/errors/index.html" | ||
cov_url="$JOB_URL/$cov_build_id/c/output/errors/index.html" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not good to modify r/o variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok |
||
rm -f jenkins_sidelinks.txt | ||
echo 1..1 > coverity.tap | ||
if [ $nerrors -gt 0 ]; then | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED. | ||
* | ||
* $COPYRIGHT$ | ||
* $HEADER$ | ||
*/ | ||
|
||
#include <ucs/sys/compiler.h> | ||
#include <ucs/debug/debug.h> | ||
#include <ucs/debug/instrument.h> | ||
#include <ucs/debug/log.h> | ||
#include <ucs/debug/memtrack.h> | ||
#include <ucs/stats/stats.h> | ||
|
||
static void UCS_F_CTOR ucs_init() | ||
{ | ||
ucs_log_early_init(); /* Must be called before all others */ | ||
ucs_global_opts_init(); | ||
ucs_log_init(); | ||
ucs_stats_init(); | ||
ucs_memtrack_init(); | ||
ucs_debug_init(); | ||
ucs_instrument_init(); | ||
} | ||
|
||
static void UCS_F_DTOR ucs_cleanup(void) | ||
{ | ||
ucs_instrument_cleanup(); | ||
ucs_debug_cleanup(); | ||
ucs_memtrack_cleanup(); | ||
ucs_stats_cleanup(); | ||
ucs_log_cleanup(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you already support OOB over sockets, why do you want to create this MPI dependency in the high level API ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's just for tests (separate binary), and with MPI i can launch multiple processes and test stuff like all2all