-
Notifications
You must be signed in to change notification settings - Fork 1
Version with profiling #1
Copy link
Copy link
Open
Description
I've created the profiling_new_api branch which has profiling regions inserted. To compile this you'll need to build the PSyclone profiling wrapper library. This can be found in PSyclone/lib/profiling/nvidia/. Once you've built it, you need to tweak the NEMO build system to tell it to ignore the associated module use statements and to link with the wrapper library and the nvtx library itself. I've added the following to my arch file (edit as appropriate for your system):
%PROFILE_HOME ${HOME}/PSyclone/lib/profiling/nvidia
%PROFILE_LIB -L%PROFILE_HOME -lnvtx_prof -L${CUDA_DIR}/lib64 -lnvToolsExt
%PROFILE_INC -I%PROFILE_HOME
and then extended the list of include and link flags:
%USER_INC %PROFILE_INC %XIOS_INC %OASIS_INC %NCDF_INC
%USER_LIB %PROFILE_LIB %XIOS_LIB %OASIS_LIB %NCDF_LIB
I also edited dev_r10037_GPU/mk/bldxag.cfg and added the following line:
bld::excl_dep use::profile_psy_data_mod
(this tells FCM it doesn't need to try and build the profile_psy_data_mod module.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels