forked from ecmwf/multio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41511c7
commit 6106435
Showing
9 changed files
with
1,466 additions
and
1,179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set(MULTIOM_HOOKS_PARANOID_PROFILE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
# Enter in the module | ||
message("${OFFSET} + hooks/paranoid_profile sources: ${MULTIOM_HOOKS_PARANOID_PROFILE_DIR}") | ||
|
||
# Recursive print | ||
set(OFFSET ${OFFSET}${DOFFSET}) | ||
|
||
# Collect source files in module2 | ||
set( MULTIOM_HOOKS_PARANOID_PROFILE_SOURCES | ||
${MULTIOM_HOOKS_PARANOID_PROFILE_DIR}/paranoid_profile_mod.F90 | ||
CACHE INTERNAL "List of all sources in hooks/paranoid_profile directory" | ||
) | ||
|
||
# Optionally, message what has been appended for paranoid_profileging | ||
foreach(source_file IN LISTS MULTIOM_HOOKS_PARANOID_PROFILE_SOURCES) | ||
|
||
# Extract the filename (without the directory) | ||
get_filename_component(filename ${source_file} NAME) | ||
|
||
# Print the filename | ||
message("${OFFSET} - ${filename}") | ||
endforeach() |
31 changes: 31 additions & 0 deletions
31
src/multiom/hooks/paranoid_profile/paranoid_profile_mod.F90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
! Include preprocessor utils | ||
! Include preprocessor utils | ||
#include "output_manager_preprocessor_utils.h" | ||
#include "output_manager_preprocessor_trace_utils.h" | ||
#include "output_manager_preprocessor_logging_utils.h" | ||
#include "output_manager_preprocessor_errhdl_utils.h" | ||
|
||
|
||
#define PP_FILE_NAME 'paranoid_profile_mod.F90' | ||
#define PP_SECTION_TYPE 'MODULE' | ||
#define PP_SECTION_NAME 'PARANOID_PROFILE_MOD' | ||
MODULE PARANOID_PROFILE_MOD | ||
|
||
IMPLICIT NONE | ||
|
||
! Default visibility | ||
PRIVATE | ||
|
||
! The profiler type | ||
TYPE :: PARANOID_PROFILER_T | ||
PRIVATE | ||
END TYPE | ||
|
||
|
||
! Whitelist of public symbols (types) | ||
PUBLIC :: PARANOID_PROFILER_T | ||
|
||
END MODULE PARANOID_PROFILE_MOD | ||
#undef PP_SECTION_NAME | ||
#undef PP_SECTION_TYPE | ||
#undef PP_FILE_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.