Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Debug configuration #20

Open
lorenzo-mechbau opened this issue Oct 1, 2018 · 2 comments
Open

Use Debug configuration #20

lorenzo-mechbau opened this issue Oct 1, 2018 · 2 comments

Comments

@lorenzo-mechbau
Copy link

Is it possible to use the Debug configuration of iron when running the examples in the framework?

Simply adding the Debug option to "cmake" does not seem to work:
cmake -DOpenCMISSLibs_DIR=/software/opencmiss/opencmiss/install -DCMAKE_BUILD_TYPE=Debug -DTEST_DB=/Desktop/functional_tests/my_testing_select/ ../functional_test_framework

since the output of "make" is

[ 6%] Performing update step for 'test_db'
Current branch develop is up to date.
[ 12%] No configure step for 'test_db'
[ 18%] No build step for 'test_db'
[ 25%] No install step for 'test_db'
[ 31%] Completed 'test_db'
[ 50%] Built target test_db
-- Configuring done
-- Generating done
-- Build files have been written to: /data/homes/zanon/Desktop/functional_tests/functional_test_framework-build/testacquire-build
[ 50%] Built target acquire_tests
[ 56%] Performing update step for 'ndiff'
Current branch v2.0.0 is up to date.
[ 62%] Performing configure step for 'ndiff'
-- Configuring done
-- Generating done
-- Build files have been written to: /data/homes/zanon/Desktop/functional_tests/functional_test_framework-build/ndiff/build
[ 68%] No build step for 'ndiff'
[ 75%] Performing install step for 'ndiff'
Scanning dependencies of target ndiff
[ 16%] Building C object CMakeFiles/ndiff.dir/ndiff.c.o
[ 33%] Building C object CMakeFiles/ndiff.dir/store.c.o
[ 50%] Building C object CMakeFiles/ndiff.dir/awklib.c.o
[ 66%] Linking C executable ndiff
[100%] Built target ndiff
Install the project...
-- Install configuration: "Release"
-- Installing: /data/homes/zanon/Desktop/functional_tests/functional_test_framework-build/ndiff/build/bin/ndiff
[ 81%] Completed 'ndiff'
[100%] Built target ndiff
-- Configuring done
-- Generating done
-- Build files have been written to: /data/homes/zanon/Desktop/functional_tests/functional_test_framework-build/testsetup-build
[100%] Built target setup_tests
-- Looking for an MPI ...
-- Looking for MPICH_VERSION
-- Looking for MPICH_VERSION - not found
-- Looking for I_MPI_VERSION
-- Looking for I_MPI_VERSION - not found
-- Looking for an MPI ... found openmpi
-- Looking for MPICH_VERSION
-- Looking for MPICH_VERSION - not found
-- Looking for I_MPI_VERSION
-- Looking for I_MPI_VERSION - not found
-- Looking for OpenCMISS-Iron ...
-- Looking for OpenCMISS-Iron ... Success
-- Looking for OpenCMISS-Zinc ...
-- Looking for OpenCMISS-Zinc ... Success
-- Configuring done
-- Generating done
-- Build files have been written to: /data/homes/zanon/Desktop/functional_tests/functional_test_framework-build/testrunner-build
[100%] Built target laplace_equation_Fortran
[100%] Built target build_tests
Test project /data/homes/zanon/Desktop/functional_tests/functional_test_framework-build
Start 1: laplace_equation
1/1 Test #1: laplace_equation .................***Failed 0.10 sec

@lorenzo-mechbau
Copy link
Author

I should add that I did not even build the release version of the library. That is, in my

opencmiss/opencmiss/build/iron

there is only a folder "debug", having used to compile iron the option

-DOPENCMISS_CONFIG_BUILD_TYPE=Debug

Nevertheless, according to the output of "make" in the previous post, the install configuration is "release", and I cannot run any example with totalview using the source in (say)

functional_test_framework-build/testrunner-build/laplace_equation/src/fortran

@lorenzo-mechbau
Copy link
Author

As Chris suggested, as a temporary solution, I replaced "release" with "debug" in /functional_test_framework/CMakeLists.txt (attached). Now the output of "make" delivers a debug configuration as expected:

Install the project...
-- Install configuration: "Debug"

Still, there is no thread in totalview, using as source the path as above:
functional_test_framework-build/testrunner-build/laplace_equation/src/fortran

Does it mean that the correct debug version is being used by the framework, but no debugging inside the framework is possible?

CMakeLists.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant