Commit 26c1e14f authored by COULAUD Olivier's avatar COULAUD Olivier

Set ScalFMM_USE_LOG option, to obtain logs

parent d288e5f8
...@@ -42,13 +42,13 @@ OPTION( ScalFMM_USE_BLAS "Set to ON to build ScaFMM with BLAS" OFF ) ...@@ -42,13 +42,13 @@ OPTION( ScalFMM_USE_BLAS "Set to ON to build ScaFMM with BLAS" OFF )
OPTION( ScalFMM_USE_TRACE "Set to ON to print trace or use itac trace" OFF ) OPTION( ScalFMM_USE_TRACE "Set to ON to print trace or use itac trace" OFF )
OPTION( ScalFMM_BUILD_TESTS "Set to ON to build fonctionnalities Tests" OFF ) OPTION( ScalFMM_BUILD_TESTS "Set to ON to build fonctionnalities Tests" OFF )
OPTION( ScalFMM_BUILD_UTESTS "Set to ON to build UTests" OFF ) OPTION( ScalFMM_BUILD_UTESTS "Set to ON to build UTests" OFF )
OPTION( ScalFMM_BUILD_DEBUG "Set to ON to build in Debug" OFF ) OPTION( ScalFMM_BUILD_DEBUG "Set to ON to build in Debug" OFF )
OPTION( ScalFMM_USE_MEM_STATS "Set to ON to profile memory" OFF ) OPTION( ScalFMM_USE_LOG "Set to ON to print output debug information" OFF )
OPTION( ScalFMM_USE_DOUBLE_PRECISION "Set to ON to compile in double precision" ON ) OPTION( ScalFMM_USE_MEM_STATS "Set to ON to profile memory" OFF )
OPTION( ScalFMM_ATTACHE_SOURCE "Set to ON to compile with -g" OFF ) OPTION( ScalFMM_USE_DOUBLE_PRECISION "Set to ON to compile in double precision" ON )
OPTION( ScalFMM_USE_ADDONS "Set to ON to compile add ons" OFF ) OPTION( ScalFMM_ATTACHE_SOURCE "Set to ON to compile with -g" OFF )
OPTION( ScalFMM_USE_SSE "Set to ON to compile with sse support" ON ) OPTION( ScalFMM_USE_ADDONS "Set to ON to compile add ons" OFF )
OPTION( ScalFMM_USE_SSE "Set to ON to compile with sse support" ON )
# Set scalfmm to default libraries # Set scalfmm to default libraries
SET(SCALFMM_LIBRARIES "") SET(SCALFMM_LIBRARIES "")
...@@ -62,7 +62,7 @@ endif() ...@@ -62,7 +62,7 @@ endif()
# Debug # Debug
MESSAGE( STATUS "ScalFMM_BUILD_DEBUG = ${ScalFMM_BUILD_DEBUG}" ) MESSAGE( STATUS "ScalFMM_BUILD_DEBUG = ${ScalFMM_BUILD_DEBUG}" )
if( ScalfMM_BUILD_DEBUG ) if( ScalFMM_BUILD_DEBUG )
SET(CMAKE_BUILD_TYPE Debug) SET(CMAKE_BUILD_TYPE Debug)
ADD_DEFINITIONS(-O0) ADD_DEFINITIONS(-O0)
......
...@@ -33,7 +33,7 @@ SET(ScalFMM_USE_MEM_STATS "@ScalFMM_USE_MEM_STATS@") ...@@ -33,7 +33,7 @@ SET(ScalFMM_USE_MEM_STATS "@ScalFMM_USE_MEM_STATS@")
SET(ScalFMM_USE_SSE "@ScalFMM_USE_SSE@") SET(ScalFMM_USE_SSE "@ScalFMM_USE_SSE@")
SET(ScalFMM_FLAGS "@ScaLFMM_FLAGS_OPTI@") SET(ScalFMM_FLAGS "@ScaLFMM_FLAGS_OPTI@")
SET(ScalFMM_USE_ADDONS "@ScalFMM_USE_ADDONS@") SET(ScalFMM_USE_ADDONS "@ScalFMM_USE_ADDONS@")
#SET(ScalFMM_FLAGS "@@") SET(ScalFMM_USE_LOG "@ScalFMM_USE_LOG@")
#SET(ScalFMM_FLAGS "@@") #SET(ScalFMM_FLAGS "@@")
#SET(ScalFMM_FLAGS "@@") #SET(ScalFMM_FLAGS "@@")
# #
......
...@@ -10,6 +10,12 @@ ...@@ -10,6 +10,12 @@
// =================================================================================== // ===================================================================================
#ifndef SSCALFMMCONFIG_H #ifndef SSCALFMMCONFIG_H
#define SSCALFMMCONFIG_H #define SSCALFMMCONFIG_H
///////////////////////////////////////////////////////
// Debug
///////////////////////////////////////////////////////
// Uncomment the next line to use debug mode
#cmakedefine ScalFMM_USE_LOG
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
// Blas // Blas
......
...@@ -15,12 +15,13 @@ ...@@ -15,12 +15,13 @@
// =================================================================================== // ===================================================================================
#ifndef FDEBUG_HPP #ifndef FDEBUG_HPP
#define FDEBUG_HPP #define FDEBUG_HPP
#include <iostream>
#include "FGlobal.hpp" #include "FGlobal.hpp"
#include "FNoCopyable.hpp" #include "FNoCopyable.hpp"
#ifndef SCALFMM_USE_DEBUG #ifndef ScalFMM_USE_LOG
#define FDEBUG( X ) #define FDEBUG( X )
......
...@@ -40,12 +40,6 @@ ...@@ -40,12 +40,6 @@
#define POSIX #define POSIX
#endif #endif
///////////////////////////////////////////////////////
// Debug
///////////////////////////////////////////////////////
// Uncomment the next line to use debug mode
#define SCALFMM_USE_DEBUG
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
// Types // Types
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment