Skip to content
Snippets Groups Projects
Commit 8d000b81 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Use NVTX profiler in cfrfme.cpp

parent d320c140
Branches
No related tags found
No related merge requests found
...@@ -56,6 +56,10 @@ ...@@ -56,6 +56,10 @@
#include "../include/tra_subs.h" #include "../include/tra_subs.h"
#endif #endif
#ifdef USE_NVTX
#include <nvtx3/nvToolsExt.h>
#endif
using namespace std; using namespace std;
/*! \brief C++ implementation of FRFME /*! \brief C++ implementation of FRFME
...@@ -64,6 +68,9 @@ using namespace std; ...@@ -64,6 +68,9 @@ using namespace std;
* \param output_path: `string` Directory to write the output files in. * \param output_path: `string` Directory to write the output files in.
*/ */
void frfme(string data_file, string output_path) { void frfme(string data_file, string output_path) {
#ifdef USE_NVTX
nvtxRangePush("Running frfme()");
#endif
string tfrfme_name = output_path + "/c_TFRFME.hd5"; string tfrfme_name = output_path + "/c_TFRFME.hd5";
TFRFME *tfrfme = NULL; TFRFME *tfrfme = NULL;
Swap1 *tt1 = NULL; Swap1 *tt1 = NULL;
...@@ -410,4 +417,7 @@ void frfme(string data_file, string output_path) { ...@@ -410,4 +417,7 @@ void frfme(string data_file, string output_path) {
if (wk != NULL) delete[] wk; if (wk != NULL) delete[] wk;
if (tt1 != NULL) delete tt1; if (tt1 != NULL) delete tt1;
printf("FRFME: Done.\n"); printf("FRFME: Done.\n");
#ifdef USE_NVTX
nvtxRangePop();
#endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment