We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf70772 commit 770b240Copy full SHA for 770b240
src/mpi/CMakeLists.txt
@@ -21,7 +21,7 @@ if (mpi_version_out MATCHES "[Oo]pen[ -][Mm][Pp][Ii]")
21
message( STATUS "OpenMPI detected")
22
set ( openmpi true PARENT_SCOPE)
23
# Write out a host file because OMPI's mpiexec is dumb
24
- file(APPEND ${CMAKE_BINARY_DIR}/hostfile "${HOST_NAME} slots=${N_CPU}\n")
+ file(WRITE ${CMAKE_BINARY_DIR}/hostfile "${HOST_NAME} slots=${N_CPU}\n")
25
endif ()
26
27
if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU")
0 commit comments