Loading .gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ stages: -DWITH_COVERAGE=${WITH_COVERAGE} -DWITH_EXAMPLES=${WITH_EXAMPLES} - make - make test - make test CTEST_OUTPUT_ON_FAILURE=1 - make install - popd variables: Loading CMakeLists.txt +24 −12 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ endif() # set Debug/Release options set( CMAKE_CXX_FLAGS "-std=c++11 -pthread -Wall -Wno-unused-local-typedefs -Wno-unused-variable" ) set( CMAKE_CXX_FLAGS_DEBUG "-g" ) set( CMAKE_CXX_FLAGS_DEBUG "-g -rdynamic -ftemplate-backtrace-limit=0" ) set( CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG" ) #set( CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG -ftree-vectorizer-verbose=1 -ftree-vectorize -fopt-info-vec-missed -funroll-loops" ) # pass -rdynamic only in Debug mode Loading @@ -63,7 +63,7 @@ if( CXX_COMPILER_NAME MATCHES "icpc" ) message( "Intel compiler detected..." ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_ICPC -wd2568 -wd2571 -wd2570") ##### # Ckeck for MIC # Check for MIC # if( WITH_MIC STREQUAL "yes" ) message( "Compile MIC support..." ) Loading @@ -86,6 +86,27 @@ if( DEFINED ENV{CI_JOB_NAME} ) endif() endif() ##### # Check for MPI -- poznej podle vraperu compileru -- da se testovat preklad bez MPI # if( ${CXX_COMPILER_NAME} STREQUAL "mpic++" ) message( "MPI compiler detected." ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_MPI" ) set( CUDA_HOST_COMPILER "mpic++" ) endif() #### # Check for MPI -- not working # #find_package( MPI ) #if( MPI_CXX_FOUND ) # set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_MPI" ) # message( "MPI headers found -- ${MPI_CXX_INCLUDE_PATH}") # message( "MPI link flags -- ${MPI_CXX_LINK_FLAGS}") # message( "MPI libraries-- ${MPI_CXX_LIBRARIES}") #endif() ##### # Check for CUDA # Loading Loading @@ -181,7 +202,7 @@ if( WITH_CUDA STREQUAL "yes" ) if( NOT WITH_CUSPARSE STREQUAL "no" ) find_path( CUSPARSE_INCLUDE_DIR cusparse.h /usr/local/cuda/include ${CUDA_INCLUDE_DIR} ${CUDA_INCLUDE_DIRS} DOC "CUSPARSE headers." ) if( ${CUSPARSE_INCLUDE_DIR} STREQUAL "CUSPARSE_INCLUDE_DIR-NOTFOUND" ) message( "CUSPARSE not found." ) Loading @@ -205,15 +226,6 @@ if( OPENMP_FOUND AND WITH_OPENMP STREQUAL "yes" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_OPENMP ${OpenMP_CXX_FLAGS}" ) endif() #### # Check for MPI # #find_package( MPI ) #if( MPI_CXX_FOUND ) # set( BUILD_MPI TRUE ) # message( "MPI headers found -- ${MPI_CXX_INCLUDE_PATH}") #endif() find_package( DCMTK ) if( DCMTK_FOUND ) set( HAVE_DCMTK_H "#define HAVE_DCMTK_H 1" ) Loading build +1 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,7 @@ fi if test ${WITH_TESTS} = "yes"; then make test make test CTEST_OUTPUT_ON_FAILURE=1 if test $? != 0; then echo "Error: Some test did not pass successfuly." fi Loading examples/heat-equation/tnl-heat-equation-eoc.h +3 −2 Original line number Diff line number Diff line Loading @@ -44,7 +44,8 @@ template< typename Real, typename Index, typename MeshType, typename MeshConfig, typename SolverStarter > typename SolverStarter, typename CommunicatorType > class heatEquationSetter { public: Loading @@ -64,7 +65,7 @@ class heatEquationSetter typedef HeatEquationEocRhs< ExactOperator, TestFunction > RightHandSide; typedef Containers::StaticVector < MeshType::getMeshDimension(), Real > Point; typedef Operators::DirichletBoundaryConditions< MeshType, TestFunction, Dimension, Real, Index > BoundaryConditions; typedef HeatEquationEocProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Solver; typedef HeatEquationEocProblem< MeshType, BoundaryConditions, RightHandSide, CommunicatorType, ApproximateOperator > Solver; SolverStarter solverStarter; return solverStarter.template run< Solver >( parameters ); }; Loading examples/heat-equation/tnl-heat-equation.h +6 −5 Original line number Diff line number Diff line Loading @@ -56,7 +56,8 @@ template< typename Real, typename Index, typename MeshType, typename MeshConfig, typename SolverStarter > typename SolverStarter, typename CommunicatorType > class heatEquationSetter { public: Loading @@ -78,12 +79,12 @@ class heatEquationSetter if( boundaryConditionsType == "dirichlet" ) { typedef Operators::DirichletBoundaryConditions< MeshType, Constant > BoundaryConditions; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Problem; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide,CommunicatorType, ApproximateOperator > Problem; SolverStarter solverStarter; return solverStarter.template run< Problem >( parameters ); } typedef Operators::NeumannBoundaryConditions< MeshType, Constant, Real, Index > BoundaryConditions; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Problem; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, CommunicatorType, ApproximateOperator > Problem; SolverStarter solverStarter; return solverStarter.template run< Problem >( parameters ); } Loading @@ -91,12 +92,12 @@ class heatEquationSetter if( boundaryConditionsType == "dirichlet" ) { typedef Operators::DirichletBoundaryConditions< MeshType, MeshFunction > BoundaryConditions; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Problem; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide,CommunicatorType, ApproximateOperator > Problem; SolverStarter solverStarter; return solverStarter.template run< Problem >( parameters ); } typedef Operators::NeumannBoundaryConditions< MeshType, MeshFunction, Real, Index > BoundaryConditions; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Problem; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide,CommunicatorType, ApproximateOperator > Problem; SolverStarter solverStarter; return solverStarter.template run< Problem >( parameters ); }; Loading Loading
.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ stages: -DWITH_COVERAGE=${WITH_COVERAGE} -DWITH_EXAMPLES=${WITH_EXAMPLES} - make - make test - make test CTEST_OUTPUT_ON_FAILURE=1 - make install - popd variables: Loading
CMakeLists.txt +24 −12 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ endif() # set Debug/Release options set( CMAKE_CXX_FLAGS "-std=c++11 -pthread -Wall -Wno-unused-local-typedefs -Wno-unused-variable" ) set( CMAKE_CXX_FLAGS_DEBUG "-g" ) set( CMAKE_CXX_FLAGS_DEBUG "-g -rdynamic -ftemplate-backtrace-limit=0" ) set( CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG" ) #set( CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG -ftree-vectorizer-verbose=1 -ftree-vectorize -fopt-info-vec-missed -funroll-loops" ) # pass -rdynamic only in Debug mode Loading @@ -63,7 +63,7 @@ if( CXX_COMPILER_NAME MATCHES "icpc" ) message( "Intel compiler detected..." ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_ICPC -wd2568 -wd2571 -wd2570") ##### # Ckeck for MIC # Check for MIC # if( WITH_MIC STREQUAL "yes" ) message( "Compile MIC support..." ) Loading @@ -86,6 +86,27 @@ if( DEFINED ENV{CI_JOB_NAME} ) endif() endif() ##### # Check for MPI -- poznej podle vraperu compileru -- da se testovat preklad bez MPI # if( ${CXX_COMPILER_NAME} STREQUAL "mpic++" ) message( "MPI compiler detected." ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_MPI" ) set( CUDA_HOST_COMPILER "mpic++" ) endif() #### # Check for MPI -- not working # #find_package( MPI ) #if( MPI_CXX_FOUND ) # set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_MPI" ) # message( "MPI headers found -- ${MPI_CXX_INCLUDE_PATH}") # message( "MPI link flags -- ${MPI_CXX_LINK_FLAGS}") # message( "MPI libraries-- ${MPI_CXX_LIBRARIES}") #endif() ##### # Check for CUDA # Loading Loading @@ -181,7 +202,7 @@ if( WITH_CUDA STREQUAL "yes" ) if( NOT WITH_CUSPARSE STREQUAL "no" ) find_path( CUSPARSE_INCLUDE_DIR cusparse.h /usr/local/cuda/include ${CUDA_INCLUDE_DIR} ${CUDA_INCLUDE_DIRS} DOC "CUSPARSE headers." ) if( ${CUSPARSE_INCLUDE_DIR} STREQUAL "CUSPARSE_INCLUDE_DIR-NOTFOUND" ) message( "CUSPARSE not found." ) Loading @@ -205,15 +226,6 @@ if( OPENMP_FOUND AND WITH_OPENMP STREQUAL "yes" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_OPENMP ${OpenMP_CXX_FLAGS}" ) endif() #### # Check for MPI # #find_package( MPI ) #if( MPI_CXX_FOUND ) # set( BUILD_MPI TRUE ) # message( "MPI headers found -- ${MPI_CXX_INCLUDE_PATH}") #endif() find_package( DCMTK ) if( DCMTK_FOUND ) set( HAVE_DCMTK_H "#define HAVE_DCMTK_H 1" ) Loading
build +1 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,7 @@ fi if test ${WITH_TESTS} = "yes"; then make test make test CTEST_OUTPUT_ON_FAILURE=1 if test $? != 0; then echo "Error: Some test did not pass successfuly." fi Loading
examples/heat-equation/tnl-heat-equation-eoc.h +3 −2 Original line number Diff line number Diff line Loading @@ -44,7 +44,8 @@ template< typename Real, typename Index, typename MeshType, typename MeshConfig, typename SolverStarter > typename SolverStarter, typename CommunicatorType > class heatEquationSetter { public: Loading @@ -64,7 +65,7 @@ class heatEquationSetter typedef HeatEquationEocRhs< ExactOperator, TestFunction > RightHandSide; typedef Containers::StaticVector < MeshType::getMeshDimension(), Real > Point; typedef Operators::DirichletBoundaryConditions< MeshType, TestFunction, Dimension, Real, Index > BoundaryConditions; typedef HeatEquationEocProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Solver; typedef HeatEquationEocProblem< MeshType, BoundaryConditions, RightHandSide, CommunicatorType, ApproximateOperator > Solver; SolverStarter solverStarter; return solverStarter.template run< Solver >( parameters ); }; Loading
examples/heat-equation/tnl-heat-equation.h +6 −5 Original line number Diff line number Diff line Loading @@ -56,7 +56,8 @@ template< typename Real, typename Index, typename MeshType, typename MeshConfig, typename SolverStarter > typename SolverStarter, typename CommunicatorType > class heatEquationSetter { public: Loading @@ -78,12 +79,12 @@ class heatEquationSetter if( boundaryConditionsType == "dirichlet" ) { typedef Operators::DirichletBoundaryConditions< MeshType, Constant > BoundaryConditions; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Problem; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide,CommunicatorType, ApproximateOperator > Problem; SolverStarter solverStarter; return solverStarter.template run< Problem >( parameters ); } typedef Operators::NeumannBoundaryConditions< MeshType, Constant, Real, Index > BoundaryConditions; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Problem; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, CommunicatorType, ApproximateOperator > Problem; SolverStarter solverStarter; return solverStarter.template run< Problem >( parameters ); } Loading @@ -91,12 +92,12 @@ class heatEquationSetter if( boundaryConditionsType == "dirichlet" ) { typedef Operators::DirichletBoundaryConditions< MeshType, MeshFunction > BoundaryConditions; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Problem; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide,CommunicatorType, ApproximateOperator > Problem; SolverStarter solverStarter; return solverStarter.template run< Problem >( parameters ); } typedef Operators::NeumannBoundaryConditions< MeshType, MeshFunction, Real, Index > BoundaryConditions; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide, ApproximateOperator > Problem; typedef HeatEquationProblem< MeshType, BoundaryConditions, RightHandSide,CommunicatorType, ApproximateOperator > Problem; SolverStarter solverStarter; return solverStarter.template run< Problem >( parameters ); }; Loading