Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlightRecorder.cc breaks compilation for --enable-comms=none #460

Closed
leonhostetler opened this issue Mar 30, 2024 · 1 comment
Closed

FlightRecorder.cc breaks compilation for --enable-comms=none #460

leonhostetler opened this issue Mar 30, 2024 · 1 comment

Comments

@leonhostetler
Copy link

Trying to compile with --enable-comms=none fails with an error like:

	  CXX      util/FlightRecorder.o
	../../Grid/util/FlightRecorder.cc: In static member function ‘static void Grid::FlightRecorder::xmitLog(void*, uint64_t)’:
	../../Grid/util/FlightRecorder.cc:293:17: error: ‘MPI_COMM_WORLD’ was not declared in this scope
	  293 |     MPI_Barrier(MPI_COMM_WORLD);
	      |                 ^~~~~~~~~~~~~~
	../../Grid/util/FlightRecorder.cc:293:5: error: ‘MPI_Barrier’ was not declared in this scope
	  293 |     MPI_Barrier(MPI_COMM_WORLD);
	      |     ^~~~~~~~~~~

Replacing the line

MPI_Barrier(MPI_COMM_WORLD);

in Grid/util/FlightRecorder.cc with

    #if defined (GRID_COMMS_MPI) || defined (GRID_COMMS_MPI3) || defined (GRID_COMMS_MPIT)
    MPI_Barrier(MPI_COMM_WORLD);
    #endif

lets it compile, but I don't know if that would break something else or not.

@leonhostetler
Copy link
Author

Fixed by commit 8a09888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant