Hello,
Thank you for your replies. I think another version of MPICH may not work as I am following a tutorial (https://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php) that requires specific library versions.
My /etc/hosts file contains only these two lines:

"
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
"

uname -n returns an empty string as I have not set a hostname. I guess I do not need this because I need to run MPICH only on this machine, that is on localhost? uname -a gives the following output:

"
marto@% uname -a
DragonFly  5.8-RELEASE DragonFly v5.8.1-RELEASE #1: Thu May  7 08:26:21 CEST 2020     root@:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
"

Apart from providing a --prefix, I configured MPICH with the default options. During the configure step I got some interesting messages though:

"
checking for architecture... x86_64
configure: WARNING: Unknown architecture x86_64... proceeding anyway
...
###
### Configuring hwloc core
###
checking hwloc building mode... embedded
configure: hwloc builddir: /home/marto/WRF/Build_WRF/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc
configure: hwloc srcdir: /home/marto/WRF/Build_WRF/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc
checking if want hwloc maintainer support... disabled (embedded mode)
checking for hwloc directory prefix... tools/topo/hwloc/hwloc/
checking for hwloc symbol prefix... hwloc_
checking size of void *... 8
checking which OS support to include... Unsupported! (x86_64-unknown-dragonfly5.8)
configure: WARNING: ***********************************************************
configure: WARNING: *** hwloc does not support this system.
configure: WARNING: *** hwloc will *attempt* to build (but it may not work).
configure: WARNING: *** hwloc run-time results may be reduced to showing just one processor.
configure: WARNING: *** You have been warned.
configure: WARNING: *** Pausing to give you time to read this message...
configure: WARNING: ***********************************************************
checking which CPU support to include... x86_64
...
configure: creating ./config.status
config.status: creating tools/topo/hwloc/hwloc/Makefile
config.status: creating tools/topo/hwloc/hwloc/include/Makefile
config.status: creating tools/topo/hwloc/hwloc/src/Makefile
config.status: creating Makefile
config.status: creating tools/bootstrap/src/bsci_init.c
config.status: creating hydra-doxygen.cfg
config.status: creating include/hydra_config.h
config.status: include/hydra_config.h is unchanged
config.status: creating tools/topo/hwloc/hwloc/include/private/autogen/config.h
config.status: tools/topo/hwloc/hwloc/include/private/autogen/config.h is unchanged
config.status: creating tools/topo/hwloc/hwloc/include/hwloc/autogen/config.h
config.status: tools/topo/hwloc/hwloc/include/hwloc/autogen/config.h is unchanged
"
I am looking forward to your replies.

Best regards,
Martin

On Thu, May 7, 2020 at 8:59 PM Tony Curtis via discuss <discuss@mpich.org> wrote:


On May 7, 2020, at 2:30 PM, Zhou, Hui via discuss <discuss@mpich.org> wrote:

Hi Martin,
 
Could you try the latest version https://www.mpich.org/downloads/ ?
 
-- 
Hui Zhou
 
 
From: Martin Ivanov via discuss <discuss@mpich.org>
Reply-To: "discuss@mpich.org" <discuss@mpich.org>
Date: Thursday, May 7, 2020 at 11:35 AM
To: "discuss@mpich.org" <discuss@mpich.org>
Cc: Martin Ivanov <marto1980@gmail.com>
Subject: [mpich-discuss] Run mpich on localhost
 
Hello,
I installed mpich-3.0.4 on a x86_64 BSD machine. I need to run MPI on this single machine, which has 8 cores. When I run the cpi example, I get:
 
marto@% mpiexec -n 3 mpich-3.0.4/examples/cpi
ssh: Could not resolve hostname : hostname nor servname provided, or not known
 

Also, how did you configure MPICH?  What is your hostname (uname -n), and what is in /etc/hosts?

Tony

_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss