Index of /dist/tests

[ICO]NameLast modifiedSize

[PARENTDIR]Parent Directory  -
[DIR]upcr-harness/2018-07-19 13:23 -
[TXT]testvisperf.c2018-07-19 12:45 21K
[TXT]testvis.c2018-07-19 12:45 46K
[TXT]testval.c2018-07-19 12:45 14K
[TXT]testtoolscxx.cc2018-07-19 12:45 266
[TXT]testtools.c2018-07-19 12:45 61K
[TXT]testthreads.c2018-07-19 12:45 21K
[TXT]testteambcast.c2018-07-19 12:45 7.0K
[TXT]testteambarrier.c2018-07-19 12:45 4.3K
[TXT]testteam.c2018-07-19 12:45 3.7K
[TXT]testsmall.c2018-07-19 12:45 16K
[TXT]testslice.c2018-07-19 12:45 5.0K
[TXT]testreduceperf.c2018-07-19 12:45 148
[TXT]testrand.c2018-07-19 12:45 3.7K
[TXT]testqueue.c2018-07-19 12:45 21K
[TXT]testnbr.c2018-07-19 12:45 35K
[TXT]testmpi.c2018-07-19 12:45 13K
[TXT]testmisc.c2018-07-19 12:45 22K
[TXT]testmemset.c2018-07-19 12:45 8.9K
[TXT]testlogGP.c2018-07-19 12:45 10K
[TXT]testlockcontend.c2018-07-19 12:45 6.6K
[TXT]testlarge.c2018-07-19 12:45 12K
[TXT]testinternal.c2018-07-19 12:45 1.6K
[TXT]testhsl.c2018-07-19 12:45 7.5K
[TXT]testhello.c2018-07-19 12:45 2.0K
[TXT]testgasnet.c2018-07-19 12:45 25K
[TXT]testgallperf.c2018-07-19 12:45 152
[TXT]testexit.c2018-07-19 12:45 14K
[TXT]testexchangeperf.c2018-07-19 12:45 150
[TXT]testenv.c2018-07-19 12:45 2.1K
[TXT]testcxx.cc2018-07-19 12:45 332
[TXT]testcore5.c2018-07-19 12:45 11K
[TXT]testcore4.c2018-07-19 12:45 11K
[TXT]testcore3.c2018-07-19 12:45 4.2K
[TXT]testcore2.c2018-07-19 12:45 13K
[TXT]testcore1.c2018-07-19 12:45 6.0K
[TXT]testcontend.c2018-07-19 12:45 17K
[TXT]testcollperf.c2018-07-19 12:45 43K
[TXT]testcoll.c2018-07-19 12:45 29K
[TXT]testbcastperf.c2018-07-19 12:45 151
[TXT]testbarrierlate.c2018-07-19 12:45 6.6K
[TXT]testbarrierconf.c2018-07-19 12:45 16K
[TXT]testbarrier.c2018-07-19 12:45 6.7K
[TXT]testam.c2018-07-19 12:45 29K
[TXT]testalign.c2018-07-19 12:45 9.4K
[TXT]test.h2018-07-19 12:45 52K
[TXT]delay.c2018-07-19 12:45 927
[TXT]README2018-07-19 12:45 3.3K
[   ]Makefile.in2018-07-19 12:45 20K

This directory contains correctness tests and performance microbenchmarks for
GASNet. For convenience, the mpi directory also contains some comparable MPI
performance microbenchmarks, some contributed from outside sources.

See the top-level GASNet README for information on running all the tests using
the GASNet Makefile-based test harness.  
See comments at the top of each file for test description, and run any test with
--help to see usage information for individual tests.

Coding standards for GASNet tests:
All GASNet test code must adhere to the following coding standards:

* All of the general linguistic coding standards listed in the top-level GASNet README-devel

* Tests should only use public GASNet interfaces (ie prefixed with gasnet_ or gasnett_).
Tests must never invoke gasneti_, gasnetc_ or gasnete_ interfaces - this ensures test
portability across GASNet conduits and GASNet implementations. Any tests of GASNet 
internal functionality belong in ../gasnet_diagnostic.c, where they will be invoked 
by testinternal.

* test.h contains numerous tools which capture common idioms for GASNet test
code. Test authors should be familiar with the services provided by this
header and use them rather than re-implementing ad-hoc solutions. 


 - All tests must invoke test_init immediately after attach to register usage info
   and init the framework. Failures in argument parsing should call test_usage().
 - Tests needing segment space should use TEST_SEGSZ_REQUEST and TEST_SEG instead 
   of gasnet_getSegmentInfo, as the former handles SEGMENT_EVERYTHING correctly

 - Barriers should be written as BARRIER(), unless there's a reason to directly
   invoke the GASNet barrier functions (like testing barrier correctness)

 - Threaded barriers should use PTHREAD_BARRIER(numthreads) or PTHREAD_LOCALBARRIER(numthreads)

 - Non-fatal errors should issue a message using ERR("msg",...) (works just like printf)

 - Fatal errors should be written as FATALERR("msg",...) (works just like gasnett_fatalerror)

 - Informational messages should use MSG("msg",...) instead of printf,
   or MSG0("msg",...) if the message is collective and should only be issued by node 0

 - Allocation should use test_malloc, test_calloc, test_free

 - Calls to the core API should be surrounded with GASNET_Safe()

 - Pthread creation should be done using test_createandjoin_pthreads

 - Timing should be done with TIME() or gasnett_ticks_now() (latter provides ns granularity) 

 - Tests needing random numbers should use TEST_RAND and friends, and should
   include an optional seed argument that is passed to TEST_SRAND

 - Tests with many optional parts should use the TEST_SECTION* interface

 - Tests needing a computational delay should use test_delay

In all cases, see existing tests for examples of correct usage.

* All else being equal, when writing new test code it's usually preferable to
expand an existing test with related functionality rather than creating a
whole new test, unless one is testing a truly novel aspect of functionality or
performance. This helps to reduce build time and nightly test cost for the tests.

* New tests should be added to tests/ (with appropriate arguments, if necessary)
and also to upcr/upc-tests/gasnet-tests/harness.conf