build failed: 3 - affinity.debug

156 views
Skip to first unread message

Josh Ducey

unread,
Jul 22, 2014, 3:37:23 PM7/22/14
to dea...@googlegroups.com
Hi,

I am trying to install deal.II to my laptop running OS X 10.9.2.  In the directory where I extracted the .tar file I typed the following commands with no errors:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=~/bin/deal.II ../deal.II
make install

When I then tried to execute "make test", the output shows that tests 1, 2, and 4 were passed, but test 3 failed.  I have attached the output below in case someone can help me.  I would greatly appreciate any assistance!  Thanks for your time.


Joshuas-MacBook-Pro:build joshuaducey$ make test

[  0%] Built target expand_instantiations_exe

[  0%] Built target obj_meshworker.inst

[  0%] Built target obj_meshworker.release

[  8%] Built target obj_umfpack_I_UMF.release

[ 10%] Built target obj_dofs.inst

[ 12%] Built target obj_dofs.release

[ 12%] Built target obj_umfpack_DI_TRIPLET_NOMAP_X.release

[ 14%] Built target obj_umfpack_DL_TRIPLET_MAP_NOX.release

[ 14%] Built target obj_umfpack_DL_STORE.release

[ 19%] Built target obj_umfpack_I_UMFPACK.release

[ 25%] Built target obj_umfpack_L_UMFPACK.release

[ 25%] Built target obj_umfpack_DI_TRIPLET_MAP_NOX.release

[ 25%] Built target obj_umfpack_DL_TRIPLET_MAP_X.release

[ 33%] Built target obj_umfpack_L_UMF.release

[ 33%] Built target obj_umfpack_DI_TRIPLET_MAP_X.release

[ 33%] Built target obj_umfpack_DI_STORE.release

[ 33%] Built target obj_umfpack_DI_TSOLVE.release

[ 33%] Built target obj_umfpack_DL_TRIPLET_NOMAP_X.release

[ 35%] Built target obj_umfpack_DI_ASSEMBLE.release

[ 35%] Built target obj_umfpack_DI_SOLVE.release

[ 35%] Built target obj_umfpack_DL_TSOLVE.release

[ 35%] Built target obj_umfpack_DL_ASSEMBLE.release

[ 35%] Built target obj_umfpack_DL_SOLVE.release

[ 35%] Built target obj_umfpack_GENERIC.release

[ 35%] Built target obj_amd_global.release

[ 41%] Built target obj_boost_serialization.release

[ 46%] Built target obj_tbb.release

[ 48%] Built target obj_amd_int.release

[ 48%] Built target obj_functionparser.release

[ 51%] Built target obj_amd_long.release

[ 57%] Built target obj_fe.inst

[ 62%] Built target obj_fe.release

[ 66%] Built target obj_numerics.inst

[ 69%] Built target obj_numerics.release

[ 73%] Built target obj_lac.inst

[ 82%] Built target obj_lac.release

[ 82%] Built target obj_base.inst

[ 89%] Built target obj_base.release

[ 91%] Built target obj_grid.inst

[ 94%] Built target obj_grid.release

[ 96%] Built target obj_hp.inst

[ 96%] Built target obj_hp.release

[ 98%] Built target obj_multigrid.inst

[ 98%] Built target obj_multigrid.release

[ 98%] Built target obj_distributed.inst

[ 98%] Built target obj_distributed.release

[100%] Built target obj_matrix_free.inst

[100%] Built target obj_matrix_free.release

[100%] Built target obj_algorithms.inst

[100%] Built target obj_algorithms.release

[100%] Built target obj_integrators.release

[100%] Built target deal_II

Scanning dependencies of target build_library

[100%] Built target build_library

Scanning dependencies of target test

Test project /Users/joshuaducey/Desktop/deal/build/tests/quick_tests

    Start 1: step.debug

1/4 Test #1: step.debug .......................   Passed    9.32 sec

    Start 2: step.release

2/4 Test #2: step.release .....................   Passed    7.79 sec

    Start 3: affinity.debug

3/4 Test #3: affinity.debug ...................***Failed    6.15 sec

/Users/joshuaducey/Desktop/deal/deal.II/tests/quick_tests/affinity.cc:26:3: error: unknown type name 'cpu_set_t'

  cpu_set_t my_set;

  ^

/Users/joshuaducey/Desktop/deal/deal.II/tests/quick_tests/affinity.cc:39:18: error: use of undeclared identifier 'CPU_SETSIZE'

  for (int i=0;i<CPU_SETSIZE;++i)

                 ^

2 errors generated.

make[7]: *** [tests/quick_tests/CMakeFiles/affinity.debug.dir/affinity.cc.o] Error 1

make[6]: *** [tests/quick_tests/CMakeFiles/affinity.debug.dir/all] Error 2

make[5]: *** [tests/quick_tests/CMakeFiles/affinity.debug.run.dir/rule] Error 2

make[4]: *** [affinity.debug.run] Error 2

Test affinity.debug: BUILD

===============================   OUTPUT BEGIN  ===============================

affinity.debug: BUILD failed. Output:

[  0%] Built target expand_instantiations_exe

[  0%] Built target obj_meshworker.inst

[  0%] Built target obj_meshworker.debug

[  7%] Built target obj_umfpack_L_UMF.debug

[ 14%] Built target obj_umfpack_I_UMF.debug

[ 16%] Built target obj_dofs.inst

[ 20%] Built target obj_dofs.debug

[ 20%] Built target obj_umfpack_DI_TRIPLET_MAP_X.debug

[ 20%] Built target obj_umfpack_DI_TRIPLET_NOMAP_X.debug

[ 20%] Built target obj_umfpack_DL_TRIPLET_MAP_NOX.debug

[ 24%] Built target obj_umfpack_I_UMFPACK.debug

[ 25%] Built target obj_umfpack_DI_TSOLVE.debug

[ 25%] Built target obj_umfpack_DI_TRIPLET_MAP_NOX.debug

[ 25%] Built target obj_umfpack_DL_TRIPLET_MAP_X.debug

[ 25%] Built target obj_umfpack_DI_STORE.debug

[ 29%] Built target obj_umfpack_L_UMFPACK.debug

[ 29%] Built target obj_umfpack_DL_TRIPLET_NOMAP_X.debug

[ 29%] Built target obj_umfpack_DL_STORE.debug

[ 29%] Built target obj_umfpack_DI_ASSEMBLE.debug

[ 29%] Built target obj_umfpack_DI_SOLVE.debug

[ 29%] Built target obj_umfpack_DL_TSOLVE.debug

[ 29%] Built target obj_umfpack_DL_ASSEMBLE.debug

[ 29%] Built target obj_umfpack_DL_SOLVE.debug

[ 31%] Built target obj_umfpack_GENERIC.debug

[ 33%] Built target obj_amd_int.debug

[ 38%] Built target obj_boost_serialization.debug

[ 40%] Built target obj_functionparser.debug

[ 46%] Built target obj_tbb.debug

[ 48%] Built target obj_amd_long.debug

[ 48%] Built target obj_amd_global.debug

[ 51%] Built target obj_numerics.inst

[ 57%] Built target obj_numerics.debug

[ 62%] Built target obj_fe.inst

[ 68%] Built target obj_fe.debug

[ 72%] Built target obj_lac.inst

[ 81%] Built target obj_lac.debug

[ 81%] Built target obj_base.inst

[ 88%] Built target obj_base.debug

[ 90%] Built target obj_grid.inst

[ 92%] Built target obj_grid.debug

[ 94%] Built target obj_hp.inst

[ 94%] Built target obj_hp.debug

[ 96%] Built target obj_multigrid.inst

[ 98%] Built target obj_multigrid.debug

[ 98%] Built target obj_distributed.inst

[ 98%] Built target obj_distributed.debug

[ 98%] Built target obj_algorithms.inst

[ 98%] Built target obj_algorithms.debug

[ 98%] Built target obj_integrators.debug

[100%] Built target obj_matrix_free.inst

[100%] Built target obj_matrix_free.debug

[100%] Built target deal_II.g

Scanning dependencies of target kill-affinity.debug-OK

[100%] Built target kill-affinity.debug-OK

Scanning dependencies of target affinity.debug

[100%] Building CXX object tests/quick_tests/CMakeFiles/affinity.debug.dir/affinity.cc.o



affinity.debug: ******    BUILD failed    *******


===============================    OUTPUT END   ===============================

Expected stage PASSED - aborting

CMake Error at /Users/joshuaducey/Desktop/deal/deal.II/cmake/scripts/run_test.cmake:124 (MESSAGE):

  *** abort




    Start 4: tbb.debug

4/4 Test #4: tbb.debug ........................   Passed    6.43 sec


75% tests passed, 1 tests failed out of 4


Total Test time (real) =  29.69 sec


The following tests FAILED:

  3 - affinity.debug (Failed)

Errors while running CTest



*******************************     WARNING     *******************************


Some of the tests failed!


Please scroll up or check the file tests/quick_tests/quicktests.log for the

error messages. If you are unable to fix the problems, see the FAQ or write

to the mailing list linked at http://www.dealii.org



The affinity test can fail when you are linking in a library like BLAS

which uses OpenMP. Even without calling any BLAS functions, OpenMP messes

with the thread affinity which causes TBB to run single-threaded only. You

can fix this by exporting OMP_NUM_THREADS=1.


Built target test


Timo Heister

unread,
Jul 22, 2014, 5:02:56 PM7/22/14
to dea...@googlegroups.com
Josh,

is this deal.II 8.1? I think I messed up the affinity test on mac. You
can ignore this test.

(This is fixed in the recent development version.)
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Timo Heister
http://www.math.clemson.edu/~heister/
Message has been deleted

Josh Ducey

unread,
Jul 22, 2014, 9:31:40 PM7/22/14
to dea...@googlegroups.com
Thanks for the quick reply.  Yes, this is deal.II 8.1.  The step-1 program works fine.  Thank you for clearing this up.

Josh Ducey
Reply all
Reply to author
Forward
0 new messages