Changeset 2178


Ignore:
Timestamp:
Oct 30, 2011 2:52:58 AM (9 years ago)
Author:
bradbell
Message:

merge in multi-threading reorganization and extension of speed tests

Location:
trunk
Files:
8 deleted
70 edited
38 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/AUTHORS

    r2120 r2178  
    22             ===========================================
    33
    4 To date, 2011-10-16, Bradley M. Bell is the sole author of CppAD.
     4To date, 2011-10-29, Bradley M. Bell is the sole author of CppAD.
    55While Bradley M. Bell worked for the University of Washington during
    66the development of CppAD, the following are also true:
  • trunk/README

    r1784 r2178  
    2121===========    ===========
    2222bin            Helper shell and sed scripts used for CppAD development.
     23bug            Directory containing demonstration of known bugs (may be empty)
    2324cppad          CppAD include directory (will be copied to prefix/include)
    2425cppad_ipopt    The CppAD interface to the Ipopt optimizer.
     
    2627example        Most all the CppAD example files are here.
    2728introduction   Contains an introduction to Algorithmic Differentiation.
     29multi_thread   Multi-threading examples and tests.
    2830omh            Files for user documentation only (in OMhelp input format).
    29 openmp         OpenMp support files.
    3031pkgconfig      pkg-config support files.
    3132print_for      Example printing during forward mode, pkg-config support files.
    3233speed          Speed comparison tests for CppAD and other AD packages.
    33 speed_cppad    Old (no longer used) CppAD speed tests.
    3434test_more      Extra tests that are not intended as examples.
    3535uw_copy*.html  UW policy on intellectual property.
  • trunk/bin/check_example.sh

    r2082 r2178  
    2020echo "-------------------------------------------------------"
    2121file_list="
    22         example/*.cpp
    23         example/*.hpp
    24         cppad_ipopt/*/*.cpp
    25         cppad_ipopt/*/*.hpp
    26         openmp/*.cpp
     22        example/*.[ch]pp
     23        cppad_ipopt/*/*.[ch]pp
     24        multi_thread/*.[ch]pp
     25        multi_thread/*/*.[ch]pp
    2726"
    2827sed < omh/example_list.omh > bin/check_example.$$ \
  • trunk/bin/check_include_omh.sh

    r2099 r2178  
    2424       \( -name '*.hpp' \) -or \
    2525       \( -name '*.omh' \) -or \
    26        \( -name '*.am' \) |
    27         sed -e '/.\/work\//d' -e 's|./||' > bin/check_include_omh.1.$$
     26       \( -name '*.am' \) | \
     27        sed -e '/.\/work\//d' -e '/.\/new\//d' -e '/.\/doc\//d' -e 's|./||' \
     28                > bin/check_include_omh.1.$$
    2829list="
    2930        cpl1.0.txt
  • trunk/bin/check_makefile.sh

    r2082 r2178  
    5555do
    5656        case $file in
    57                 ( makefile.am | openmp/makefile.am | work/* | svn_dist/* )
     57                ( makefile.am | work/* | svn_dist/* )
     58                ;;
     59
     60                (multi_thread/*/makefile.am)
    5861                ;;
    5962
  • trunk/bin/svn_merge.sh

    r2082 r2178  
    3030#
    3131# Name of the directory where the changes have been committed
    32 from_branch=branches/pthread
     32from_branch=branches/thread
    3333#
    3434# Version of the repository corresponding to from_branch just before changes
    35 Start=2060
     35Start=2124
    3636#
    3737# Version of the repository corresponding to from_branch after the changes
    38 End=2081
     38End=2177
    3939#
    4040# the svn merge command
  • trunk/configure

    r2120 r2178  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.68 for CppAD 20111016.
     3# Generated by GNU Autoconf 2.68 for CppAD 20111029.
    44#
    55# Report bugs to <cppad@list.coin-or.org>.
     
    561561PACKAGE_NAME='CppAD'
    562562PACKAGE_TARNAME='cppad'
    563 PACKAGE_VERSION='20111016'
    564 PACKAGE_STRING='CppAD 20111016'
     563PACKAGE_VERSION='20111029'
     564PACKAGE_STRING='CppAD 20111029'
    565565PACKAGE_BUGREPORT='cppad@list.coin-or.org'
    566566PACKAGE_URL=''
     
    13341334  # This message is too long to be a string in the A/UX 3.1 sh.
    13351335  cat <<_ACEOF
    1336 \`configure' configures CppAD 20111016 to adapt to many kinds of systems.
     1336\`configure' configures CppAD 20111029 to adapt to many kinds of systems.
    13371337
    13381338Usage: $0 [OPTION]... [VAR=VALUE]...
     
    14001400if test -n "$ac_init_help"; then
    14011401  case $ac_init_help in
    1402      short | recursive ) echo "Configuration of CppAD 20111016:";;
     1402     short | recursive ) echo "Configuration of CppAD 20111029:";;
    14031403   esac
    14041404  cat <<\_ACEOF
     
    15171517if $ac_init_version; then
    15181518  cat <<\_ACEOF
    1519 CppAD configure 20111016
     1519CppAD configure 20111029
    15201520generated by GNU Autoconf 2.68
    15211521
     
    21412141running configure, to aid debugging if configure makes a mistake.
    21422142
    2143 It was created by CppAD $as_me 20111016, which was
     2143It was created by CppAD $as_me 20111029, which was
    21442144generated by GNU Autoconf 2.68.  Invocation command line was
    21452145
     
    47844784# Define the identity of the package.
    47854785 PACKAGE='cppad'
    4786  VERSION='20111016'
     4786 VERSION='20111029'
    47874787
    47884788
     
    64696469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cppad_ipopt_nlp libraries: $CPPAD_IPOPT_LIBS" >&5
    64706470$as_echo "cppad_ipopt_nlp libraries: $CPPAD_IPOPT_LIBS" >&6; }
    6471 ac_config_files="$ac_config_files cppad/configure.hpp doxyfile doc.omh example/test_one.sh omh/install_unix.omh omh/install_windows.omh pkgconfig/cppad.pc pkgconfig/cppad-uninstalled.pc test_more/test_one.sh makefile example/makefile cppad_ipopt/src/makefile cppad_ipopt/example/makefile cppad_ipopt/speed/makefile cppad_ipopt/test/makefile introduction/get_started/makefile introduction/exp_apx/makefile openmp/makefile print_for/makefile speed/adolc/makefile speed/cppad/makefile speed/double/makefile speed/example/makefile speed/fadbad/makefile speed/profile/makefile speed/profile/gprof.sed speed/sacado/makefile speed/src/makefile test_more/makefile"
     6471ac_config_files="$ac_config_files cppad/configure.hpp doxyfile doc.omh example/test_one.sh omh/install_unix.omh omh/install_windows.omh pkgconfig/cppad.pc pkgconfig/cppad-uninstalled.pc test_more/test_one.sh makefile example/makefile cppad_ipopt/src/makefile cppad_ipopt/example/makefile cppad_ipopt/speed/makefile cppad_ipopt/test/makefile introduction/get_started/makefile introduction/exp_apx/makefile multi_thread/bthread/makefile multi_thread/openmp/makefile multi_thread/pthread/makefile print_for/makefile speed/adolc/makefile speed/cppad/makefile speed/double/makefile speed/example/makefile speed/fadbad/makefile speed/profile/makefile speed/profile/gprof.sed speed/sacado/makefile speed/src/makefile test_more/makefile"
    64726472
    64736473ac_config_commands="$ac_config_commands default-1"
     
    71077107# values after options handling.
    71087108ac_log="
    7109 This file was extended by CppAD $as_me 20111016, which was
     7109This file was extended by CppAD $as_me 20111029, which was
    71107110generated by GNU Autoconf 2.68.  Invocation command line was
    71117111
     
    71647164ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    71657165ac_cs_version="\\
    7166 CppAD config.status 20111016
     7166CppAD config.status 20111029
    71677167configured by $0, generated by GNU Autoconf 2.68,
    71687168  with options \\"\$ac_cs_config\\"
     
    73027302    "introduction/get_started/makefile") CONFIG_FILES="$CONFIG_FILES introduction/get_started/makefile" ;;
    73037303    "introduction/exp_apx/makefile") CONFIG_FILES="$CONFIG_FILES introduction/exp_apx/makefile" ;;
    7304     "openmp/makefile") CONFIG_FILES="$CONFIG_FILES openmp/makefile" ;;
     7304    "multi_thread/bthread/makefile") CONFIG_FILES="$CONFIG_FILES multi_thread/bthread/makefile" ;;
     7305    "multi_thread/openmp/makefile") CONFIG_FILES="$CONFIG_FILES multi_thread/openmp/makefile" ;;
     7306    "multi_thread/pthread/makefile") CONFIG_FILES="$CONFIG_FILES multi_thread/pthread/makefile" ;;
    73057307    "print_for/makefile") CONFIG_FILES="$CONFIG_FILES print_for/makefile" ;;
    73067308    "speed/adolc/makefile") CONFIG_FILES="$CONFIG_FILES speed/adolc/makefile" ;;
  • trunk/configure.ac

    r2120 r2178  
    1313dnl Process this file with autoconf to produce a configure script.
    1414dnl   package   version              bug-report
    15 AC_INIT(CppAD, 20111016, cppad@list.coin-or.org)
     15AC_INIT(CppAD, 20111029, cppad@list.coin-or.org)
    1616AC_SUBST(PACKAGE_URL, "http://www.coin-or.org/CppAD")
    1717AC_SUBST(PACKAGE_DESCRIPTION, "Differentiation of C++ Algorithms")
     
    479479        introduction/get_started/makefile
    480480        introduction/exp_apx/makefile
    481         openmp/makefile
     481        multi_thread/bthread/makefile
     482        multi_thread/openmp/makefile
     483        multi_thread/pthread/makefile
    482484        print_for/makefile
    483485        speed/adolc/makefile
  • trunk/cppad/configure.hpp

    r2120 r2178  
    4343cppad-yyyymmdd as a C string where yyyy is year, mm is month, and dd is day.
    4444*/
    45 # define CPPAD_PACKAGE_STRING "cppad-20111016"
     45# define CPPAD_PACKAGE_STRING "cppad-20111029"
    4646
    4747/*!
  • trunk/cppad/local/ad_fun.hpp

    r2091 r2178  
    7373template <class Base>
    7474class ADFun {
    75 public:
    7675// ------------------------------------------------------------
    7776// Private member variables
  • trunk/cppad/local/parallel_ad.hpp

    r2085 r2178  
    5050
    5151$head Example$$
    52 The files $cref openmp_ad.cpp$$ and $cref pthread_ad.cpp$$
    53 contain examples and tests that use this function.   
     52The files
     53$cref openmp_team.cpp$$,
     54$cref bthread_team.cpp$$, and
     55$cref pthread_team.cpp$$,
     56contain examples and tests that implement this function.   
    5457
    5558$end
  • trunk/cppad/local/prototype_op.hpp

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/cppad/local/sparse_pack.hpp

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/cppad/local/sparse_set.hpp

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/cppad/local/sparse_unary_op.hpp

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/cppad/thread_alloc.hpp

    r2096 r2178  
    437437
    438438$head Example$$
    439 The routine $cref openmp_ad.cpp$$
    440 is an example, that uses this routine.
     439The files
     440$cref openmp_team.cpp$$,
     441$cref bthread_team.cpp$$, and
     442$cref pthread_team.cpp$$,
     443contain examples and tests that use this function.   
    441444
    442445$end
  • trunk/cppad_ipopt/example/get_started.cpp

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/cppad_ipopt/example/makefile.am

    r1986 r2178  
    6262        echo "./example"     >> test.sh
    6363        chmod +x test.sh
     64
     65test: test.sh
     66        ./test.sh
  • trunk/cppad_ipopt/example/makefile.in

    r2096 r2178  
    516516        chmod +x test.sh
    517517
     518test: test.sh
     519        ./test.sh
     520
    518521# Tell versions [3.59,3.63) of GNU make to not export all variables.
    519522# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/cppad_ipopt/example/ode_check.cpp

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/cppad_ipopt/speed/makefile.am

    r1986 r2178  
    6161        echo "./speed"       >> test.sh
    6262        chmod +x test.sh
     63
     64test: test.sh
     65        ./test.sh
  • trunk/cppad_ipopt/speed/makefile.in

    r2096 r2178  
    587587        chmod +x test.sh
    588588
     589test: test.sh
     590        ./test.sh
     591
    589592# Tell versions [3.59,3.63) of GNU make to not export all variables.
    590593# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/cppad_ipopt/test/makefile.am

    r1986 r2178  
    5151        echo "./test_more"   >> test.sh
    5252        chmod +x test.sh
     53
     54test: test.sh
     55        ./test.sh
  • trunk/cppad_ipopt/test/makefile.in

    r2096 r2178  
    500500        chmod +x test.sh
    501501
     502test: test.sh
     503        ./test.sh
     504
    502505# Tell versions [3.59,3.63) of GNU make to not export all variables.
    503506# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/example/example.cpp

    r2096 r2178  
    2727$codei%
    2828        cd example
    29         make test.sh
    30         ./test.sh
     29        make test
    3130%$$
    3231There are a lot of tests, so this may take a while to compile.
     
    6665extern bool BenderQuad(void);
    6766extern bool BoolFun(void);
    68 extern bool bthread_a11c(void);
    69 extern bool bthread_ad(void);
    7067extern bool vectorBool(void);
    7168extern bool CheckNumericType(void);
     
    135132extern bool ode_taylor_adolc(void);
    136133extern bool omp_alloc(void);
    137 extern bool openmp_a11c(void);
    138 extern bool openmp_ad(void);
    139134extern bool opt_val_hes(void);
    140135extern bool optimize(void);
     
    145140extern bool pow_int(void);
    146141extern bool print_for(void);
    147 extern bool pthread_a11c(void);
    148 extern bool pthread_ad(void);
    149142extern bool reverse_any(void);
    150143extern bool reverse_one(void);
     
    334327        ok &= Run( ode_taylor_adolc,  "ode_taylor_adolc" );
    335328# endif
    336 # ifdef CPPAD_BTHREAD_EXAMPLES
    337         ok &= Run( bthread_a11c,      "bthread_a11c"     );
    338         ok &= Run( bthread_ad,        "bthread_ad"       );
    339 # endif
    340 # ifdef CPPAD_OPENMP_EXAMPLES
    341         ok &= Run( openmp_a11c,       "openmp_a11c"      );
    342         ok &= Run( openmp_ad,         "openmp_ad"        );
    343 # endif
    344 # ifdef CPPAD_PTHREAD_EXAMPLES
    345         ok &= Run( pthread_a11c,      "pthread_a11c"     );
    346         ok &= Run( pthread_ad,        "pthread_ad"     );
    347 # endif
    348        
    349329
    350330        // check for errors
  • trunk/example/makefile.am

    r2096 r2178  
    3131endif
    3232#
    33 if CppAD_BTHREAD
    34 BTHREAD_SRC_FILES   = bthread_a11c.cpp  bthread_ad.cpp
    35 BTHREAD_EXTRA_FILES =
    36 BTHREAD_FLAGS       = -DCPPAD_BTHREAD_EXAMPLES
    37 else
    38 BTHREAD_SRC_FILES   =
    39 BTHREAD_EXTRA_FILES = bthread_a11c.cpp  bthread_ad.cpp
    40 BTHREAD_FLAGS       =
    41 endif
    42 #
    43 if CppAD_OPENMP
    44 OPENMP_SRC_FILES   = openmp_a11c.cpp openmp_ad.cpp
    45 OPENMP_EXTRA_FILES =
    46 OMP_FLAGS          = -DCPPAD_OPENMP_EXAMPLES $(OPENMP_FLAGS)
    47 else
    48 OPENMP_SRC_FILES   =
    49 OPENMP_EXTRA_FILES = openmp_a11c.cpp openmp_ad.cpp
    50 OMP_FLAGS          =
    51 endif
    52 #
    53 if CppAD_PTHREAD
    54 PTHREAD_SRC_FILES   = pthread_a11c.cpp  pthread_ad.cpp
    55 PTHREAD_EXTRA_FILES =
    56 PTHREAD_FLAGS       = -DCPPAD_PTHREAD_EXAMPLES
    57 else
    58 PTHREAD_SRC_FILES   =
    59 PTHREAD_EXTRA_FILES = pthread_a11c.cpp pthread_ad.cpp
    60 PTHREAD_FLAGS       =
    61 endif
    62 #
    6333if CppAD_BOOSTVECTOR
    6434BOOST_INCLUDE = -I$(BOOST_DIR)
     
    6939# Microsoft project files an script to run a single test
    7040EXTRA_DIST        = example.sln example.vcproj test_one.sh.in \
    71         $(ADOLC_EXTRA_FILES) \
    72         $(BTHREAD_EXTRA_FILES) \
    73         $(OPENMP_EXTRA_FILES) \
    74         $(PTHREAD_EXTRA_FILES)
     41        $(ADOLC_EXTRA_FILES)
    7542#
    7643check_PROGRAMS    = example
    7744#
    7845if CppAD_MS_COMPILER
    79 AM_CXXFLAGS       = -EHsc -g \
    80         $(ADOLC_FLAGS) \
    81         $(BTHREAD_FLAGS) \
    82         $(OMP_FLAGS) \
    83         $(PTHREAD_FLAGS) \
    84         $(CXX_FLAGS)
     46AM_CXXFLAGS       = -EHsc -g $(ADOLC_FLAGS)
    8547else
    86 AM_CXXFLAGS       = -g \
    87         $(ADOLC_FLAGS) \
    88         $(BTHREAD_FLAGS) \
    89         $(OMP_FLAGS) \
    90         $(PTHREAD_FLAGS) \
    91         $(CXX_FLAGS)
     48AM_CXXFLAGS       = -g $(ADOLC_FLAGS)
    9249endif
    9350#
     
    9653                    $(BOOST_INCLUDE) \
    9754                    $(ADOLC_INCLUDE)
    98                    
    9955#
    100 LDADD             = \
    101         $(ADOLC_LIB) \
    102         $(BTHREAD_LIB)
    103         $(PTHREAD_LIB)
     56LDADD             =  $(ADOLC_LIB)  $(BTHREAD_LIB) $(PTHREAD_LIB)
    10457AM_LDFLAGS        = $(ADOLC_LIB_DIRS)
    10558#
     
    238191        echo "./example "    >> test.sh
    239192        chmod +x test.sh
     193
     194test: test.sh
     195        ./test.sh
  • trunk/example/makefile.in

    r2096 r2178  
    4444CONFIG_CLEAN_VPATH_FILES =
    4545am__example_SOURCES_DIST = mul_level_adolc.cpp ode_taylor_adolc.cpp \
    46         bthread_a11c.cpp bthread_ad.cpp openmp_a11c.cpp openmp_ad.cpp \
    47         pthread_a11c.cpp pthread_ad.cpp example.cpp \
    48         abort_recording.cpp abs.cpp acos.cpp add.cpp add_eq.cpp \
    49         ad_fun.cpp ad_in_c.cpp asin.cpp atan.cpp atan_2.cpp \
     46        example.cpp abort_recording.cpp abs.cpp acos.cpp add.cpp \
     47        add_eq.cpp ad_fun.cpp ad_in_c.cpp asin.cpp atan.cpp atan_2.cpp \
    5048        base_adolc.hpp bender_quad.cpp bool_fun.cpp vector_bool.cpp \
    5149        check_numeric_type.cpp check_simple_vector.cpp checkpoint.cpp \
     
    7977@CppAD_ADOLC_TRUE@am__objects_1 = mul_level_adolc.$(OBJEXT) \
    8078@CppAD_ADOLC_TRUE@      ode_taylor_adolc.$(OBJEXT)
    81 @CppAD_BTHREAD_TRUE@am__objects_2 = bthread_a11c.$(OBJEXT) \
    82 @CppAD_BTHREAD_TRUE@    bthread_ad.$(OBJEXT)
    83 @CppAD_OPENMP_TRUE@am__objects_3 = openmp_a11c.$(OBJEXT) \
    84 @CppAD_OPENMP_TRUE@     openmp_ad.$(OBJEXT)
    85 @CppAD_PTHREAD_TRUE@am__objects_4 = pthread_a11c.$(OBJEXT) \
    86 @CppAD_PTHREAD_TRUE@    pthread_ad.$(OBJEXT)
    87 am_example_OBJECTS = $(am__objects_1) $(am__objects_2) \
    88         $(am__objects_3) $(am__objects_4) example.$(OBJEXT) \
     79am_example_OBJECTS = $(am__objects_1) example.$(OBJEXT) \
    8980        abort_recording.$(OBJEXT) abs.$(OBJEXT) acos.$(OBJEXT) \
    9081        add.$(OBJEXT) add_eq.$(OBJEXT) ad_fun.$(OBJEXT) \
     
    137128example_LDADD = $(LDADD)
    138129am__DEPENDENCIES_1 =
    139 example_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
     130example_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
     131        $(am__DEPENDENCIES_1)
    140132DEFAULT_INCLUDES =
    141133depcomp = $(SHELL) $(top_srcdir)/depcomp
     
    306298@CppAD_ADOLC_FALSE@ADOLC_FLAGS =
    307299@CppAD_ADOLC_TRUE@ADOLC_FLAGS = -DCPPAD_ADOLC_EXAMPLES
    308 @CppAD_BTHREAD_FALSE@BTHREAD_SRC_FILES =
    309 #
    310 @CppAD_BTHREAD_TRUE@BTHREAD_SRC_FILES = bthread_a11c.cpp  bthread_ad.cpp
    311 @CppAD_BTHREAD_FALSE@BTHREAD_EXTRA_FILES = bthread_a11c.cpp  bthread_ad.cpp
    312 @CppAD_BTHREAD_TRUE@BTHREAD_EXTRA_FILES =
    313 @CppAD_BTHREAD_FALSE@BTHREAD_FLAGS =
    314 @CppAD_BTHREAD_TRUE@BTHREAD_FLAGS = -DCPPAD_BTHREAD_EXAMPLES
    315 @CppAD_OPENMP_FALSE@OPENMP_SRC_FILES =
    316 #
    317 @CppAD_OPENMP_TRUE@OPENMP_SRC_FILES = openmp_a11c.cpp openmp_ad.cpp
    318 @CppAD_OPENMP_FALSE@OPENMP_EXTRA_FILES = openmp_a11c.cpp openmp_ad.cpp
    319 @CppAD_OPENMP_TRUE@OPENMP_EXTRA_FILES =
    320 @CppAD_OPENMP_FALSE@OMP_FLAGS =
    321 @CppAD_OPENMP_TRUE@OMP_FLAGS = -DCPPAD_OPENMP_EXAMPLES $(OPENMP_FLAGS)
    322 @CppAD_PTHREAD_FALSE@PTHREAD_SRC_FILES =
    323 #
    324 @CppAD_PTHREAD_TRUE@PTHREAD_SRC_FILES = pthread_a11c.cpp  pthread_ad.cpp
    325 @CppAD_PTHREAD_FALSE@PTHREAD_EXTRA_FILES = pthread_a11c.cpp pthread_ad.cpp
    326 @CppAD_PTHREAD_TRUE@PTHREAD_EXTRA_FILES =
    327 @CppAD_PTHREAD_FALSE@PTHREAD_FLAGS =
    328 @CppAD_PTHREAD_TRUE@PTHREAD_FLAGS = -DCPPAD_PTHREAD_EXAMPLES
    329300@CppAD_BOOSTVECTOR_FALSE@BOOST_INCLUDE =
    330301#
     
    333304# Microsoft project files an script to run a single test
    334305EXTRA_DIST = example.sln example.vcproj test_one.sh.in \
    335         $(ADOLC_EXTRA_FILES) \
    336         $(BTHREAD_EXTRA_FILES) \
    337         $(OPENMP_EXTRA_FILES) \
    338         $(PTHREAD_EXTRA_FILES)
    339 
    340 @CppAD_MS_COMPILER_FALSE@AM_CXXFLAGS = -g \
    341 @CppAD_MS_COMPILER_FALSE@       $(ADOLC_FLAGS) \
    342 @CppAD_MS_COMPILER_FALSE@       $(BTHREAD_FLAGS) \
    343 @CppAD_MS_COMPILER_FALSE@       $(OMP_FLAGS) \
    344 @CppAD_MS_COMPILER_FALSE@       $(PTHREAD_FLAGS) \
    345 @CppAD_MS_COMPILER_FALSE@       $(CXX_FLAGS)
    346 
     306        $(ADOLC_EXTRA_FILES)
     307
     308@CppAD_MS_COMPILER_FALSE@AM_CXXFLAGS = -g $(ADOLC_FLAGS)
    347309#
    348 @CppAD_MS_COMPILER_TRUE@AM_CXXFLAGS = -EHsc -g \
    349 @CppAD_MS_COMPILER_TRUE@        $(ADOLC_FLAGS) \
    350 @CppAD_MS_COMPILER_TRUE@        $(BTHREAD_FLAGS) \
    351 @CppAD_MS_COMPILER_TRUE@        $(OMP_FLAGS) \
    352 @CppAD_MS_COMPILER_TRUE@        $(PTHREAD_FLAGS) \
    353 @CppAD_MS_COMPILER_TRUE@        $(CXX_FLAGS)
    354 
     310@CppAD_MS_COMPILER_TRUE@AM_CXXFLAGS = -EHsc -g $(ADOLC_FLAGS)
    355311#
    356312AM_CPPFLAGS = -I. \
     
    359315                    $(ADOLC_INCLUDE)
    360316
    361 
    362317#
    363 LDADD = \
    364         $(ADOLC_LIB) \
    365         $(BTHREAD_LIB)
    366 
     318LDADD = $(ADOLC_LIB)  $(BTHREAD_LIB) $(PTHREAD_LIB)
    367319AM_LDFLAGS = $(ADOLC_LIB_DIRS)
    368320#
     
    558510@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bender_quad.Po@am__quote@
    559511@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bool_fun.Po@am__quote@
    560 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bthread_a11c.Po@am__quote@
    561 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bthread_ad.Po@am__quote@
    562512@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_numeric_type.Po@am__quote@
    563513@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_simple_vector.Po@am__quote@
     
    628578@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ode_taylor_adolc.Po@am__quote@
    629579@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/omp_alloc.Po@am__quote@
    630 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openmp_a11c.Po@am__quote@
    631 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openmp_ad.Po@am__quote@
    632580@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opt_val_hes.Po@am__quote@
    633581@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optimize.Po@am__quote@
     
    638586@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pow_int.Po@am__quote@
    639587@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print_for.Po@am__quote@
    640 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthread_a11c.Po@am__quote@
    641 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthread_ad.Po@am__quote@
    642588@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rev_one.Po@am__quote@
    643589@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rev_sparse_hes.Po@am__quote@
     
    885831        uninstall-am
    886832
    887         $(PTHREAD_LIB)
    888833
    889834test.sh: example$(EXEEXT)
     
    892837        chmod +x test.sh
    893838
     839test: test.sh
     840        ./test.sh
     841
    894842# Tell versions [3.59,3.63) of GNU make to not export all variables.
    895843# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/introduction/exp_apx/main.cpp

    r2014 r2178  
    3131$codei%
    3232        cd introduction/exp_apx
    33         make test.sh
    34         ./test.sh
     33        make test
    3534%$$
    3635
  • trunk/introduction/exp_apx/makefile.am

    r1986 r2178  
    5656        echo "./exp_apx"     >> test.sh
    5757        chmod +x test.sh
     58
     59test: test.sh
     60        ./test.sh
  • trunk/introduction/exp_apx/makefile.in

    r2096 r2178  
    519519        chmod +x test.sh
    520520
     521test: test.sh
     522        ./test.sh
     523
    521524# Tell versions [3.59,3.63) of GNU make to not export all variables.
    522525# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/introduction/get_started/get_started.cpp

    r2014 r2178  
    162162$codei%
    163163        cd introduction/get_started
    164         make test.sh
    165         ./test.sh
     164        make test
    166165%$$
    167166
  • trunk/introduction/get_started/makefile.am

    r1986 r2178  
    3636        echo "./get_started" >> test.sh
    3737        chmod +x test.sh
     38
     39test: test.sh
     40        ./test.sh
  • trunk/introduction/get_started/makefile.in

    r2096 r2178  
    473473        chmod +x test.sh
    474474
     475test: test.sh
     476        ./test.sh
     477
    475478# Tell versions [3.59,3.63) of GNU make to not export all variables.
    476479# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/makefile.am

    r2082 r2178  
    6060endif
    6161#
    62 # Did user specify with OpenMP
     62# Are we building the OpenMP examples and tests
    6363if CppAD_OPENMP
    64 OPENMP_TESTS   = openmp
    65 OPENMP_DIRS    = openmp
     64OPENMP_TESTS   = multi_thread/openmp
     65OPENMP_DIRS    = multi_thread/openmp
    6666else
    6767OPENMP_TESTS   =
    6868OPENMP_DIRS    =
     69endif
     70#
     71# Are we building the boost thread examples and tests
     72if CppAD_BTHREAD
     73BTHREAD_TESTS   = multi_thread/bthread
     74BTHREAD_DIRS    = multi_thread/bthread
     75else
     76BTHREAD_TESTS   =
     77BTHREAD_DIRS    =
     78endif
     79#
     80# Are we building the pthread thread examples and tests
     81if CppAD_PTHREAD
     82PTHREAD_TESTS   = multi_thread/pthread
     83PTHREAD_DIRS    = multi_thread/pthread
     84else
     85PTHREAD_TESTS   =
     86PTHREAD_DIRS    =
    6987endif
    7088#
     
    284302# See 'make test' below for building the tests.
    285303SUBDIRS =  \
     304        $(BTHREAD_DIRS) \
    286305        $(IPOPT_DIRS) \
     306        $(OPENMP_DIRS) \
     307        $(PTHREAD_DIRS) \
     308        $(SPEED_DIRS) \
    287309        example \
    288310        introduction/get_started \
    289311        introduction/exp_apx \
    290         $(OPENMP_DIRS) \
    291312        print_for \
    292         $(SPEED_DIRS) \
    293313        test_more
    294314#
     
    302322        doxyfile.in \
    303323        omh \
    304         openmp/sum_i_inv.cpp \
    305324        uw_copy_040507.html
    306325
    307326test_directory_list = \
     327        $(BTHREAD_TESTS) \
     328        $(IPOPT_TESTS) \
     329        $(OPENMP_TESTS) \
     330        $(PTHREAD_TESTS) \
     331        $(SPEED_TESTS) \
    308332        example \
    309333        introduction/get_started \
    310334        introduction/exp_apx \
    311         $(IPOPT_TESTS) \
    312         $(OPENMP_TESTS) \
    313335        print_for \
    314         $(SPEED_TESTS) \
    315336        test_more
    316337
  • trunk/makefile.in

    r2096 r2178  
    9898ETAGS = etags
    9999CTAGS = ctags
    100 DIST_SUBDIRS = cppad_ipopt/src cppad_ipopt/example cppad_ipopt/speed \
    101         cppad_ipopt/test example introduction/get_started \
    102         introduction/exp_apx openmp print_for speed/src speed/adolc \
     100DIST_SUBDIRS = multi_thread/bthread cppad_ipopt/src \
     101        cppad_ipopt/example cppad_ipopt/speed cppad_ipopt/test \
     102        multi_thread/openmp multi_thread/pthread speed/src speed/adolc \
    103103        speed/cppad speed/double speed/example speed/fadbad \
    104         speed/profile speed/sacado test_more
     104        speed/profile speed/sacado example introduction/get_started \
     105        introduction/exp_apx print_for test_more
    105106DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    106107distdir = $(PACKAGE)-$(VERSION)
     
    312313@CppAD_OPENMP_FALSE@OPENMP_TESTS =
    313314#
    314 # Did user specify with OpenMP
    315 @CppAD_OPENMP_TRUE@OPENMP_TESTS = openmp
     315# Are we building the OpenMP examples and tests
     316@CppAD_OPENMP_TRUE@OPENMP_TESTS = multi_thread/openmp
    316317@CppAD_OPENMP_FALSE@OPENMP_DIRS =
    317 @CppAD_OPENMP_TRUE@OPENMP_DIRS = openmp
     318@CppAD_OPENMP_TRUE@OPENMP_DIRS = multi_thread/openmp
     319@CppAD_BTHREAD_FALSE@BTHREAD_TESTS =
     320#
     321# Are we building the boost thread examples and tests
     322@CppAD_BTHREAD_TRUE@BTHREAD_TESTS = multi_thread/bthread
     323@CppAD_BTHREAD_FALSE@BTHREAD_DIRS =
     324@CppAD_BTHREAD_TRUE@BTHREAD_DIRS = multi_thread/bthread
     325@CppAD_PTHREAD_FALSE@PTHREAD_TESTS =
     326#
     327# Are we building the pthread thread examples and tests
     328@CppAD_PTHREAD_TRUE@PTHREAD_TESTS = multi_thread/pthread
     329@CppAD_PTHREAD_FALSE@PTHREAD_DIRS =
     330@CppAD_PTHREAD_TRUE@PTHREAD_DIRS = multi_thread/pthread
    318331#
    319332# Is the library archiving program present
     
    532545# See 'make test' below for building the tests.
    533546SUBDIRS = \
     547        $(BTHREAD_DIRS) \
    534548        $(IPOPT_DIRS) \
     549        $(OPENMP_DIRS) \
     550        $(PTHREAD_DIRS) \
     551        $(SPEED_DIRS) \
    535552        example \
    536553        introduction/get_started \
    537554        introduction/exp_apx \
    538         $(OPENMP_DIRS) \
    539555        print_for \
    540         $(SPEED_DIRS) \
    541556        test_more
    542557
     
    551566        doxyfile.in \
    552567        omh \
    553         openmp/sum_i_inv.cpp \
    554568        uw_copy_040507.html
    555569
    556570test_directory_list = \
     571        $(BTHREAD_TESTS) \
     572        $(IPOPT_TESTS) \
     573        $(OPENMP_TESTS) \
     574        $(PTHREAD_TESTS) \
     575        $(SPEED_TESTS) \
    557576        example \
    558577        introduction/get_started \
    559578        introduction/exp_apx \
    560         $(IPOPT_TESTS) \
    561         $(OPENMP_TESTS) \
    562579        print_for \
    563         $(SPEED_TESTS) \
    564580        test_more
    565581
  • trunk/multi_thread/arc_tan.cpp

    r2133 r2178  
    6262
    6363$head Example$$
    64 This function is used by the following examples
    65 $cref openmp_simple_ad.cpp$$,
    66 $cref bthread_simple_ad.cpp$$, and
    67 $cref pthread_simple_ad.cpp$$.
     64This function is used by the $cref simple_ad.cpp$$ example.
    6865
    6966$head Source Code$$
     
    7774
    7875# include <cppad/cppad.hpp>
     76# include "arc_tan.hpp"
    7977
    8078// BEGIN PROGRAM
  • trunk/multi_thread/bthread/a11c.cpp

    r2133 r2178  
    6161                {       int i;
    6262                        // for some reason this function is missing on some systems
    63                         // assert( pthread_is_multithreaded_np() > 0 );
     63                        // assert( bthread_is_multithreaded_np() > 0 );
    6464                        for(i = 1; i < n; i++)
    6565                                b[i] = (a[i] + a[i-1]) / 2.0;
  • trunk/multi_thread/bthread/makefile.am

    r2133 r2178  
    1515DEFS          =
    1616#
    17 check_PROGRAMS    = bthread
     17check_PROGRAMS    = multi_thread
    1818#
    1919if CppAD_MS_COMPILER
     
    2929AM_LDFLAGS        = $(BTHREAD_LIB)
    3030#
    31 bthread_SOURCES   = \
    32         bthread.cpp \
     31multi_thread_SOURCES   = \
     32        ../multi_thread.cpp \
    3333\
    34         ../arc_tan.cpp \
    35         ../arc_tan.hpp \
    36         a11c.cpp \
    37         simple_ad.cpp
     34        ../arc_tan.cpp           ../arc_tan.hpp \
     35        ../multi_newton_time.cpp ../multi_newton_time.hpp \
     36        ../multi_newton.cpp      ../multi_newton.hpp \
     37        ../multi_newton_work.cpp ../multi_newton_work.hpp \
     38        ../simple_ad.cpp         ../simple_ad.hpp \
     39        ../sum_i_inv_time.cpp    ../sum_i_inv_time.hpp \
     40        ../sum_i_inv.cpp         ../sum_i_inv.hpp \
     41        ../sum_i_inv_work.cpp    ../sum_i_inv_work.hpp \
     42\
     43        bthread_team.cpp         ../thread_team.hpp \
     44        a11c.cpp
    3845       
    39 test.sh: bthread$(EXEEXT)
     46test.sh: multi_thread$(EXEEXT)
    4047        echo "#! /bin/sh -e"      >  test.sh
    41         echo "./bthread a11c"      >> test.sh
    42         echo "./bthread simple_ad" >> test.sh
     48        echo "./multi_thread a11c"      >> test.sh
     49        echo "./multi_thread simple_ad" >> test.sh
     50        echo "#                 max_threads mega_sum" >> test.sh
     51        echo "./multi_thread sum_i_inv    2        1" >> test.sh
     52        echo "#"                                      >> test.sh
     53        echo "#                 max_threads num_zero num_sub num_sum use_ad" >> test.sh
     54        echo "./multi_thread multi_newton 2       20      30     500   true" >> test.sh
    4355        chmod +x test.sh
    4456
  • trunk/multi_thread/bthread/makefile.in

    r2133 r2178  
    3232PRE_UNINSTALL = :
    3333POST_UNINSTALL = :
    34 check_PROGRAMS = bthread$(EXEEXT)
     34check_PROGRAMS = multi_thread$(EXEEXT)
    3535subdir = multi_thread/bthread
    3636DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in
     
    4242CONFIG_CLEAN_FILES =
    4343CONFIG_CLEAN_VPATH_FILES =
    44 am_bthread_OBJECTS = bthread.$(OBJEXT) arc_tan.$(OBJEXT) \
    45         a11c.$(OBJEXT) simple_ad.$(OBJEXT)
    46 bthread_OBJECTS = $(am_bthread_OBJECTS)
    47 bthread_LDADD = $(LDADD)
     44am_multi_thread_OBJECTS = multi_thread.$(OBJEXT) arc_tan.$(OBJEXT) \
     45        multi_newton_time.$(OBJEXT) multi_newton.$(OBJEXT) \
     46        multi_newton_work.$(OBJEXT) simple_ad.$(OBJEXT) \
     47        sum_i_inv_time.$(OBJEXT) sum_i_inv.$(OBJEXT) \
     48        sum_i_inv_work.$(OBJEXT) bthread_team.$(OBJEXT) a11c.$(OBJEXT)
     49multi_thread_OBJECTS = $(am_multi_thread_OBJECTS)
     50multi_thread_LDADD = $(LDADD)
    4851DEFAULT_INCLUDES =
    4952depcomp = $(SHELL) $(top_srcdir)/depcomp
     
    5962CCLD = $(CC)
    6063LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    61 SOURCES = $(bthread_SOURCES)
    62 DIST_SOURCES = $(bthread_SOURCES)
     64SOURCES = $(multi_thread_SOURCES)
     65DIST_SOURCES = $(multi_thread_SOURCES)
    6366ETAGS = etags
    6467CTAGS = ctags
     
    211214AM_LDFLAGS = $(BTHREAD_LIB)
    212215#
    213 bthread_SOURCES = \
    214         bthread.cpp \
     216multi_thread_SOURCES = \
     217        ../multi_thread.cpp \
    215218\
    216         ../arc_tan.cpp \
    217         ../arc_tan.hpp \
    218         a11c.cpp \
    219         simple_ad.cpp
     219        ../arc_tan.cpp           ../arc_tan.hpp \
     220        ../multi_newton_time.cpp ../multi_newton_time.hpp \
     221        ../multi_newton.cpp      ../multi_newton.hpp \
     222        ../multi_newton_work.cpp ../multi_newton_work.hpp \
     223        ../simple_ad.cpp         ../simple_ad.hpp \
     224        ../sum_i_inv_time.cpp    ../sum_i_inv_time.hpp \
     225        ../sum_i_inv.cpp         ../sum_i_inv.hpp \
     226        ../sum_i_inv_work.cpp    ../sum_i_inv_work.hpp \
     227\
     228        bthread_team.cpp         ../thread_team.hpp \
     229        a11c.cpp
    220230
    221231all: all-am
     
    256266clean-checkPROGRAMS:
    257267        -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
    258 bthread$(EXEEXT): $(bthread_OBJECTS) $(bthread_DEPENDENCIES)
    259         @rm -f bthread$(EXEEXT)
    260         $(CXXLINK) $(bthread_OBJECTS) $(bthread_LDADD) $(LIBS)
     268multi_thread$(EXEEXT): $(multi_thread_OBJECTS) $(multi_thread_DEPENDENCIES)
     269        @rm -f multi_thread$(EXEEXT)
     270        $(CXXLINK) $(multi_thread_OBJECTS) $(multi_thread_LDADD) $(LIBS)
    261271
    262272mostlyclean-compile:
     
    268278@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/a11c.Po@am__quote@
    269279@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arc_tan.Po@am__quote@
    270 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bthread.Po@am__quote@
     280@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bthread_team.Po@am__quote@
     281@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton.Po@am__quote@
     282@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton_time.Po@am__quote@
     283@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton_work.Po@am__quote@
     284@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_thread.Po@am__quote@
    271285@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_ad.Po@am__quote@
     286@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv.Po@am__quote@
     287@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv_time.Po@am__quote@
     288@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv_work.Po@am__quote@
    272289
    273290.cpp.o:
     
    285302@am__fastdepCXX_FALSE@  $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
    286303
     304multi_thread.o: ../multi_thread.cpp
     305@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_thread.o -MD -MP -MF $(DEPDIR)/multi_thread.Tpo -c -o multi_thread.o `test -f '../multi_thread.cpp' || echo '$(srcdir)/'`../multi_thread.cpp
     306@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_thread.Tpo $(DEPDIR)/multi_thread.Po
     307@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_thread.cpp' object='multi_thread.o' libtool=no @AMDEPBACKSLASH@
     308@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     309@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_thread.o `test -f '../multi_thread.cpp' || echo '$(srcdir)/'`../multi_thread.cpp
     310
     311multi_thread.obj: ../multi_thread.cpp
     312@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_thread.obj -MD -MP -MF $(DEPDIR)/multi_thread.Tpo -c -o multi_thread.obj `if test -f '../multi_thread.cpp'; then $(CYGPATH_W) '../multi_thread.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_thread.cpp'; fi`
     313@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_thread.Tpo $(DEPDIR)/multi_thread.Po
     314@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_thread.cpp' object='multi_thread.obj' libtool=no @AMDEPBACKSLASH@
     315@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     316@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_thread.obj `if test -f '../multi_thread.cpp'; then $(CYGPATH_W) '../multi_thread.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_thread.cpp'; fi`
     317
    287318arc_tan.o: ../arc_tan.cpp
    288319@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arc_tan.o -MD -MP -MF $(DEPDIR)/arc_tan.Tpo -c -o arc_tan.o `test -f '../arc_tan.cpp' || echo '$(srcdir)/'`../arc_tan.cpp
     
    298329@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    299330@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arc_tan.obj `if test -f '../arc_tan.cpp'; then $(CYGPATH_W) '../arc_tan.cpp'; else $(CYGPATH_W) '$(srcdir)/../arc_tan.cpp'; fi`
     331
     332multi_newton_time.o: ../multi_newton_time.cpp
     333@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_time.o -MD -MP -MF $(DEPDIR)/multi_newton_time.Tpo -c -o multi_newton_time.o `test -f '../multi_newton_time.cpp' || echo '$(srcdir)/'`../multi_newton_time.cpp
     334@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_time.Tpo $(DEPDIR)/multi_newton_time.Po
     335@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_time.cpp' object='multi_newton_time.o' libtool=no @AMDEPBACKSLASH@
     336@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     337@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_time.o `test -f '../multi_newton_time.cpp' || echo '$(srcdir)/'`../multi_newton_time.cpp
     338
     339multi_newton_time.obj: ../multi_newton_time.cpp
     340@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_time.obj -MD -MP -MF $(DEPDIR)/multi_newton_time.Tpo -c -o multi_newton_time.obj `if test -f '../multi_newton_time.cpp'; then $(CYGPATH_W) '../multi_newton_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_time.cpp'; fi`
     341@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_time.Tpo $(DEPDIR)/multi_newton_time.Po
     342@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_time.cpp' object='multi_newton_time.obj' libtool=no @AMDEPBACKSLASH@
     343@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     344@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_time.obj `if test -f '../multi_newton_time.cpp'; then $(CYGPATH_W) '../multi_newton_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_time.cpp'; fi`
     345
     346multi_newton.o: ../multi_newton.cpp
     347@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton.o -MD -MP -MF $(DEPDIR)/multi_newton.Tpo -c -o multi_newton.o `test -f '../multi_newton.cpp' || echo '$(srcdir)/'`../multi_newton.cpp
     348@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton.Tpo $(DEPDIR)/multi_newton.Po
     349@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton.cpp' object='multi_newton.o' libtool=no @AMDEPBACKSLASH@
     350@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     351@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton.o `test -f '../multi_newton.cpp' || echo '$(srcdir)/'`../multi_newton.cpp
     352
     353multi_newton.obj: ../multi_newton.cpp
     354@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton.obj -MD -MP -MF $(DEPDIR)/multi_newton.Tpo -c -o multi_newton.obj `if test -f '../multi_newton.cpp'; then $(CYGPATH_W) '../multi_newton.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton.cpp'; fi`
     355@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton.Tpo $(DEPDIR)/multi_newton.Po
     356@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton.cpp' object='multi_newton.obj' libtool=no @AMDEPBACKSLASH@
     357@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     358@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton.obj `if test -f '../multi_newton.cpp'; then $(CYGPATH_W) '../multi_newton.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton.cpp'; fi`
     359
     360multi_newton_work.o: ../multi_newton_work.cpp
     361@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_work.o -MD -MP -MF $(DEPDIR)/multi_newton_work.Tpo -c -o multi_newton_work.o `test -f '../multi_newton_work.cpp' || echo '$(srcdir)/'`../multi_newton_work.cpp
     362@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_work.Tpo $(DEPDIR)/multi_newton_work.Po
     363@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_work.cpp' object='multi_newton_work.o' libtool=no @AMDEPBACKSLASH@
     364@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     365@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_work.o `test -f '../multi_newton_work.cpp' || echo '$(srcdir)/'`../multi_newton_work.cpp
     366
     367multi_newton_work.obj: ../multi_newton_work.cpp
     368@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_work.obj -MD -MP -MF $(DEPDIR)/multi_newton_work.Tpo -c -o multi_newton_work.obj `if test -f '../multi_newton_work.cpp'; then $(CYGPATH_W) '../multi_newton_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_work.cpp'; fi`
     369@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_work.Tpo $(DEPDIR)/multi_newton_work.Po
     370@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_work.cpp' object='multi_newton_work.obj' libtool=no @AMDEPBACKSLASH@
     371@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     372@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_work.obj `if test -f '../multi_newton_work.cpp'; then $(CYGPATH_W) '../multi_newton_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_work.cpp'; fi`
     373
     374simple_ad.o: ../simple_ad.cpp
     375@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT simple_ad.o -MD -MP -MF $(DEPDIR)/simple_ad.Tpo -c -o simple_ad.o `test -f '../simple_ad.cpp' || echo '$(srcdir)/'`../simple_ad.cpp
     376@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/simple_ad.Tpo $(DEPDIR)/simple_ad.Po
     377@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../simple_ad.cpp' object='simple_ad.o' libtool=no @AMDEPBACKSLASH@
     378@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     379@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o simple_ad.o `test -f '../simple_ad.cpp' || echo '$(srcdir)/'`../simple_ad.cpp
     380
     381simple_ad.obj: ../simple_ad.cpp
     382@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT simple_ad.obj -MD -MP -MF $(DEPDIR)/simple_ad.Tpo -c -o simple_ad.obj `if test -f '../simple_ad.cpp'; then $(CYGPATH_W) '../simple_ad.cpp'; else $(CYGPATH_W) '$(srcdir)/../simple_ad.cpp'; fi`
     383@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/simple_ad.Tpo $(DEPDIR)/simple_ad.Po
     384@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../simple_ad.cpp' object='simple_ad.obj' libtool=no @AMDEPBACKSLASH@
     385@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     386@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o simple_ad.obj `if test -f '../simple_ad.cpp'; then $(CYGPATH_W) '../simple_ad.cpp'; else $(CYGPATH_W) '$(srcdir)/../simple_ad.cpp'; fi`
     387
     388sum_i_inv_time.o: ../sum_i_inv_time.cpp
     389@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_time.o -MD -MP -MF $(DEPDIR)/sum_i_inv_time.Tpo -c -o sum_i_inv_time.o `test -f '../sum_i_inv_time.cpp' || echo '$(srcdir)/'`../sum_i_inv_time.cpp
     390@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_time.Tpo $(DEPDIR)/sum_i_inv_time.Po
     391@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_time.cpp' object='sum_i_inv_time.o' libtool=no @AMDEPBACKSLASH@
     392@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     393@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_time.o `test -f '../sum_i_inv_time.cpp' || echo '$(srcdir)/'`../sum_i_inv_time.cpp
     394
     395sum_i_inv_time.obj: ../sum_i_inv_time.cpp
     396@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_time.obj -MD -MP -MF $(DEPDIR)/sum_i_inv_time.Tpo -c -o sum_i_inv_time.obj `if test -f '../sum_i_inv_time.cpp'; then $(CYGPATH_W) '../sum_i_inv_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_time.cpp'; fi`
     397@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_time.Tpo $(DEPDIR)/sum_i_inv_time.Po
     398@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_time.cpp' object='sum_i_inv_time.obj' libtool=no @AMDEPBACKSLASH@
     399@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     400@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_time.obj `if test -f '../sum_i_inv_time.cpp'; then $(CYGPATH_W) '../sum_i_inv_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_time.cpp'; fi`
     401
     402sum_i_inv.o: ../sum_i_inv.cpp
     403@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv.o -MD -MP -MF $(DEPDIR)/sum_i_inv.Tpo -c -o sum_i_inv.o `test -f '../sum_i_inv.cpp' || echo '$(srcdir)/'`../sum_i_inv.cpp
     404@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv.Tpo $(DEPDIR)/sum_i_inv.Po
     405@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv.cpp' object='sum_i_inv.o' libtool=no @AMDEPBACKSLASH@
     406@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     407@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv.o `test -f '../sum_i_inv.cpp' || echo '$(srcdir)/'`../sum_i_inv.cpp
     408
     409sum_i_inv.obj: ../sum_i_inv.cpp
     410@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv.obj -MD -MP -MF $(DEPDIR)/sum_i_inv.Tpo -c -o sum_i_inv.obj `if test -f '../sum_i_inv.cpp'; then $(CYGPATH_W) '../sum_i_inv.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv.cpp'; fi`
     411@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv.Tpo $(DEPDIR)/sum_i_inv.Po
     412@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv.cpp' object='sum_i_inv.obj' libtool=no @AMDEPBACKSLASH@
     413@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     414@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv.obj `if test -f '../sum_i_inv.cpp'; then $(CYGPATH_W) '../sum_i_inv.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv.cpp'; fi`
     415
     416sum_i_inv_work.o: ../sum_i_inv_work.cpp
     417@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_work.o -MD -MP -MF $(DEPDIR)/sum_i_inv_work.Tpo -c -o sum_i_inv_work.o `test -f '../sum_i_inv_work.cpp' || echo '$(srcdir)/'`../sum_i_inv_work.cpp
     418@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_work.Tpo $(DEPDIR)/sum_i_inv_work.Po
     419@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_work.cpp' object='sum_i_inv_work.o' libtool=no @AMDEPBACKSLASH@
     420@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     421@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_work.o `test -f '../sum_i_inv_work.cpp' || echo '$(srcdir)/'`../sum_i_inv_work.cpp
     422
     423sum_i_inv_work.obj: ../sum_i_inv_work.cpp
     424@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_work.obj -MD -MP -MF $(DEPDIR)/sum_i_inv_work.Tpo -c -o sum_i_inv_work.obj `if test -f '../sum_i_inv_work.cpp'; then $(CYGPATH_W) '../sum_i_inv_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_work.cpp'; fi`
     425@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_work.Tpo $(DEPDIR)/sum_i_inv_work.Po
     426@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_work.cpp' object='sum_i_inv_work.obj' libtool=no @AMDEPBACKSLASH@
     427@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     428@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_work.obj `if test -f '../sum_i_inv_work.cpp'; then $(CYGPATH_W) '../sum_i_inv_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_work.cpp'; fi`
    300429
    301430ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    496625
    497626
    498 test.sh: bthread$(EXEEXT)
     627test.sh: multi_thread$(EXEEXT)
    499628        echo "#! /bin/sh -e"      >  test.sh
    500         echo "./bthread a11c"      >> test.sh
    501         echo "./bthread simple_ad" >> test.sh
     629        echo "./multi_thread a11c"      >> test.sh
     630        echo "./multi_thread simple_ad" >> test.sh
     631        echo "#                 max_threads mega_sum" >> test.sh
     632        echo "./multi_thread sum_i_inv    2        1" >> test.sh
     633        echo "#"                                      >> test.sh
     634        echo "#                 max_threads num_zero num_sub num_sum use_ad" >> test.sh
     635        echo "./multi_thread multi_newton 2       20      30     500   true" >> test.sh
    502636        chmod +x test.sh
    503637
  • trunk/multi_thread/openmp/makefile.am

    r2133 r2178  
    1515DEFS          =
    1616#
    17 check_PROGRAMS    = openmp
     17check_PROGRAMS    = multi_thread
    1818#
    1919if CppAD_MS_COMPILER
     
    3030AM_LDFLAGS        =
    3131#
    32 openmp_SOURCES   = \
    33         openmp.cpp \
     32multi_thread_SOURCES   = \
     33        ../multi_thread.cpp \
    3434\
    35         ../arc_tan.cpp \
    36         ../arc_tan.hpp \
    37         setup_ad.cpp \
    38         setup_ad.hpp \
     35        ../arc_tan.cpp             ../arc_tan.hpp \
     36        ../multi_newton_time.cpp   ../multi_newton_time.hpp \
     37        ../multi_newton.cpp        ../multi_newton.hpp \
     38        ../multi_newton_work.cpp   ../multi_newton_work.hpp \
     39        ../simple_ad.cpp           ../simple_ad.hpp \
     40        ../sum_i_inv_time.cpp      ../sum_i_inv_time.hpp \
     41        ../sum_i_inv.cpp           ../sum_i_inv.hpp \
     42        ../sum_i_inv_work.cpp      ../sum_i_inv_work.hpp \
    3943\
    40         a11c.cpp \
    41         simple_ad.cpp \
    42 \
    43         newton_example.cpp \
    44         newton_example.hpp \
    45         newton_method.hpp  \
    46         sum_i_inv.cpp      \
    47         sum_i_inv.hpp
     44        openmp_team.cpp            ../thread_team.hpp \
     45        a11c.cpp
    4846       
    49 test.sh: openmp$(EXEEXT)
     47test.sh: multi_thread$(EXEEXT)
    5048        echo "#! /bin/sh -e"      >  test.sh
    51         echo "./openmp a11c"      >> test.sh
    52         echo "./openmp simple_ad" >> test.sh
     49        echo "./multi_thread a11c"      >> test.sh
     50        echo "./multi_thread simple_ad" >> test.sh
    5351        echo "#"                  >> test.sh
    54         echo "#              max_threads mega_sum" >> test.sh
    55         echo "./openmp sum_i_inv       2        1" >> test.sh
     52        echo "#                 max_threads mega_sum" >> test.sh
     53        echo "./multi_thread sum_i_inv    2        1" >> test.sh
    5654        echo "#"                                   >> test.sh
    57         echo "#              max_threads n_zero n_sub n_sum use_ad" >> test.sh
    58         echo "./openmp newton_example  2     20    30   500   true" >> test.sh
     55        echo "#                 max_threads num_zero num_sub num_sum use_ad" >> test.sh
     56        echo "./multi_thread multi_newton 2       20      30     500   true" >> test.sh
    5957        chmod +x test.sh
    6058
  • trunk/multi_thread/openmp/makefile.in

    r2133 r2178  
    3232PRE_UNINSTALL = :
    3333POST_UNINSTALL = :
    34 check_PROGRAMS = openmp$(EXEEXT)
     34check_PROGRAMS = multi_thread$(EXEEXT)
    3535subdir = multi_thread/openmp
    3636DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in
     
    4242CONFIG_CLEAN_FILES =
    4343CONFIG_CLEAN_VPATH_FILES =
    44 am_openmp_OBJECTS = openmp.$(OBJEXT) arc_tan.$(OBJEXT) \
    45         setup_ad.$(OBJEXT) a11c.$(OBJEXT) simple_ad.$(OBJEXT) \
    46         newton_example.$(OBJEXT) sum_i_inv.$(OBJEXT)
    47 openmp_OBJECTS = $(am_openmp_OBJECTS)
    48 openmp_LDADD = $(LDADD)
    49 openmp_DEPENDENCIES =
     44am_multi_thread_OBJECTS = multi_thread.$(OBJEXT) arc_tan.$(OBJEXT) \
     45        multi_newton_time.$(OBJEXT) multi_newton.$(OBJEXT) \
     46        multi_newton_work.$(OBJEXT) simple_ad.$(OBJEXT) \
     47        sum_i_inv_time.$(OBJEXT) sum_i_inv.$(OBJEXT) \
     48        sum_i_inv_work.$(OBJEXT) openmp_team.$(OBJEXT) a11c.$(OBJEXT)
     49multi_thread_OBJECTS = $(am_multi_thread_OBJECTS)
     50multi_thread_LDADD = $(LDADD)
     51multi_thread_DEPENDENCIES =
    5052DEFAULT_INCLUDES =
    5153depcomp = $(SHELL) $(top_srcdir)/depcomp
     
    6163CCLD = $(CC)
    6264LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    63 SOURCES = $(openmp_SOURCES)
    64 DIST_SOURCES = $(openmp_SOURCES)
     65SOURCES = $(multi_thread_SOURCES)
     66DIST_SOURCES = $(multi_thread_SOURCES)
    6567ETAGS = etags
    6668CTAGS = ctags
     
    214216AM_LDFLAGS =
    215217#
    216 openmp_SOURCES = \
    217         openmp.cpp \
     218multi_thread_SOURCES = \
     219        ../multi_thread.cpp \
    218220\
    219         ../arc_tan.cpp \
    220         ../arc_tan.hpp \
    221         setup_ad.cpp \
    222         setup_ad.hpp \
     221        ../arc_tan.cpp             ../arc_tan.hpp \
     222        ../multi_newton_time.cpp   ../multi_newton_time.hpp \
     223        ../multi_newton.cpp        ../multi_newton.hpp \
     224        ../multi_newton_work.cpp   ../multi_newton_work.hpp \
     225        ../simple_ad.cpp           ../simple_ad.hpp \
     226        ../sum_i_inv_time.cpp      ../sum_i_inv_time.hpp \
     227        ../sum_i_inv.cpp           ../sum_i_inv.hpp \
     228        ../sum_i_inv_work.cpp      ../sum_i_inv_work.hpp \
    223229\
    224         a11c.cpp \
    225         simple_ad.cpp \
    226 \
    227         newton_example.cpp \
    228         newton_example.hpp \
    229         newton_method.hpp  \
    230         sum_i_inv.cpp      \
    231         sum_i_inv.hpp
     230        openmp_team.cpp            ../thread_team.hpp \
     231        a11c.cpp
    232232
    233233all: all-am
     
    268268clean-checkPROGRAMS:
    269269        -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
    270 openmp$(EXEEXT): $(openmp_OBJECTS) $(openmp_DEPENDENCIES)
    271         @rm -f openmp$(EXEEXT)
    272         $(CXXLINK) $(openmp_OBJECTS) $(openmp_LDADD) $(LIBS)
     270multi_thread$(EXEEXT): $(multi_thread_OBJECTS) $(multi_thread_DEPENDENCIES)
     271        @rm -f multi_thread$(EXEEXT)
     272        $(CXXLINK) $(multi_thread_OBJECTS) $(multi_thread_LDADD) $(LIBS)
    273273
    274274mostlyclean-compile:
     
    280280@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/a11c.Po@am__quote@
    281281@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arc_tan.Po@am__quote@
    282 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/newton_example.Po@am__quote@
    283 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openmp.Po@am__quote@
    284 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setup_ad.Po@am__quote@
     282@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton.Po@am__quote@
     283@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton_time.Po@am__quote@
     284@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton_work.Po@am__quote@
     285@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_thread.Po@am__quote@
     286@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openmp_team.Po@am__quote@
    285287@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_ad.Po@am__quote@
    286288@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv.Po@am__quote@
     289@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv_time.Po@am__quote@
     290@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv_work.Po@am__quote@
    287291
    288292.cpp.o:
     
    300304@am__fastdepCXX_FALSE@  $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
    301305
     306multi_thread.o: ../multi_thread.cpp
     307@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_thread.o -MD -MP -MF $(DEPDIR)/multi_thread.Tpo -c -o multi_thread.o `test -f '../multi_thread.cpp' || echo '$(srcdir)/'`../multi_thread.cpp
     308@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_thread.Tpo $(DEPDIR)/multi_thread.Po
     309@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_thread.cpp' object='multi_thread.o' libtool=no @AMDEPBACKSLASH@
     310@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     311@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_thread.o `test -f '../multi_thread.cpp' || echo '$(srcdir)/'`../multi_thread.cpp
     312
     313multi_thread.obj: ../multi_thread.cpp
     314@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_thread.obj -MD -MP -MF $(DEPDIR)/multi_thread.Tpo -c -o multi_thread.obj `if test -f '../multi_thread.cpp'; then $(CYGPATH_W) '../multi_thread.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_thread.cpp'; fi`
     315@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_thread.Tpo $(DEPDIR)/multi_thread.Po
     316@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_thread.cpp' object='multi_thread.obj' libtool=no @AMDEPBACKSLASH@
     317@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     318@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_thread.obj `if test -f '../multi_thread.cpp'; then $(CYGPATH_W) '../multi_thread.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_thread.cpp'; fi`
     319
    302320arc_tan.o: ../arc_tan.cpp
    303321@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arc_tan.o -MD -MP -MF $(DEPDIR)/arc_tan.Tpo -c -o arc_tan.o `test -f '../arc_tan.cpp' || echo '$(srcdir)/'`../arc_tan.cpp
     
    313331@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    314332@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arc_tan.obj `if test -f '../arc_tan.cpp'; then $(CYGPATH_W) '../arc_tan.cpp'; else $(CYGPATH_W) '$(srcdir)/../arc_tan.cpp'; fi`
     333
     334multi_newton_time.o: ../multi_newton_time.cpp
     335@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_time.o -MD -MP -MF $(DEPDIR)/multi_newton_time.Tpo -c -o multi_newton_time.o `test -f '../multi_newton_time.cpp' || echo '$(srcdir)/'`../multi_newton_time.cpp
     336@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_time.Tpo $(DEPDIR)/multi_newton_time.Po
     337@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_time.cpp' object='multi_newton_time.o' libtool=no @AMDEPBACKSLASH@
     338@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     339@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_time.o `test -f '../multi_newton_time.cpp' || echo '$(srcdir)/'`../multi_newton_time.cpp
     340
     341multi_newton_time.obj: ../multi_newton_time.cpp
     342@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_time.obj -MD -MP -MF $(DEPDIR)/multi_newton_time.Tpo -c -o multi_newton_time.obj `if test -f '../multi_newton_time.cpp'; then $(CYGPATH_W) '../multi_newton_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_time.cpp'; fi`
     343@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_time.Tpo $(DEPDIR)/multi_newton_time.Po
     344@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_time.cpp' object='multi_newton_time.obj' libtool=no @AMDEPBACKSLASH@
     345@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     346@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_time.obj `if test -f '../multi_newton_time.cpp'; then $(CYGPATH_W) '../multi_newton_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_time.cpp'; fi`
     347
     348multi_newton.o: ../multi_newton.cpp
     349@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton.o -MD -MP -MF $(DEPDIR)/multi_newton.Tpo -c -o multi_newton.o `test -f '../multi_newton.cpp' || echo '$(srcdir)/'`../multi_newton.cpp
     350@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton.Tpo $(DEPDIR)/multi_newton.Po
     351@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton.cpp' object='multi_newton.o' libtool=no @AMDEPBACKSLASH@
     352@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     353@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton.o `test -f '../multi_newton.cpp' || echo '$(srcdir)/'`../multi_newton.cpp
     354
     355multi_newton.obj: ../multi_newton.cpp
     356@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton.obj -MD -MP -MF $(DEPDIR)/multi_newton.Tpo -c -o multi_newton.obj `if test -f '../multi_newton.cpp'; then $(CYGPATH_W) '../multi_newton.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton.cpp'; fi`
     357@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton.Tpo $(DEPDIR)/multi_newton.Po
     358@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton.cpp' object='multi_newton.obj' libtool=no @AMDEPBACKSLASH@
     359@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     360@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton.obj `if test -f '../multi_newton.cpp'; then $(CYGPATH_W) '../multi_newton.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton.cpp'; fi`
     361
     362multi_newton_work.o: ../multi_newton_work.cpp
     363@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_work.o -MD -MP -MF $(DEPDIR)/multi_newton_work.Tpo -c -o multi_newton_work.o `test -f '../multi_newton_work.cpp' || echo '$(srcdir)/'`../multi_newton_work.cpp
     364@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_work.Tpo $(DEPDIR)/multi_newton_work.Po
     365@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_work.cpp' object='multi_newton_work.o' libtool=no @AMDEPBACKSLASH@
     366@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     367@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_work.o `test -f '../multi_newton_work.cpp' || echo '$(srcdir)/'`../multi_newton_work.cpp
     368
     369multi_newton_work.obj: ../multi_newton_work.cpp
     370@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_work.obj -MD -MP -MF $(DEPDIR)/multi_newton_work.Tpo -c -o multi_newton_work.obj `if test -f '../multi_newton_work.cpp'; then $(CYGPATH_W) '../multi_newton_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_work.cpp'; fi`
     371@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_work.Tpo $(DEPDIR)/multi_newton_work.Po
     372@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_work.cpp' object='multi_newton_work.obj' libtool=no @AMDEPBACKSLASH@
     373@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     374@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_work.obj `if test -f '../multi_newton_work.cpp'; then $(CYGPATH_W) '../multi_newton_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_work.cpp'; fi`
     375
     376simple_ad.o: ../simple_ad.cpp
     377@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT simple_ad.o -MD -MP -MF $(DEPDIR)/simple_ad.Tpo -c -o simple_ad.o `test -f '../simple_ad.cpp' || echo '$(srcdir)/'`../simple_ad.cpp
     378@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/simple_ad.Tpo $(DEPDIR)/simple_ad.Po
     379@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../simple_ad.cpp' object='simple_ad.o' libtool=no @AMDEPBACKSLASH@
     380@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     381@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o simple_ad.o `test -f '../simple_ad.cpp' || echo '$(srcdir)/'`../simple_ad.cpp
     382
     383simple_ad.obj: ../simple_ad.cpp
     384@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT simple_ad.obj -MD -MP -MF $(DEPDIR)/simple_ad.Tpo -c -o simple_ad.obj `if test -f '../simple_ad.cpp'; then $(CYGPATH_W) '../simple_ad.cpp'; else $(CYGPATH_W) '$(srcdir)/../simple_ad.cpp'; fi`
     385@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/simple_ad.Tpo $(DEPDIR)/simple_ad.Po
     386@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../simple_ad.cpp' object='simple_ad.obj' libtool=no @AMDEPBACKSLASH@
     387@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     388@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o simple_ad.obj `if test -f '../simple_ad.cpp'; then $(CYGPATH_W) '../simple_ad.cpp'; else $(CYGPATH_W) '$(srcdir)/../simple_ad.cpp'; fi`
     389
     390sum_i_inv_time.o: ../sum_i_inv_time.cpp
     391@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_time.o -MD -MP -MF $(DEPDIR)/sum_i_inv_time.Tpo -c -o sum_i_inv_time.o `test -f '../sum_i_inv_time.cpp' || echo '$(srcdir)/'`../sum_i_inv_time.cpp
     392@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_time.Tpo $(DEPDIR)/sum_i_inv_time.Po
     393@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_time.cpp' object='sum_i_inv_time.o' libtool=no @AMDEPBACKSLASH@
     394@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     395@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_time.o `test -f '../sum_i_inv_time.cpp' || echo '$(srcdir)/'`../sum_i_inv_time.cpp
     396
     397sum_i_inv_time.obj: ../sum_i_inv_time.cpp
     398@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_time.obj -MD -MP -MF $(DEPDIR)/sum_i_inv_time.Tpo -c -o sum_i_inv_time.obj `if test -f '../sum_i_inv_time.cpp'; then $(CYGPATH_W) '../sum_i_inv_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_time.cpp'; fi`
     399@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_time.Tpo $(DEPDIR)/sum_i_inv_time.Po
     400@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_time.cpp' object='sum_i_inv_time.obj' libtool=no @AMDEPBACKSLASH@
     401@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     402@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_time.obj `if test -f '../sum_i_inv_time.cpp'; then $(CYGPATH_W) '../sum_i_inv_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_time.cpp'; fi`
     403
     404sum_i_inv.o: ../sum_i_inv.cpp
     405@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv.o -MD -MP -MF $(DEPDIR)/sum_i_inv.Tpo -c -o sum_i_inv.o `test -f '../sum_i_inv.cpp' || echo '$(srcdir)/'`../sum_i_inv.cpp
     406@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv.Tpo $(DEPDIR)/sum_i_inv.Po
     407@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv.cpp' object='sum_i_inv.o' libtool=no @AMDEPBACKSLASH@
     408@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     409@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv.o `test -f '../sum_i_inv.cpp' || echo '$(srcdir)/'`../sum_i_inv.cpp
     410
     411sum_i_inv.obj: ../sum_i_inv.cpp
     412@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv.obj -MD -MP -MF $(DEPDIR)/sum_i_inv.Tpo -c -o sum_i_inv.obj `if test -f '../sum_i_inv.cpp'; then $(CYGPATH_W) '../sum_i_inv.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv.cpp'; fi`
     413@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv.Tpo $(DEPDIR)/sum_i_inv.Po
     414@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv.cpp' object='sum_i_inv.obj' libtool=no @AMDEPBACKSLASH@
     415@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     416@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv.obj `if test -f '../sum_i_inv.cpp'; then $(CYGPATH_W) '../sum_i_inv.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv.cpp'; fi`
     417
     418sum_i_inv_work.o: ../sum_i_inv_work.cpp
     419@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_work.o -MD -MP -MF $(DEPDIR)/sum_i_inv_work.Tpo -c -o sum_i_inv_work.o `test -f '../sum_i_inv_work.cpp' || echo '$(srcdir)/'`../sum_i_inv_work.cpp
     420@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_work.Tpo $(DEPDIR)/sum_i_inv_work.Po
     421@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_work.cpp' object='sum_i_inv_work.o' libtool=no @AMDEPBACKSLASH@
     422@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     423@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_work.o `test -f '../sum_i_inv_work.cpp' || echo '$(srcdir)/'`../sum_i_inv_work.cpp
     424
     425sum_i_inv_work.obj: ../sum_i_inv_work.cpp
     426@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_work.obj -MD -MP -MF $(DEPDIR)/sum_i_inv_work.Tpo -c -o sum_i_inv_work.obj `if test -f '../sum_i_inv_work.cpp'; then $(CYGPATH_W) '../sum_i_inv_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_work.cpp'; fi`
     427@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_work.Tpo $(DEPDIR)/sum_i_inv_work.Po
     428@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_work.cpp' object='sum_i_inv_work.obj' libtool=no @AMDEPBACKSLASH@
     429@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     430@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_work.obj `if test -f '../sum_i_inv_work.cpp'; then $(CYGPATH_W) '../sum_i_inv_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_work.cpp'; fi`
    315431
    316432ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    511627
    512628
    513 test.sh: openmp$(EXEEXT)
     629test.sh: multi_thread$(EXEEXT)
    514630        echo "#! /bin/sh -e"      >  test.sh
    515         echo "./openmp a11c"      >> test.sh
    516         echo "./openmp simple_ad" >> test.sh
     631        echo "./multi_thread a11c"      >> test.sh
     632        echo "./multi_thread simple_ad" >> test.sh
    517633        echo "#"                  >> test.sh
    518         echo "#              max_threads mega_sum" >> test.sh
    519         echo "./openmp sum_i_inv       2        1" >> test.sh
     634        echo "#                 max_threads mega_sum" >> test.sh
     635        echo "./multi_thread sum_i_inv    2        1" >> test.sh
    520636        echo "#"                                   >> test.sh
    521         echo "#              max_threads n_zero n_sub n_sum use_ad" >> test.sh
    522         echo "./openmp newton_example  2     20    30   500   true" >> test.sh
     637        echo "#                 max_threads num_zero num_sub num_sum use_ad" >> test.sh
     638        echo "./multi_thread multi_newton 2       20      30     500   true" >> test.sh
    523639        chmod +x test.sh
    524640
  • trunk/multi_thread/pthread/makefile.am

    r2133 r2178  
    1515DEFS          =
    1616#
    17 check_PROGRAMS    = pthread
     17check_PROGRAMS    = multi_thread
    1818#
    1919if CppAD_MS_COMPILER
    20 # AM_CXXFLAGS     = -EHsc -g $(CXX_FLAGS) $(BTHREAD_FLAGS)
    21 AM_CXXFLAGS       = -EHsc -DNDEBUG -O2 $(CXX_FLAGS) $(BTHREAD_FLAGS)
     20# AM_CXXFLAGS     = -EHsc -g $(CXX_FLAGS)
     21AM_CXXFLAGS       = -EHsc -DNDEBUG -O2 $(CXX_FLAGS)
    2222else
    23 # AM_CXXFLAGS     = -g $(CXX_FLAGS) $(BTHREAD_FLAGS)
    24 AM_CXXFLAGS       = -DNDEBUG -O2 $(CXX_FLAGS) $(BTHREAD_FLAGS)
     23# AM_CXXFLAGS     = -g $(CXX_FLAGS)
     24AM_CXXFLAGS       = -DNDEBUG -O2 $(CXX_FLAGS)
    2525endif
    2626#
    2727AM_CPPFLAGS       = -I. -I$(top_srcdir)
    2828#
    29 AM_LDFLAGS        = $(BTHREAD_LIB) $(PTHREAD_LIB)
     29AM_LDFLAGS        = $(PTHREAD_LIB)
    3030#
    31 pthread_SOURCES   = \
    32         pthread.cpp \
     31multi_thread_SOURCES   = \
     32        ../multi_thread.cpp \
    3333\
    34         ../arc_tan.cpp \
    35         ../arc_tan.hpp \
    36         a11c.cpp \
    37         simple_ad.cpp
     34        ../arc_tan.cpp           ../arc_tan.hpp \
     35        ../multi_newton_time.cpp ../multi_newton_time.hpp \
     36        ../multi_newton.cpp      ../multi_newton.hpp \
     37        ../multi_newton_work.cpp ../multi_newton_work.hpp \
     38        ../simple_ad.cpp         ../simple_ad.hpp \
     39        ../sum_i_inv_time.cpp    ../sum_i_inv_time.hpp \
     40        ../sum_i_inv.cpp         ../sum_i_inv.hpp \
     41        ../sum_i_inv_work.cpp    ../sum_i_inv_work.hpp \
     42\
     43        pthread_team.cpp         ../thread_team.hpp \
     44        a11c.cpp
    3845       
    39 test.sh: pthread$(EXEEXT)
     46test.sh: multi_thread$(EXEEXT)
    4047        echo "#! /bin/sh -e"      >  test.sh
    41         echo "./pthread a11c"      >> test.sh
    42         echo "./pthread simple_ad" >> test.sh
     48        echo "./multi_thread a11c"      >> test.sh
     49        echo "./multi_thread simple_ad" >> test.sh
     50        echo "#                 max_threads mega_sum" >> test.sh
     51        echo "./multi_thread sum_i_inv    2        1" >> test.sh
     52        echo "#"                                      >> test.sh
     53        echo "#                 max_threads num_zero num_sub num_sum use_ad" >> test.sh
     54        echo "./multi_thread multi_newton 2       20      30     500   true" >> test.sh
    4355        chmod +x test.sh
    4456
  • trunk/multi_thread/pthread/makefile.in

    r2133 r2178  
    3232PRE_UNINSTALL = :
    3333POST_UNINSTALL = :
    34 check_PROGRAMS = pthread$(EXEEXT)
     34check_PROGRAMS = multi_thread$(EXEEXT)
    3535subdir = multi_thread/pthread
    3636DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in
     
    4242CONFIG_CLEAN_FILES =
    4343CONFIG_CLEAN_VPATH_FILES =
    44 am_pthread_OBJECTS = pthread.$(OBJEXT) arc_tan.$(OBJEXT) \
    45         a11c.$(OBJEXT) simple_ad.$(OBJEXT)
    46 pthread_OBJECTS = $(am_pthread_OBJECTS)
    47 pthread_LDADD = $(LDADD)
     44am_multi_thread_OBJECTS = multi_thread.$(OBJEXT) arc_tan.$(OBJEXT) \
     45        multi_newton_time.$(OBJEXT) multi_newton.$(OBJEXT) \
     46        multi_newton_work.$(OBJEXT) simple_ad.$(OBJEXT) \
     47        sum_i_inv_time.$(OBJEXT) sum_i_inv.$(OBJEXT) \
     48        sum_i_inv_work.$(OBJEXT) pthread_team.$(OBJEXT) a11c.$(OBJEXT)
     49multi_thread_OBJECTS = $(am_multi_thread_OBJECTS)
     50multi_thread_LDADD = $(LDADD)
    4851DEFAULT_INCLUDES =
    4952depcomp = $(SHELL) $(top_srcdir)/depcomp
     
    5962CCLD = $(CC)
    6063LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    61 SOURCES = $(pthread_SOURCES)
    62 DIST_SOURCES = $(pthread_SOURCES)
     64SOURCES = $(multi_thread_SOURCES)
     65DIST_SOURCES = $(multi_thread_SOURCES)
    6366ETAGS = etags
    6467CTAGS = ctags
     
    201204top_builddir = @top_builddir@
    202205top_srcdir = @top_srcdir@
    203 # AM_CXXFLAGS     = -g $(CXX_FLAGS) $(BTHREAD_FLAGS)
    204 @CppAD_MS_COMPILER_FALSE@AM_CXXFLAGS = -DNDEBUG -O2 $(CXX_FLAGS) $(BTHREAD_FLAGS)
     206# AM_CXXFLAGS     = -g $(CXX_FLAGS)
     207@CppAD_MS_COMPILER_FALSE@AM_CXXFLAGS = -DNDEBUG -O2 $(CXX_FLAGS)
    205208#
    206 # AM_CXXFLAGS     = -EHsc -g $(CXX_FLAGS) $(BTHREAD_FLAGS)
    207 @CppAD_MS_COMPILER_TRUE@AM_CXXFLAGS = -EHsc -DNDEBUG -O2 $(CXX_FLAGS) $(BTHREAD_FLAGS)
     209# AM_CXXFLAGS     = -EHsc -g $(CXX_FLAGS)
     210@CppAD_MS_COMPILER_TRUE@AM_CXXFLAGS = -EHsc -DNDEBUG -O2 $(CXX_FLAGS)
    208211#
    209212AM_CPPFLAGS = -I. -I$(top_srcdir)
    210213#
    211 AM_LDFLAGS = $(BTHREAD_LIB) $(PTHREAD_LIB)
     214AM_LDFLAGS = $(PTHREAD_LIB)
    212215#
    213 pthread_SOURCES = \
    214         pthread.cpp \
     216multi_thread_SOURCES = \
     217        ../multi_thread.cpp \
    215218\
    216         ../arc_tan.cpp \
    217         ../arc_tan.hpp \
    218         a11c.cpp \
    219         simple_ad.cpp
     219        ../arc_tan.cpp           ../arc_tan.hpp \
     220        ../multi_newton_time.cpp ../multi_newton_time.hpp \
     221        ../multi_newton.cpp      ../multi_newton.hpp \
     222        ../multi_newton_work.cpp ../multi_newton_work.hpp \
     223        ../simple_ad.cpp         ../simple_ad.hpp \
     224        ../sum_i_inv_time.cpp    ../sum_i_inv_time.hpp \
     225        ../sum_i_inv.cpp         ../sum_i_inv.hpp \
     226        ../sum_i_inv_work.cpp    ../sum_i_inv_work.hpp \
     227\
     228        pthread_team.cpp         ../thread_team.hpp \
     229        a11c.cpp
    220230
    221231all: all-am
     
    256266clean-checkPROGRAMS:
    257267        -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
    258 pthread$(EXEEXT): $(pthread_OBJECTS) $(pthread_DEPENDENCIES)
    259         @rm -f pthread$(EXEEXT)
    260         $(CXXLINK) $(pthread_OBJECTS) $(pthread_LDADD) $(LIBS)
     268multi_thread$(EXEEXT): $(multi_thread_OBJECTS) $(multi_thread_DEPENDENCIES)
     269        @rm -f multi_thread$(EXEEXT)
     270        $(CXXLINK) $(multi_thread_OBJECTS) $(multi_thread_LDADD) $(LIBS)
    261271
    262272mostlyclean-compile:
     
    268278@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/a11c.Po@am__quote@
    269279@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arc_tan.Po@am__quote@
    270 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthread.Po@am__quote@
     280@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton.Po@am__quote@
     281@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton_time.Po@am__quote@
     282@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_newton_work.Po@am__quote@
     283@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi_thread.Po@am__quote@
     284@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthread_team.Po@am__quote@
    271285@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_ad.Po@am__quote@
     286@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv.Po@am__quote@
     287@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv_time.Po@am__quote@
     288@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sum_i_inv_work.Po@am__quote@
    272289
    273290.cpp.o:
     
    285302@am__fastdepCXX_FALSE@  $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
    286303
     304multi_thread.o: ../multi_thread.cpp
     305@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_thread.o -MD -MP -MF $(DEPDIR)/multi_thread.Tpo -c -o multi_thread.o `test -f '../multi_thread.cpp' || echo '$(srcdir)/'`../multi_thread.cpp
     306@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_thread.Tpo $(DEPDIR)/multi_thread.Po
     307@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_thread.cpp' object='multi_thread.o' libtool=no @AMDEPBACKSLASH@
     308@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     309@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_thread.o `test -f '../multi_thread.cpp' || echo '$(srcdir)/'`../multi_thread.cpp
     310
     311multi_thread.obj: ../multi_thread.cpp
     312@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_thread.obj -MD -MP -MF $(DEPDIR)/multi_thread.Tpo -c -o multi_thread.obj `if test -f '../multi_thread.cpp'; then $(CYGPATH_W) '../multi_thread.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_thread.cpp'; fi`
     313@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_thread.Tpo $(DEPDIR)/multi_thread.Po
     314@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_thread.cpp' object='multi_thread.obj' libtool=no @AMDEPBACKSLASH@
     315@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     316@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_thread.obj `if test -f '../multi_thread.cpp'; then $(CYGPATH_W) '../multi_thread.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_thread.cpp'; fi`
     317
    287318arc_tan.o: ../arc_tan.cpp
    288319@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT arc_tan.o -MD -MP -MF $(DEPDIR)/arc_tan.Tpo -c -o arc_tan.o `test -f '../arc_tan.cpp' || echo '$(srcdir)/'`../arc_tan.cpp
     
    298329@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    299330@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o arc_tan.obj `if test -f '../arc_tan.cpp'; then $(CYGPATH_W) '../arc_tan.cpp'; else $(CYGPATH_W) '$(srcdir)/../arc_tan.cpp'; fi`
     331
     332multi_newton_time.o: ../multi_newton_time.cpp
     333@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_time.o -MD -MP -MF $(DEPDIR)/multi_newton_time.Tpo -c -o multi_newton_time.o `test -f '../multi_newton_time.cpp' || echo '$(srcdir)/'`../multi_newton_time.cpp
     334@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_time.Tpo $(DEPDIR)/multi_newton_time.Po
     335@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_time.cpp' object='multi_newton_time.o' libtool=no @AMDEPBACKSLASH@
     336@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     337@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_time.o `test -f '../multi_newton_time.cpp' || echo '$(srcdir)/'`../multi_newton_time.cpp
     338
     339multi_newton_time.obj: ../multi_newton_time.cpp
     340@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_time.obj -MD -MP -MF $(DEPDIR)/multi_newton_time.Tpo -c -o multi_newton_time.obj `if test -f '../multi_newton_time.cpp'; then $(CYGPATH_W) '../multi_newton_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_time.cpp'; fi`
     341@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_time.Tpo $(DEPDIR)/multi_newton_time.Po
     342@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_time.cpp' object='multi_newton_time.obj' libtool=no @AMDEPBACKSLASH@
     343@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     344@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_time.obj `if test -f '../multi_newton_time.cpp'; then $(CYGPATH_W) '../multi_newton_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_time.cpp'; fi`
     345
     346multi_newton.o: ../multi_newton.cpp
     347@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton.o -MD -MP -MF $(DEPDIR)/multi_newton.Tpo -c -o multi_newton.o `test -f '../multi_newton.cpp' || echo '$(srcdir)/'`../multi_newton.cpp
     348@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton.Tpo $(DEPDIR)/multi_newton.Po
     349@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton.cpp' object='multi_newton.o' libtool=no @AMDEPBACKSLASH@
     350@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     351@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton.o `test -f '../multi_newton.cpp' || echo '$(srcdir)/'`../multi_newton.cpp
     352
     353multi_newton.obj: ../multi_newton.cpp
     354@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton.obj -MD -MP -MF $(DEPDIR)/multi_newton.Tpo -c -o multi_newton.obj `if test -f '../multi_newton.cpp'; then $(CYGPATH_W) '../multi_newton.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton.cpp'; fi`
     355@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton.Tpo $(DEPDIR)/multi_newton.Po
     356@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton.cpp' object='multi_newton.obj' libtool=no @AMDEPBACKSLASH@
     357@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     358@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton.obj `if test -f '../multi_newton.cpp'; then $(CYGPATH_W) '../multi_newton.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton.cpp'; fi`
     359
     360multi_newton_work.o: ../multi_newton_work.cpp
     361@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_work.o -MD -MP -MF $(DEPDIR)/multi_newton_work.Tpo -c -o multi_newton_work.o `test -f '../multi_newton_work.cpp' || echo '$(srcdir)/'`../multi_newton_work.cpp
     362@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_work.Tpo $(DEPDIR)/multi_newton_work.Po
     363@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_work.cpp' object='multi_newton_work.o' libtool=no @AMDEPBACKSLASH@
     364@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     365@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_work.o `test -f '../multi_newton_work.cpp' || echo '$(srcdir)/'`../multi_newton_work.cpp
     366
     367multi_newton_work.obj: ../multi_newton_work.cpp
     368@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT multi_newton_work.obj -MD -MP -MF $(DEPDIR)/multi_newton_work.Tpo -c -o multi_newton_work.obj `if test -f '../multi_newton_work.cpp'; then $(CYGPATH_W) '../multi_newton_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_work.cpp'; fi`
     369@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/multi_newton_work.Tpo $(DEPDIR)/multi_newton_work.Po
     370@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../multi_newton_work.cpp' object='multi_newton_work.obj' libtool=no @AMDEPBACKSLASH@
     371@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     372@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o multi_newton_work.obj `if test -f '../multi_newton_work.cpp'; then $(CYGPATH_W) '../multi_newton_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../multi_newton_work.cpp'; fi`
     373
     374simple_ad.o: ../simple_ad.cpp
     375@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT simple_ad.o -MD -MP -MF $(DEPDIR)/simple_ad.Tpo -c -o simple_ad.o `test -f '../simple_ad.cpp' || echo '$(srcdir)/'`../simple_ad.cpp
     376@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/simple_ad.Tpo $(DEPDIR)/simple_ad.Po
     377@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../simple_ad.cpp' object='simple_ad.o' libtool=no @AMDEPBACKSLASH@
     378@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     379@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o simple_ad.o `test -f '../simple_ad.cpp' || echo '$(srcdir)/'`../simple_ad.cpp
     380
     381simple_ad.obj: ../simple_ad.cpp
     382@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT simple_ad.obj -MD -MP -MF $(DEPDIR)/simple_ad.Tpo -c -o simple_ad.obj `if test -f '../simple_ad.cpp'; then $(CYGPATH_W) '../simple_ad.cpp'; else $(CYGPATH_W) '$(srcdir)/../simple_ad.cpp'; fi`
     383@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/simple_ad.Tpo $(DEPDIR)/simple_ad.Po
     384@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../simple_ad.cpp' object='simple_ad.obj' libtool=no @AMDEPBACKSLASH@
     385@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     386@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o simple_ad.obj `if test -f '../simple_ad.cpp'; then $(CYGPATH_W) '../simple_ad.cpp'; else $(CYGPATH_W) '$(srcdir)/../simple_ad.cpp'; fi`
     387
     388sum_i_inv_time.o: ../sum_i_inv_time.cpp
     389@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_time.o -MD -MP -MF $(DEPDIR)/sum_i_inv_time.Tpo -c -o sum_i_inv_time.o `test -f '../sum_i_inv_time.cpp' || echo '$(srcdir)/'`../sum_i_inv_time.cpp
     390@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_time.Tpo $(DEPDIR)/sum_i_inv_time.Po
     391@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_time.cpp' object='sum_i_inv_time.o' libtool=no @AMDEPBACKSLASH@
     392@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     393@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_time.o `test -f '../sum_i_inv_time.cpp' || echo '$(srcdir)/'`../sum_i_inv_time.cpp
     394
     395sum_i_inv_time.obj: ../sum_i_inv_time.cpp
     396@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_time.obj -MD -MP -MF $(DEPDIR)/sum_i_inv_time.Tpo -c -o sum_i_inv_time.obj `if test -f '../sum_i_inv_time.cpp'; then $(CYGPATH_W) '../sum_i_inv_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_time.cpp'; fi`
     397@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_time.Tpo $(DEPDIR)/sum_i_inv_time.Po
     398@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_time.cpp' object='sum_i_inv_time.obj' libtool=no @AMDEPBACKSLASH@
     399@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     400@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_time.obj `if test -f '../sum_i_inv_time.cpp'; then $(CYGPATH_W) '../sum_i_inv_time.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_time.cpp'; fi`
     401
     402sum_i_inv.o: ../sum_i_inv.cpp
     403@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv.o -MD -MP -MF $(DEPDIR)/sum_i_inv.Tpo -c -o sum_i_inv.o `test -f '../sum_i_inv.cpp' || echo '$(srcdir)/'`../sum_i_inv.cpp
     404@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv.Tpo $(DEPDIR)/sum_i_inv.Po
     405@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv.cpp' object='sum_i_inv.o' libtool=no @AMDEPBACKSLASH@
     406@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     407@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv.o `test -f '../sum_i_inv.cpp' || echo '$(srcdir)/'`../sum_i_inv.cpp
     408
     409sum_i_inv.obj: ../sum_i_inv.cpp
     410@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv.obj -MD -MP -MF $(DEPDIR)/sum_i_inv.Tpo -c -o sum_i_inv.obj `if test -f '../sum_i_inv.cpp'; then $(CYGPATH_W) '../sum_i_inv.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv.cpp'; fi`
     411@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv.Tpo $(DEPDIR)/sum_i_inv.Po
     412@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv.cpp' object='sum_i_inv.obj' libtool=no @AMDEPBACKSLASH@
     413@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     414@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv.obj `if test -f '../sum_i_inv.cpp'; then $(CYGPATH_W) '../sum_i_inv.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv.cpp'; fi`
     415
     416sum_i_inv_work.o: ../sum_i_inv_work.cpp
     417@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_work.o -MD -MP -MF $(DEPDIR)/sum_i_inv_work.Tpo -c -o sum_i_inv_work.o `test -f '../sum_i_inv_work.cpp' || echo '$(srcdir)/'`../sum_i_inv_work.cpp
     418@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_work.Tpo $(DEPDIR)/sum_i_inv_work.Po
     419@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_work.cpp' object='sum_i_inv_work.o' libtool=no @AMDEPBACKSLASH@
     420@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     421@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_work.o `test -f '../sum_i_inv_work.cpp' || echo '$(srcdir)/'`../sum_i_inv_work.cpp
     422
     423sum_i_inv_work.obj: ../sum_i_inv_work.cpp
     424@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sum_i_inv_work.obj -MD -MP -MF $(DEPDIR)/sum_i_inv_work.Tpo -c -o sum_i_inv_work.obj `if test -f '../sum_i_inv_work.cpp'; then $(CYGPATH_W) '../sum_i_inv_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_work.cpp'; fi`
     425@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sum_i_inv_work.Tpo $(DEPDIR)/sum_i_inv_work.Po
     426@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../sum_i_inv_work.cpp' object='sum_i_inv_work.obj' libtool=no @AMDEPBACKSLASH@
     427@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     428@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sum_i_inv_work.obj `if test -f '../sum_i_inv_work.cpp'; then $(CYGPATH_W) '../sum_i_inv_work.cpp'; else $(CYGPATH_W) '$(srcdir)/../sum_i_inv_work.cpp'; fi`
    300429
    301430ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    496625
    497626
    498 test.sh: pthread$(EXEEXT)
     627test.sh: multi_thread$(EXEEXT)
    499628        echo "#! /bin/sh -e"      >  test.sh
    500         echo "./pthread a11c"      >> test.sh
    501         echo "./pthread simple_ad" >> test.sh
     629        echo "./multi_thread a11c"      >> test.sh
     630        echo "./multi_thread simple_ad" >> test.sh
     631        echo "#                 max_threads mega_sum" >> test.sh
     632        echo "./multi_thread sum_i_inv    2        1" >> test.sh
     633        echo "#"                                      >> test.sh
     634        echo "#                 max_threads num_zero num_sub num_sum use_ad" >> test.sh
     635        echo "./multi_thread multi_newton 2       20      30     500   true" >> test.sh
    502636        chmod +x test.sh
    503637
  • trunk/omh/example_list.omh

    r2096 r2178  
    8383$rref ad_fun.cpp$$
    8484$rref ad_in_c.cpp$$
     85$rref arc_tan.cpp$$
    8586$rref Asin.cpp$$
    8687$rref Atan.cpp$$
     
    9192$rref BoolFun.cpp$$
    9293$rref bthread_a11c.cpp$$
    93 $rref bthread_ad.cpp$$
     94$rref bthread_team.cpp$$
    9495$rref CheckNumericType.cpp$$
    9596$rref checkpoint.cpp$$
     
    159160$rref mul_level.cpp$$
    160161$rref mul_level_adolc.cpp$$
     162$rref multi_newton.cpp$$
     163$rref multi_newton_time.cpp$$
     164$rref multi_newton_work.cpp$$
     165$rref multi_thread.cpp$$
    161166$rref nan.cpp$$
    162167$rref NearEqualExt.cpp$$
     
    174179$rref omp_alloc.cpp$$
    175180$rref openmp_a11c.cpp$$
    176 $rref openmp_ad.cpp$$
    177 $rref openmp_newton_example.cpp$$
    178 $rref openmp_run.cpp$$
    179 $rref openmp_sum_i_inv.cpp$$
     181$rref openmp_team.cpp$$
    180182$rref opt_val_hes.cpp$$
    181183$rref optimize.cpp$$
     
    188190$rref print_for_string.cpp$$
    189191$rref pthread_a11c.cpp$$
    190 $rref pthread_ad.cpp$$
     192$rref pthread_team.cpp$$
    191193$rref RevOne.cpp$$
    192194$rref RevSparseHes.cpp$$
     
    203205$rref runge_45_2.cpp$$
    204206$rref seq_property.cpp$$
     207$rref simple_ad.cpp$$
    205208$rref SimpleVector.cpp$$
    206209$rref Sin.cpp$$
     
    215218$rref Sub.cpp$$
    216219$rref SubEq.cpp$$
     220$rref sum_i_inv.cpp$$
     221$rref sum_i_inv_time.cpp$$
     222$rref sum_i_inv_work.cpp$$
    217223$rref Tan.cpp$$
    218224$rref Tanh.cpp$$
  • trunk/omh/install_unix.omh.in

    r2097 r2178  
    189189Once you have executed the $code make$$ command,
    190190you can run the correctness and speed tests.
     191$pre
     192
     193$$
    191194The following command will build all the correctness and speed tests.
    192195In addition, it will run all the correctness tests:
    193196$codep
    194197        make test
     198$$
     199$pre
     200
    195201$$
    196202The following links describe how to build and run subsets of these tests:
     
    226232        $cnext $title speed_sacado$$
    227233$tend
    228 
    229 $subhead More Testing$$
    230 $index test, more$$
    231 $index more, testing$$
    232 You can run a large number of correctness tests
     234In addition,
     235you can run a large subset of correctness tests
    233236(that are not intended to be examples)
    234237by executing the following commands starting in the work directory:
    235238$codei%
    236239        cd test_more
    237         make test.sh
    238         ./test.sh
     240        make test
    239241%$$
    240242
     
    248250$codei%
    249251        cd speed/profile
    250         make test.sh
    251         ./test.sh
    252 %$$
    253 After executing $code make test.sh$$, you can run a profile speed test
     252        make test
     253%$$
     254After executing $code make test$$, you can run a profile speed test
    254255by executing the command $code ./profile$$;
    255256see $cref speed_main$$ for the meaning of the command line
     
    369370%$$
    370371If you specify configure command,
    371 the CppAD OpenMP correctness and speed tests will be built; i.e.,
    372 $table
    373 $bold Driver$$  $cnext
    374         $bold Test$$ $cnext
    375         $bold Description$$
    376 $rnext
    377 $cref/example.cpp/example.cpp/Running Tests/$$ $cnext
    378         $cref openmp_a11c.cpp$$ $cnext
    379         $title openmp_a11c.cpp$$
    380 $rnext
    381 $cref/example.cpp/example.cpp/Running Tests/$$ $cnext
    382         $cref openmp_ad.cpp$$ $cnext
    383         $title openmp_ad.cpp$$
    384 $rnext
    385 $cref/run.cpp/openmp_run.cpp/Running Tests/$$ $cnext
    386         $cref/sum_i_inv.cpp/openmp_sum_i_inv.cpp/$$ $cnext
    387         $title openmp_sum_i_inv.cpp$$
    388 $rnext
    389 $cref/run.cpp/openmp_run.cpp/Running Tests/$$ $cnext
    390         $cref/newton_example.cpp/openmp_newton_example.cpp/$$ $cnext
    391         $title openmp_newton_example.cpp$$
    392 $tend
     372the CppAD OpenMP correctness and speed tests will be built; see
     373$cref%multi_thread/openmp/multi_thread.cpp%multi_thread.cpp%$$.
    393374
    394375$head PostfixDir$$
     
    433414$codei%
    434415        cd speed/adolc
    435         make test.sh
    436         ./test.sh
    437 %$$
    438 After executing $code make test.sh$$, you can run an Adolc speed tests
     416        make test
     417%$$
     418After executing $code make test$$, you can run an Adolc speed tests
    439419by executing the command $code ./adolc$$;
    440420see $cref speed_main$$ for the meaning of the command line
     
    484464$codei%
    485465        cd speed/fadbad
    486         make test.sh
    487         ./test.sh
    488 %$$
    489 After executing $code make test.sh$$, you can run a Fadbad speed tests
     466        make test
     467%$$
     468After executing $code make test$$, you can run a Fadbad speed tests
    490469by executing the command $code ./fadbad$$;
    491470see $cref speed_main$$ for the meaning of the command line
     
    511490$codei%
    512491        cd speed/sacado
    513         make test.sh
    514         ./test.sh
     492        make test
    515493%$$
    516494After executing $code make test$$, you can run a Sacado speed tests
     
    566544        #
    567545        cd cppad_ipopt/example
    568         make test.sh
    569         ./test.sh
     546        make test
    570547        #
    571548        cd ../test
    572         make test.sh
    573         ./test.sh
     549        make test
    574550        #
    575551        cd ../speed
    576         make test.sh
    577         ./test.sh
     552        make test
    578553%$$
    579554Once this has been done, you can execute the program
  • trunk/omh/multi_thread.omh

    r2096 r2178  
    8181$childtable%
    8282        cppad/local/parallel_ad.hpp%
    83         example/openmp_a11c.cpp%
    84         example/bthread_a11c.cpp%
    85         example/pthread_a11c.cpp%
    86         example/openmp_ad.cpp%
    87         example/bthread_ad.cpp%
    88         example/pthread_ad.cpp%
    89         openmp/run.cpp
     83        multi_thread/multi_thread.cpp%
     84        omh/thread_utility.omh
    9085%$$
    9186
  • trunk/omh/speed_adolc.omh

    r2014 r2178  
    4343$codei%
    4444        cd speed/adolc
    45         make test.sh
    46         ./test.sh
     45        make test
    4746%$$
    4847You can then run the corresponding speed tests
  • trunk/omh/speed_cppad.omh

    r2014 r2178  
    4343$codei%
    4444        cd speed/cppad
    45         make test.sh
    46         ./test.sh
     45        make test
    4746%$$
    4847You can then run the corresponding speed tests
  • trunk/omh/speed_double.omh

    r2014 r2178  
    4141$codei%
    4242        cd speed/double
    43         make test.sh
    44         ./test.sh
     43        make test
    4544%$$
    4645You can then run the corresponding speed tests
  • trunk/omh/speed_fadbad.omh

    r2014 r2178  
    4343$codei%
    4444        cd speed/double
    45         make test.sh
    46         ./test.sh
     45        make test
    4746%$$
    4847You can then run the corresponding speed tests
  • trunk/omh/speed_sacado.omh

    r2014 r2178  
    4444$codei%
    4545        cd speed/sacado
    46         make test.sh
    47         ./test.sh
     46        make test
    4847%$$
    4948You can then run the corresponding speed tests
  • trunk/omh/thread_utility.omh

    r2133 r2178  
    2121
    2222$childtable%
    23         multi_thread/arc_tan.cpp
     23        multi_thread/simple_ad.cpp%
     24        omh/thread_team.omh%
     25        omh/sum_i_inv.omh%
     26        omh/multi_newton.omh
    2427%$$
    2528
  • trunk/omh/whats_new_05.omh

    r2057 r2178  
    562562In addition, more correctness testing
    563563(
    564 $cref/More Testing/InstallUnix/make/More Testing/$$ ,
     564$code test_more/test_more$$ ,
    565565$xref/InstallWindows/More Correctness Testing/windows/$$
    566566)
  • trunk/omh/whats_new_06.omh

    r2057 r2178  
    365365The
    366366$cref/example.cpp/$$ and
    367 $cref/test_more/InstallUnix/make/More Testing/$$
     367$code test_more/test_more.cpp$$
    368368programs were
    369369changed to print out the number of tests that passed or failed instead
  • trunk/omh/whats_new_07.omh

    r2082 r2178  
    694694
    695695$$
    696 Add the $cref/openmp_sum_i_inv.cpp/$$ OpenMP example case.
     696Add the $cref sum_i_inv_time.cpp$$ OpenMP example case.
    697697$pre
    698698
     
    807807
    808808$subhead 03-15$$
    809 Add command line arguments to $cref/openmp_newton_example.cpp/$$, and
     809Add command line arguments to $code openmp_newton_example.cpp$$, and
    810810modified $code openmp/run.sh$$ to allow for more flexible testing.
    811811
  • trunk/omh/whats_new_08.omh

    r2014 r2178  
    424424The CppAD correctness tests assume that machine epsilon is less
    425425than $code 1e-13$$. A test for this has been added to the
    426 $code test_more/test_more$$ program; see
    427 $cref/--with-Testing/InstallUnix/make/More Testing/$$
    428 in Unix install instructions or
    429 $cref/more correctness testing/InstallWindows/More Correctness Testing/$$
    430 in Windows install instructions.
     426$code test_more/test_more$$ program.
    431427
    432428$head 01-08$$
  • trunk/omh/whats_new_11.omh

    r2114 r2178  
    1313$begin whats_new_11$$
    1414$spell
     15        inv
     16        bthread
     17        pthread
     18        pthreads
    1519        Std
    1620        retape
     
    6973assist you in learning about changes between various versions of CppAD.
    7074
     75$head 10-29$$
     76The following changes were merged in from $code branches/thread$$:
     77
     78$list number$$
     79Move $code openmp$$ to $code multi_thread/openmp$$.
     80and create $code multi_thread/bthread$$, $code multi_thread/pthread$$
     81with similar tests.
     82$lnext
     83Put multi-threading common code in $code multi_thread$$ directory
     84and threading system specific code in $codei%multi_thread/%threading%$$
     85for $icode threading$$ equal to $code openmp$$, $code bthread$$,
     86and $code pthread$$.
     87$lnext
     88Update the README file.
     89$lnext
     90Remove the $code bug/optimize.sh$$ file (no longer a bug).
     91$lnext
     92Make $cref arc_tan.cpp$$
     93utility that can be used by multiple multi-threading tests.
     94$lnext
     95Create $cref thread_team$$ specifications,
     96move OpenMP management to $cref openmp_team.cpp$$,
     97Boost thread management to $cref bthread_team.cpp$$,
     98and pthread management to $cref pthread_team.cpp$$.
     99$lnext
     100All of the make files were modified so that the command
     101$codep
     102        make test
     103$$
     104would run the tests for the current directory.
     105$lnext
     106Extend the multi-threading speed tests
     107$cref sum_i_inv$$ and $cref multi_newton$$ so they run
     108using Boost threads and pthreads (as well as OpenMP threads).
     109$lend
     110
    71111$head 10-14$$
    72112Fix some compiler warnings about shadowed variables that were
     
    78118$code pthread_barrier_wait$$ function; i.e., is not compliant with
    79119the IEEE Std 1003.1, 2004 Edition for $code pthread$$.
    80 This caused the $cref pthread_ad.cpp$$ to fail to compile on the MAC.
     120This caused the $code pthread_simple_ad.cpp$$ to fail to compile on the MAC.
    81121This has been fixed by not compiling the $code pthread$$ examples
    82122unless $code pthread_barrier_wait$$ is present.
     
    94134        boost multi-threading
    95135%$$
    96 examples $cref bthread_a11c.cpp$$ and $cref bthread_ad.cpp$$.
     136examples $cref bthread_a11c.cpp$$ and $code bthread_simple_ad.cpp$$.
    97137$lnext
    98138Improve documentation for
     
    100140to $code parallel_setup$$.
    101141$lnext
    102 More simplification of $cref bthread_ad.cpp$$ example.
     142More simplification of $code bthread_simple_ad.cpp$$ example.
    103143$lend
    104144
    105145$head 09-05$$
    106 Simply and fix some problems with $cref pthread_ad.cpp$$,
    107 (including avoiding a
    108 $cref/pthread_exit Bug in Cygwin/pthread_ad.cpp/pthread_exit Bug in Cygwin/$$).
     146Simply and fix some problems with $code pthread_simple_ad.cpp$$,
     147including avoiding a $cref/Bug in Cygwin/pthread_team.cpp/Bug in Cygwin/$$.
    109148
    110149$head 09-02$$
    111150$list number$$
    112 The OpenMP speed test program $cref/run.cpp/openmp_run.cpp/$$ was not setting
     151The OpenMP speed test program $code openmp/run.cpp$$ was not setting
    113152the number of threads for the one thread case (so dynamic thread adjustment was
    114153used). This has been fixed.
     
    128167has been documented and is now part of the CppAD API.
    129168$lnext
    130 The $cref/pthread_ad.cpp/$$ test failed under cygwin.
    131 This was because the previous test $cref/openmp_ad.cpp/$$ was
     169The $code pthread_simple_ad.cpp$$ test failed under cygwin.
     170This was because the previous test $code openmp_ad.cpp$$ was
    132171set up calls to OpenMP routines that were still in effect
    133 when $code pthread_ad$$ ran.
     172when $code pthread/simple_ad$$ ran.
    134173This has been fixed by making
    135174$icode%num_threads% == 1%$$ a special case in
     
    159198$subhead 08-31$$
    160199$list number$$
    161 Move the $cref openmp_sum_i_inv.cpp$$ test from
     200Move the $cref sum_i_inv_time.cpp$$ test from
    162201$code openmp/run.sh$$ to $code openmp/run.cpp$$.
    163202$lnext
     
    169208$subhead 08-30$$
    170209$list number$$
    171 Create the $cref%openmp/run.cpp%openmp_run.cpp%$$ program
    172 and move the $cref openmp_newton_example.cpp$$ test from
     210Create the $code openmp/run.cpp$$ program
     211and move the $code openmp_multi_newton.cpp$$ test from
    173212$code openmp/run.sh$$ to $code openmp/run.cpp$$.
    174213This uses $cref/configure/InstallUnix/Configure/$$
     
    179218$lnext
    180219Move $code openmp/multi_newton.hpp$$ to
    181 $cref%openmp/newton_method.hpp%openmp_newton_method.hpp%$$ and
     220$code openmp/newton_method.hpp$$ and
    182221$code openmp/multi_newton.cpp$$ to
    183 $cref%openmp/newton_example.cpp%openmp_newton_example.cpp%$$.
     222$code openmp/newton_example.cpp$$.
    184223$lend
    185224
     
    192231sections.
    193232$lnext
    194 Create the $cref pthread_ad.cpp$$ example that does AD using the
     233Create the $code pthread_simple_ad.cpp$$ example that does AD using the
    195234pthread library.
    196 In addition, fix some problems in $cref openmp_ad.cpp$$
     235In addition, fix some problems in $code openmp_simple_ad.cpp$$
    197236$lnext
    198237Move $code openmp/example_a11c.cpp$$ to
     
    200239$lnext
    201240Move $code openmp/parallel_ad.cpp$$ to
    202 $cref|example/openmp_ad.cpp|openmp_ad.cpp|$$.
     241$code openmp_simple_ad.cpp$$.
    203242$lend
    204243
     
    226265$cref/openmp_a11c.cpp/$$,
    227266$cref/pthread_a11c.cpp/$$, and
    228 $cref/openmp_ad.cpp/$$.
     267$code openmp_simple_ad.cpp$$.
    229268These OpenMP examples were originally in the $code openmp$$ directory,
    230269and have been moved, and modified to conform, to the normal example directory.
     
    461500$lnext
    462501Change $cref/memory_leak/$$ so that it checks for a leak in all threads.
    463 This is what $cref/openmp_newton_example.cpp/$$ and
    464 $cref/openmp_sum_i_inv.cpp/$$
     502This is what $code openmp_newton_example.cpp$$ and
     503$cref sum_i_inv_time.cpp$$
    465504assumed was being done.
    466505$lend
     
    650689$head 04-19$$
    651690The $icode use_ad$$ option was added to the
    652 $cref/openmp_newton_example.cpp/$$ test case.
     691$code openmp_newton_example.cpp$$ test case.
    653692
    654693$head 03-19$$
  • trunk/omh/wish_list.omh

    r2122 r2178  
    6060that it works with complex AD types.
    6161
    62 $head Debugging$$
    63 $index Debug$$
    64 The $cref/PrintFor/$$ command should be extended to print
    65 information depending on a condition.
    66 This will enable the CppAD user to generate error messages under specific
    67 certain conditions during $cref/zero order forward/ForwardZero/$$ mode.
    68 For example,
    69 $codei%
    70         PrintFor(%text%, %y%, %z%)
    71 %$$
    72 could print the $icode text$$ followed by the value for the variable $icode y$$
    73 if and only if the variable $icode z$$ is less than or equal zero.
    74 
    7562
    7663$head Ipopt$$
  • trunk/print_for/makefile.am

    r1986 r2178  
    4949        echo "if ! diff test.1 test.2 ; then exit 1 ; fi"       >> test.sh
    5050        chmod +x test.sh
     51
     52test: test.sh
     53        ./test.sh
  • trunk/print_for/makefile.in

    r2096 r2178  
    484484        chmod +x test.sh
    485485
     486test: test.sh
     487        ./test.sh
     488
    486489# Tell versions [3.59,3.63) of GNU make to not export all variables.
    487490# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/print_for/print_for.cpp

    r2057 r2178  
    4444$codei%
    4545        cd print_for
    46         make test.sh
    47         ./test.sh
     46        make test
    4847%$$
    4948
  • trunk/speed/adolc/makefile.am

    r1986 r2178  
    5252        echo "./adolc correct 123 retape" >> test.sh
    5353        chmod +x test.sh
     54
     55test: test.sh
     56        ./test.sh
  • trunk/speed/adolc/makefile.in

    r2096 r2178  
    514514        chmod +x test.sh
    515515
     516test: test.sh
     517        ./test.sh
     518
    516519# Tell versions [3.59,3.63) of GNU make to not export all variables.
    517520# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/speed/cppad/makefile.am

    r1986 r2178  
    5555        echo "./cppad correct 123 optimize" >> test.sh
    5656        chmod +x test.sh
     57
     58test: test.sh
     59        ./test.sh
  • trunk/speed/cppad/makefile.in

    r2096 r2178  
    517517        chmod +x test.sh
    518518
     519test: test.sh
     520        ./test.sh
     521
    519522# Tell versions [3.59,3.63) of GNU make to not export all variables.
    520523# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/speed/double/makefile.am

    r1986 r2178  
    5353        echo "./double correct 123"    >> test.sh
    5454        chmod +x test.sh
     55
     56test: test.sh
     57        ./test.sh
  • trunk/speed/double/makefile.in

    r2096 r2178  
    516516        chmod +x test.sh
    517517
     518test: test.sh
     519        ./test.sh
     520
    518521# Tell versions [3.59,3.63) of GNU make to not export all variables.
    519522# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/speed/example/example.cpp

    r2082 r2178  
    2929$codei%
    3030        cd speed/example
    31         make test.sh
    32         ./test.sh
     31        make test
    3332%$$
    3433
  • trunk/speed/example/makefile.am

    r1986 r2178  
    4646        echo "./example"     >> test.sh
    4747        chmod +x test.sh
     48
     49test: test.sh
     50        ./test.sh
  • trunk/speed/example/makefile.in

    r2096 r2178  
    497497        chmod +x test.sh
    498498
     499test: test.sh
     500        ./test.sh
     501
    499502# Tell versions [3.59,3.63) of GNU make to not export all variables.
    500503# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/speed/fadbad/makefile.am

    r1986 r2178  
    5252        echo "./fadbad correct 123"         >> test.sh
    5353        chmod +x test.sh
     54
     55test: test.sh
     56        ./test.sh
  • trunk/speed/fadbad/makefile.in

    r2096 r2178  
    515515        chmod +x test.sh
    516516
     517test: test.sh
     518        ./test.sh
     519
    517520# Tell versions [3.59,3.63) of GNU make to not export all variables.
    518521# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/speed/profile/makefile.am

    r1986 r2178  
    5353        echo "./profile correct 123"        >> test.sh
    5454        chmod +x test.sh
     55
     56test: test.sh
     57        ./test.sh
  • trunk/speed/profile/makefile.in

    r2096 r2178  
    616616        chmod +x test.sh
    617617
     618test: test.sh
     619        ./test.sh
     620
    618621# Tell versions [3.59,3.63) of GNU make to not export all variables.
    619622# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/speed/sacado/makefile.am

    r1986 r2178  
    5252        echo "./sacado correct 123"         >> test.sh
    5353        chmod +x test.sh
     54
     55test: test.sh
     56        ./test.sh
  • trunk/speed/sacado/makefile.in

    r2096 r2178  
    516516        chmod +x test.sh
    517517
     518test: test.sh
     519        ./test.sh
     520
    518521# Tell versions [3.59,3.63) of GNU make to not export all variables.
    519522# Otherwise a system limit (for SysV at least) may be exceeded.
  • trunk/test_more/makefile.am

    r2057 r2178  
    130130        echo "./test_more "  >> test.sh
    131131        chmod +x test.sh
     132
     133test: test.sh
     134        ./test.sh
  • trunk/test_more/makefile.in

    r2096 r2178  
    684684        chmod +x test.sh
    685685
     686test: test.sh
     687        ./test.sh
     688
    686689# Tell versions [3.59,3.63) of GNU make to not export all variables.
    687690# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.