passlab / rexompiler

REX OpenMP Compiler
https://passlab.github.io/rexompiler/
Other
1 stars 1 forks source link

Missing CMakefiles in the tests #102

Open ouankou opened 3 years ago

ouankou commented 3 years ago

To test our development, three groups of tests are performed.

  1. https://github.com/passlab/rexompiler/tree/main/tests/nonsmoke/functional/roseTests/astInterfaceTests
  2. https://github.com/passlab/rexompiler/tree/main/tests/nonsmoke/functional/roseTests/ompLoweringTests
  3. https://github.com/passlab/rexompiler/tree/main/tests/nonsmoke/functional/CompileTests/OpenMP_tests

The first two folders don't have CMakefiles, therefore we can't test them if CMake is used for building the REX compiler. Since the omp lowering is still under development and not in a relatively stable state, we can ignore it for now. The CMakefile of OpenMP tests is mostly fine and just needs a few tweaks. Thus, we only need to add a CMakefile for astInterfaceTests.

ouankou commented 3 years ago

While using cmake to build the REX compiler, the following tests failed. (run make test instead of make check in OpenMP_tests folder) We need to update the CMakefile for OpenMP_tests to address those cases:

  1. The file lists should be synchronized with makefile.am. New test cases have been added over time and some old test cases are disabled.
  2. Some cases failed while using cmake but succeed while using automake. They need to be particularly checked.
awang15@fornax:~/Projects/rexdev/rex_build/tests/nonsmoke/functional/CompileTests/OpenMP_tests$ make test
Running tests...
...
82% tests passed, 32 tests failed out of 178

Label Time Summary:
OMPACCTEST    =   2.47 sec*proc (5 tests)
OMPTEST       = 186.11 sec*proc (173 tests)

Total Test time (real) = 188.69 sec

The following tests FAILED:
      2 - OMPTEST_jacobi.c (Failed)
      3 - OMPTEST_alignment.c (Failed)
      8 - OMPTEST_collapse.c (Subprocess aborted)
     48 - OMPTEST_md_open_mp.c (Failed)
    103 - OMPTEST_task_untied4.c (Subprocess aborted)
    105 - OMPTEST_task_wait.c (Failed)
    106 - OMPTEST_task_wait2.c (Failed)
    114 - OMPTEST_classMember.cpp (Failed)
    115 - OMPTEST_hello1.cpp (Failed)
    116 - OMPTEST_helloNested.cpp (Failed)
    117 - OMPTEST_memberFunction.cpp (Failed)
    118 - OMPTEST_objectPrivate.cpp (Failed)
    119 - OMPTEST_objectFirstPrivate.cpp (Failed)
    120 - OMPTEST_objectLastprivate.cpp (Failed)
    121 - OMPTEST_orphanedAtomic.cpp (Failed)
    122 - OMPTEST_preprocessingInfo2.cpp (Failed)
    123 - OMPTEST_task_link.cpp (Failed)
    124 - OMPTEST_task_link2.cpp (Failed)
    125 - OMPTEST_task_tree.cpp (Failed)
    126 - OMPACCTEST_axpy_ompacc.c (Failed)
    129 - OMPACCTEST_jacobi-ompacc.c (Failed)
    130 - OMPACCTEST_jacobi-ompacc-opt1.c (Failed)
    133 - OMPTEST_for_firstprivate.c (Failed)
    134 - OMPTEST_for_lastprivate.c (Failed)
    135 - OMPTEST_for_ordered.c (Failed)
    136 - OMPTEST_for_private.c (Failed)
    137 - OMPTEST_for_reduction.c (Failed)
    142 - OMPTEST_omp_atomic.c (Failed)
    159 - OMPTEST_parallel_for_firstprivate.c (Failed)
    160 - OMPTEST_parallel_for_lastprivate.c (Failed)
    162 - OMPTEST_parallel_for_private.c (Failed)
    163 - OMPTEST_parallel_for_reduction.c (Failed)
yanyh15 commented 1 year ago

@pflynn157 this issue is related to use cmake for testing