1. 23 Nov, 2014 1 commit
    • Min Si's avatar
      Set default test level of mtest-datatype through env var. · 3f5194a0
      Min Si authored
      
      
      Three datatype test levels are defined: basic,min,full(default
      full).  The default level can be overwritten in runtime by
      setting environment variable MPITEST_DATATYPE_TEST_LEVEL.
      
      An MPI test can also specify different level for each datatype
      loop by calling corresponding datatype test initialization function
      before that loop, otherwise the default version is used.
      
          Basic     : MTestInitBasicDatatypes
          Minimum   : MTestInitMinDatatypes
          Full      : MTestInitFullDatatypes
      Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
      3f5194a0
  2. 12 Nov, 2014 1 commit
  3. 05 Nov, 2014 4 commits
    • Min Si's avatar
      Add min version of mtest datatype generator. · 7b1e86b4
      Min Si authored
      
      
      Some mpi tests such as bcast2 and bcast3 take 20mins to run all the
      datatypes on tcp. Therefore, we also define a minimum version of the
      datatype generator which only generates vector and indexed tests so that
      such heavy tests can use the min version to shorten time.
      
      We enable the full version by default, tests can turn to min version by
      calling the corresponding init func before datatype loop.
      
      In coll/bcast2, coll/bcast3 and pt2pt/pingpong tests, we change to min
      version from the second datatype loop.
      Signed-off-by: default avatarWesley Bland <wbland@anl.gov>
      7b1e86b4
    • Min Si's avatar
      Add new datatypes in mtest_datatype. · 1c9e18f5
      Min Si authored
      
      
      Add hvector, hindexed, indexed_block, hindexed_block, struct,
      subarray with order-c and subarray with order-fortran datatypes.
      Signed-off-by: default avatarWesley Bland <wbland@anl.gov>
      1c9e18f5
    • Min Si's avatar
      Move datatype reset to mtest_datatype.c · 68832c84
      Min Si authored
      
      Signed-off-by: default avatarWesley Bland <wbland@anl.gov>
      68832c84
    • Min Si's avatar
      Separate and rewrite mtest datatype. · 2f896172
      Min Si authored
      
      
      This patch separates mtest datatype from file mtest.c and then rewrites
      the whole structure for applying various test patterns and datatypes.
      
      We separate mtest datatype funcs and test generators.
      1. In mtest_datatype_gen.c, we generate test cases for both basic and
      derived datatype.
      2. In mtest_datatype.c, we define the MTestDatatype creator,
      init/free/check functions for each derived datatype in order to reuse in
      multiple test cases generated by 1.
      
      About test case definition:
      1. For every basic datatype, we only define one test case using
      the same type for both send and receive buffers.
      2. For every derived datatype, we test ddt send buffer and receive
      buffer separately, each with contig buffer on the other side. We define
      following four different ddt structures for each test:
      	a.large block length
      	b.large count
      	c.large block length and large stride
      	d.large count and large stride
      Signed-off-by: default avatarWesley Bland <wbland@anl.gov>
      2f896172