Skip to content

Commit

Permalink
version infos: report if G4 was compiled w/o FFTW3
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeugAusHH committed Jul 31, 2024
1 parent 7c27e46 commit 3d2e361
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Main/mainwrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ void G4_report_lib_versions(void)
{
int rank;

// only rank 0 prints infos...
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if(0!=rank)
return;


cout << endl; // some whitespace

char buf[MPI_MAX_LIBRARY_VERSION_STRING];
int bufused=-1;
MPI_Get_library_version(buf, &bufused);
Expand All @@ -81,7 +85,11 @@ void G4_report_lib_versions(void)
// But there is char fftw_version[] (checked for FFTW v3.3.8)
#ifdef FFTW
cout << "FFTW version string: " << fftw_version << endl;
#else
cout << "FFTW version string: not compiled in" << endl;
#endif

cout << endl;
}

int main (int argc, char *argv[])
Expand Down

0 comments on commit 3d2e361

Please sign in to comment.