1
1
Граф коммитов

618 Коммитов

Автор SHA1 Сообщение Дата
Nathan Hjelm
0325100823 Fix PGI compilation of opal_condition test
PGI was failing to build this test due to the {} initializers of some
of the global variables. The initializers were added to remove common
symbols from the test repository. This commit removes the initializers
and makes the variables static which should fix both the compile issue
and avoid the common symbols.

This commit additionally removes the check for
OPAL_ENABLE_MULTI_THREADS since Open MPI requires thread support.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2015-07-01 09:10:49 -06:00
Nathan Hjelm
ee36d813dc Merge pull request #657 from hjelmn/c99
more c99 updates
2015-06-25 11:21:09 -06:00
Nathan Hjelm
4d92c9989e more c99 updates
This commit does two things. It removes checks for C99 required
headers (stdlib.h, string.h, signal.h, etc). Additionally it removes
definitions for required C99 types (intptr_t, int64_t, int32_t, etc).

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
2015-06-25 10:14:13 -06:00
rhc54
1a767ed47c Merge pull request #654 from rhc54/topic/config
Remove internal bool type definitions
2015-06-25 09:10:21 -07:00
Ralph Castain
57b7c44aec Cleanup the rest of the no-longer-required bool configury 2015-06-24 08:25:49 -07:00
Ralph Castain
869041f770 Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
Gilles Gouaillardet
89882f11bd rewrite ddt_pack test
so make check works without make install
2015-05-07 18:14:32 +09:00
Jeff Squyres
98943d3c8b test/datatype: move ddt_pack to MPI_CHECKS
This still leaves the test disabled (per
b25a7bfe14), but it does still build the
test.
2015-05-02 03:57:19 -07:00
Jeff Squyres
b25a7bfe14 test/datatype: temporarily disable ddt_pack test
This test needs to be tweaked to not use MPI_Init (and only use
opal_init_util(), per #568).  @ggouaillardet can't get to this until
next week sometime, so we're just temporarily disabling it for now.

Fixes #568
2015-05-02 03:53:08 -07:00
George Bosilca
53e9543be4 This test should pass. 2015-04-30 22:51:27 -04:00
George Bosilca
27c3631466 Correctly free the temporary datatypes 2015-04-30 22:51:01 -04:00
George Bosilca
267fdfe435 Add a corner case for struct with multiple predefined types.
Cleanup the datatypes once they are not useful.
Other minor fixes.
2015-04-30 22:06:49 -04:00
Gilles Gouaillardet
06ee9f9ddf enhance test/datatype/ddt_pack
* add a simple test with MPI_Type_vector
 * add some extra checks : (true)lower_bound and (true)extent
   of original and unpacked ddt should match
2015-04-30 15:04:53 +09:00
Gilles Gouaillardet
ed0c48de74 test/datatype/ddt_pack fix
unpacking a packed MPI_INT returns MPI_INT32T instead of MPI_INT
2015-04-30 15:04:53 +09:00
George Bosilca
424b8f170d Another uninitialized common symbol removed. 2015-04-25 14:04:56 -04:00
George Bosilca
98cca1b6b3 Remove all uninitialized common symbols in the test directory. 2015-04-25 13:54:45 -04:00
Jeff Squyres
4f1139590f datatypes: trivial spelling fix
s/commited/committed/gi
2015-02-27 18:16:01 -08:00
Ralph Castain
fcd2d9ac39 Silence warnings in the test directory 2015-02-27 08:12:03 -08:00
Nathan Hjelm
5f1254d710 Update code base to use the new opal_free_list_t
Use of the old ompi_free_list_t and ompi_free_list_item_t is
deprecated. These classes will be removed in a future commit.

This commit updates the entire code base to use opal_free_list_t and
opal_free_list_item_t.

Notes:

OMPI_FREE_LIST_*_MT -> opal_free_list_* (uses opal_using_threads ())

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2015-02-24 10:05:45 -07:00
Jeff Squyres
6af4f1896c test: these files are not used any more
The functions in components.* are not used by any tests.  Removing
this old kruft.
2015-01-30 14:30:14 -08:00
Gilles Gouaillardet
661c35ca67 cleanup dead code caused by the removal of the --with-threads configure option 2015-01-16 19:13:59 +09:00
George Bosilca
82c02b471e Take in acount the lower bound of the data. 2014-12-20 21:28:58 -05:00
George Bosilca
4f9a3bdbab Correctly compute the size of the needed memory for the datatype tests.
Fixes open-mpi/ompi#294.
2014-12-20 01:30:37 -05:00
George Bosilca
cf3ff3fe58 This was not supposed to be part of the 1895f29 commit. 2014-12-19 09:55:18 -05:00
George Bosilca
1895f29537 Remove all warnings from the datatype tests. 2014-12-18 02:58:21 -05:00
Nathan Hjelm
bc33b7a71d Add check for timersub to opal_lifo and opal_fifo tests
Some platforms do not provide a timersub macro. This commit adds a definition
to both tests when running on one of these platforms.
2014-12-17 22:16:15 -07:00
Ralph Castain
91bec7e9dd Fix some type declarations so make check works for SPARC. Thanks to Paul Hargrove for the report and correction 2014-12-15 06:44:51 -08:00
Nathan Hjelm
da5e3ce936 test/class: update class tests to also use opal_finalize_util 2014-12-10 17:50:26 -07:00
Jeff Squyres
b1e9e7f56f Whitespace cleanup only; no code changes 2014-12-10 13:32:04 -08:00
Jeff Squyres
8b2410f554 class tests: re-enable a bunch of tests
Many of these tests were failing due to opal_init() failing in some
cases (because the opal shmem framework needs installed components, so
"make distcheck" would fail these tests because the opal shmem
components were not installed).  However, all of these tests seem to
be fine with opal_init_util() -- so let's re-enable these tests.
2014-12-10 13:30:14 -08:00
Jeff Squyres
ff2a75b29b class tests: change from opal_init() to opal_init_util() 2014-12-10 13:29:38 -08:00
Nathan Hjelm
1231bb7479 Update lifo and fifo tests to use opal_init/finalize_util so they work during make distcheck 2014-12-09 17:41:18 -07:00
Ralph Castain
04c6d1d01d Silence warnings 2014-12-09 16:10:58 -08:00
Nathan Hjelm
b2b7ecc7c4 Merge pull request #300 from hjelmn/topic/atomic_lifo_fifo
Add opal_fifo_t class and rename opal_atomic_lifo_t to opal_lifo_t
2014-12-09 10:54:50 -06:00
Ralph Castain
595740a8e3 Sigh - readd missing headers 2014-12-05 21:54:41 -08:00
Ralph Castain
4a0b4ad5ef You can't have a variable of the same name as the function... 2014-12-05 21:50:40 -08:00
Ralph Castain
aff1f0ee49 Add missing header files 2014-12-05 19:03:21 -08:00
Nathan Hjelm
23d59b0f5d Fix one typo in opal_path_nfs.c 2014-12-05 13:13:35 -07:00
Nathan Hjelm
0fc8777aa8 opal_path_nfs test: do not try to test filesystems that can not be stat'd 2014-12-05 13:11:45 -07:00
Jeff Squyres
9b18b4b2d2 opal_path_nfs: enable debugging output
Now that "make check" siphons off stdout/stderr to logfiles, it's ok
to have output by default from tests.  This test fails often enough
that it's useful to see the diagnostic output.
2014-12-05 03:19:51 -08:00
Nathan Hjelm
3aefd78842 Add lifo and fifo checks to make check 2014-12-04 16:03:47 -07:00
Nathan Hjelm
d1114ec17a Add opal_fifo_t class
This commit adds a new class: opal_fifo.h. The new class has atomic, non-atomic,
and opal_using_threads() conditoned routines. It should be used when first-in
first-out is required and should perform much better than using locks and an
opal_list_t. Like with opal_lifo_t there are two versions of the atomic
implementation: 128-bit compare-and-swap, and spin-locked. More implementations
can be added later (LL/SC comes to mind).

This commit also adds a unit test for the opal_fifo_t class. This test verifies
the fifo implementation when using multiple threads.
2014-12-04 15:30:02 -07:00
Nathan Hjelm
20c6eb5237 Rename opal_atomic_lifo_t to opal_lifo_t and improve interface
- Rename opal_atomic_lifo_t to opal_lifo_t to reflect both atomic and
   non-atomic usage. Added new routines (opal_lifo_*_st) for non-atomic
   usage as well as routines conditioned off opal_using_threads(). The
   atomic versions are always thread safe and the non-atomic are always
   not thread safe.

 - Add a new atomic lifo implementation that makes use of 128-bit
   compare-and-swap. The new implementation should scale better with
   larger numbers of threads.

 - Add threading unit test for opal_lifo_t.
2014-12-04 15:30:02 -07:00
George Bosilca
8ee501350b Implement strict validation for the packing/unpacking of the data. 2014-12-02 16:22:18 +09:00
Ralph Castain
53af0f1594 Temporarily turn off a specific datatype test that is preventing the nightly tarball from running 2014-12-01 19:52:37 -08:00
George Bosilca
59b739ee90 Add a resized datatype to the test. Implement generic
data corectness for most of the conversion functions.
2014-11-29 19:47:25 -05:00
George Bosilca
ee3d1ed5fd Add tests for vector type. 2014-11-24 01:52:49 -05:00
Ralph Castain
780c93ee57 Per the PR and discussion on today's telecon, extend the process name definition as a two-field struct of uint32_t's down to the OPAL layer. This resolves issues created by prior commits that impacted both heterogeneous and SPARC support. This also simplifies the OMPI code base by removing the need for frequent memcpy's when transitioning between the OMPI/ORTE layers and OPAL.
We recognize that this means other users of OPAL will need to "wrap" the opal_process_name_t if they desire to abstract it in some fashion. This is regrettable, and we are looking at possible alternatives that might mitigate that requirement. Meantime, however, we have to put the needs of the OMPI community first, and are taking this step to restore hetero and SPARC support.
2014-11-11 17:00:42 -08:00
Jeff Squyres
01fd96bfa5 Revert "Provide a mechanism by which an upstream project can rename
the OPAL and ORTE libraries. This is required by projects such as ORCM
that have their own ORTE and OPAL libraries in order to avoid library
confusion. By renaming their version of the libraries, the OMPI
applications can correctly dynamically load the correct one for their
build."

This reverts commit 63f619f871.
2014-10-22 10:32:11 -07:00
George Bosilca
7541c03b4c Mark all instances where atomic operations are used but their return value is unnecessary 2014-10-15 21:47:32 -04:00