Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
8e220e79
Commit
8e220e79
authored
Jun 18, 2015
by
COULAUD Olivier
Browse files
Add eztrace
parent
248de7af
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
8e220e79
...
...
@@ -69,6 +69,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/CMakeModules/morse/")
option
(
SCALFMM_USE_ASSERT
"Set to ON to enable safe tests during execution"
ON
)
option
(
SCALFMM_USE_MIC_NATIVE
"Set to ON to compile in native mode for MIC"
OFF
)
option
(
SCALFMM_ONLY_DEVEL
"Set to ON to compile Development tools (only scalfmm team)"
ON
)
option
(
SCALFMM_USE_EZTRACE
"Set to ON to compile with eztrace framwork"
OFF
)
if
(
SCALFMM_ONLY_DEVEL
)
option
(
OPENMP_SUPPORT_COMMUTE
"Set to ON to let tasks commute (KSTAR/StarPU compiler only)"
OFF
)
option
(
SCALFMM_USE_STARPU
"Set to ON to build SCALFMM with StarPU"
OFF
)
...
...
@@ -114,8 +115,8 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/CMakeModules/morse/")
IF
(
APPLE
)
set
(
SSE_FLAGS
"-msse4 -mfpmath=sse"
)
# -mtune=native -march=native
else
(
APPLE
)
set
(
AVX_FLAGS
"-mavx
-march=native
"
)
set
(
AVX2_FLAGS
"-ma
vx2 -march=native
"
)
set
(
AVX_FLAGS
"-mavx"
)
set
(
AVX2_FLAGS
"-ma
rch=core-avx2
"
)
set
(
SSE_FLAGS
"-axSSE4.2 -march=native"
)
endif
(
APPLE
)
#-Wshadow -Wpointer-arith -Wcast-qual -Wconversion -Wall -Wnosign-conversion ")
...
...
@@ -619,9 +620,27 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/CMakeModules/morse/")
list
(
APPEND FUSE_LIST
"MIC"
)
##################################################################
#
# Set EZTRACE
#
##################################################################
If
(
SCALFMM_USE_EZTRACE
)
find_package
(
PkgConfig
)
if
(
PKG_CONFIG_FOUND
)
MESSAGE
(
WARNING
"PKG-CONFIG found"
)
set
(
PKG_CONFIG_USE_CMAKE_PREFIX_PATH
"ON"
)
set
(
CMAKE_PREFIX_PATH
"/cm/shared/dev/apps/trace/eztrace/1.0/lib/pkgconfig/"
)
pkg_search_module
(
EZTrace REQUIRED eztrace
)
link_directories
(
${
EZTrace_LIBRARY_DIRS
}
)
# link_libraries(/cm/shared/dev/apps/trace/eztrace/1.0/lib/libeztrace.so /cm/shared/dev/apps/trace/eztrace/1.0/lib/libeztrace-memory.so)# ${EZTrace_LIBRARIES})
link_libraries
(
${
EZTrace_LIBRARIES
}
-leztrace-memory
)
include_directories
(
${
EZTrace_INCLUDE_DIRS
}
)
MESSAGE
(
WARNING
"EZTRACE:
${
EZTrace_INCLUDE_DIRS
}
${
EZTrace_LIBRARY_DIRS
}
${
EZTrace_LIBRARIES
}
"
)
else
(
PKG_CONFIG_FOUND
)
MESSAGE
(
WARNING
"PKG-CONFIG not found- EZTRACE Is set to NONE"
)
set
(
SCALFMM_USE_EZTRACE OFF
)
endif
(
PKG_CONFIG_FOUND
)
endif
(
SCALFMM_USE_EZTRACE
)
##################################################################
# #
# END SETTING VARIABLES #
...
...
Src/Core/FFmmAlgorithmSectionTask.hpp
View file @
8e220e79
...
...
@@ -209,7 +209,18 @@ protected:
/////////////////////////////////////////////////////////////////////////////
/** M2L */
void
transferPass
(){
/** M2L */
void
transferPass
(){
#ifdef SCALFMM_USE_EZTRACE
eztrace_start
();
#endif
this
->
transferPassWithFinalize
()
;
#ifdef SCALFMM_USE_EZTRACE
eztrace_stop
();
#endif
}
void
transferPassWithFinalize
(){
FLOG
(
FLog
::
Controller
.
write
(
"
\t
Start Downward Pass (M2L)
\n
"
).
write
(
FLog
::
Flush
);
);
FLOG
(
FTic
counterTime
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment