Re: [OMPI users] OpenMPI 5.0.0 & Intel OneAPI 2023.2.0 on MacOS 14.0:

2023-11-06 Thread Christophe Peyret via users

Hello,

I am tring to compile openmpi 5.0.0 on MacOS 14.1 with Intel oneapi 
Version 2021.9.0 Build 20230302_00.


I enter commande :

lt_cv_ld_force_load=no  ../openmpi-5.0.0/configure 
--prefix=$APP_DIR/openmpi-5.0.0 F77=ifort FC=ifort CC=icc CXX=icpc 
 --with-pmix=internal  --with-libevent=internal --with-hwloc=internal


Then

make

And compilation stops with error message :

/Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c(55): 
catastrophic error: cannot open source file 
"/Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c"

 #    include 
^

compilation aborted for 
/Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c 
(code 4)

make[4]: *** [pmix_path.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1



Re: [OMPI users] OpenMPI 5.0.0 & Intel OneAPI 2023.2.0 on MacOS 14.0:

2023-11-06 Thread Volker Blum via users
I don’t have a solution to this but am interested in finding one.

There is an issue with some include statements between OneAPI and XCode on 
MacOS 14.x , at least for C++ (the example below seems to be C?). It appears 
that many standard headers are not being found.

I did not encounter this problem with OpenMPI, though, since I got stuck at an 
earlier point. My workaround, OpenMPI 4.1.6, compiled fine.

While compiling a different C++ code, these missing headers struck me, too.

Many of the include related error messages went away after installing XCode 
15.1 beta 2 - however, not all of them. That’s as far as I got … sorry about 
the experience.

Best wishes
Volker


Volker Blum
Vinik Associate Professor, Duke MEMS & Chemistry
https://aims.pratt.duke.edu
https://bsky.app/profile/aimsduke.bsky.social

> On Nov 6, 2023, at 4:25 AM, Christophe Peyret via users 
>  wrote:
> 
> Hello,
> 
> I am tring to compile openmpi 5.0.0 on MacOS 14.1 with Intel oneapi Version 
> 2021.9.0 Build 20230302_00.
> 
> I enter commande :
> 
> lt_cv_ld_force_load=no  ../openmpi-5.0.0/configure 
> --prefix=$APP_DIR/openmpi-5.0.0 F77=ifort FC=ifort CC=icc CXX=icpc  
> --with-pmix=internal  --with-libevent=internal --with-hwloc=internal
> 
> Then
> 
> make
> 
> And compilation stops with error message :
> 
> /Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c(55):
>  catastrophic error: cannot open source file 
> "/Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c"
>  #include 
> ^
> 
> compilation aborted for 
> /Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c
>  (code 4)
> make[4]: *** [pmix_path.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
> 



[OMPI users] Open MPI BOF at SC'23

2023-11-06 Thread Jeff Squyres (jsquyres) via users
We're excited to see everyone next week in Denver, Colorado, USA at SC23!

Open MPI will be hosting our usual State of the Union Birds of a Feather (BOF) 
session
 on Wednesday, 15, November, 2023, from 12:15-1:15pm US Mountain time.  The 
event is in-person only; SC does not allow us to livestream.

During the BOF, we'll present the state of Open MPI, where we are, and where 
we're going.  We also use the BOF as an opportunity to directly respond to your 
questions.  We only have an hour; it's really helpful if you submit your 
questions ahead of 
time
 so that we can include them directly in our presentation.  We'll obviously 
take questions in-person, too, and will be available after the presentation as 
well, but chances are: if you have a question, others have the same question.  
So submit your question to 
us
 so that we can include them in the presentation!  🙂

Hope to see you in Denver!

--
Jeff Squyres


[OMPI users] Avoiding localhost as rank 0 with openmpi-default-hostfile

2023-11-06 Thread Saurabh T via users
My openmpi-default-hostfile has
host1 slots=4
host2 slots=4
host0 slots=4

and my openmpi-mca-params.conf has
rmaps_base_mapping_policy = node
rmaps_base_oversubscribe = 1

If I invoke orterun -np 3 on host0, it puts rank0 on host0, rank1 on host1, 
rank2 on host2. I want it to put rank0 on host1, rank1 on host2, rank2 on host0 
(as specified in the host file). I cannot use nolocal because I do want it to 
run on host0.

How can localhost being rank0 be avoided without using -H?

Thanks,
saurabh


Re: [OMPI users] OpenMPI 5.0.0 & Intel OneAPI 2023.2.0 on MacOS 14.0:

2023-11-06 Thread Zhéxué M. Krawutschke via users
Hello everyone,
I find your contribution very interesting, because I also use Apple and have 
been thinking about how I could best install OpenMPI on this device. For 
example, I have already installed the GNU C-compiler 14 and am very happy with 
it in conjunction with R - Project. My macOS version is already 14.2. Now, how 
can we build a community here so that we can network together for this topic?

Best regards

Z. Matthias

> On Montag, Nov. 06, 2023 at 3:05 PM, Volker Blum via users 
> mailto:users@lists.open-mpi.org)> wrote:
> I don’t have a solution to this but am interested in finding one.
>
> There is an issue with some include statements between OneAPI and XCode on 
> MacOS 14.x , at least for C++ (the example below seems to be C?). It appears 
> that many standard headers are not being found.
>
> I did not encounter this problem with OpenMPI, though, since I got stuck at 
> an earlier point. My workaround, OpenMPI 4.1.6, compiled fine.
>
> While compiling a different C++ code, these missing headers struck me, too.
>
> Many of the include related error messages went away after installing XCode 
> 15.1 beta 2 - however, not all of them. That’s as far as I got … sorry about 
> the experience.
>
> Best wishes
> Volker
>
>
> Volker Blum
> Vinik Associate Professor, Duke MEMS & Chemistry
> https://aims.pratt.duke.edu
> https://bsky.app/profile/aimsduke.bsky.social
>
> > On Nov 6, 2023, at 4:25 AM, Christophe Peyret via users 
> >  wrote:
> >
> > Hello,
> >
> > I am tring to compile openmpi 5.0.0 on MacOS 14.1 with Intel oneapi Version 
> > 2021.9.0 Build 20230302_00.
> >
> > I enter commande :
> >
> > lt_cv_ld_force_load=no ../openmpi-5.0.0/configure 
> > --prefix=$APP_DIR/openmpi-5.0.0 F77=ifort FC=ifort CC=icc CXX=icpc 
> > --with-pmix=internal --with-libevent=internal --with-hwloc=internal
> >
> > Then
> >
> > make
> >
> > And compilation stops with error message :
> >
> > /Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c(55):
> >  catastrophic error: cannot open source file 
> > "/Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c"
> > # include 
> > ^
> >
> > compilation aborted for 
> > /Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c
> >  (code 4)
> > make[4]: *** [pmix_path.lo] Error 1
> > make[3]: *** [all-recursive] Error 1
> > make[2]: *** [all-recursive] Error 1
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all-recursive] Error 1
> >
>


Re: [OMPI users] OpenMPI 5.0.0 & Intel OneAPI 2023.2.0 on MacOS 14.0:

2023-11-06 Thread Matt Thompson via users
I have built Open MPI 5 (well, 5.0.0rc12) with Intel oneAPI under Rosetta2
with:

 $ lt_cv_ld_force_load=no ../configure --disable-wrapper-rpath
--disable-wrapper-runpath \
CC=clang CXX=clang++ FC=ifort \
--with-hwloc=internal --with-libevent=internal --with-pmix=internal

I'm fairly sure the two wrapper flags are not needed, I just have them for
historical reasons (long ago I needed them and until they cause an issue, I
just keep all my flags around).

Maybe it works for me because I'm using clang instead of icc? I can "get
away" with that because the code I work on is nearly all Fortran so the C
compiler is not as important to us. And all the libraries we care about
seem happy with mixed ifort-clang as well.

If you don't have a driving need for icc, maybe this will let things work?

On Mon, Nov 6, 2023 at 8:55 AM Volker Blum via users <
users@lists.open-mpi.org> wrote:

> I don’t have a solution to this but am interested in finding one.
>
> There is an issue with some include statements between OneAPI and XCode on
> MacOS 14.x , at least for C++ (the example below seems to be C?). It
> appears that many standard headers are not being found.
>
> I did not encounter this problem with OpenMPI, though, since I got stuck
> at an earlier point. My workaround, OpenMPI 4.1.6, compiled fine.
>
> While compiling a different C++ code, these missing headers struck me, too.
>
> Many of the include related error messages went away after installing
> XCode 15.1 beta 2 - however, not all of them. That’s as far as I got …
> sorry about the experience.
>
> Best wishes
> Volker
>
>
> Volker Blum
> Vinik Associate Professor, Duke MEMS & Chemistry
> https://aims.pratt.duke.edu
> https://bsky.app/profile/aimsduke.bsky.social
>
> > On Nov 6, 2023, at 4:25 AM, Christophe Peyret via users <
> users@lists.open-mpi.org> wrote:
> >
> > Hello,
> >
> > I am tring to compile openmpi 5.0.0 on MacOS 14.1 with Intel oneapi
> Version 2021.9.0 Build 20230302_00.
> >
> > I enter commande :
> >
> > lt_cv_ld_force_load=no  ../openmpi-5.0.0/configure
> --prefix=$APP_DIR/openmpi-5.0.0 F77=ifort FC=ifort CC=icc CXX=icpc
> --with-pmix=internal  --with-libevent=internal --with-hwloc=internal
> >
> > Then
> >
> > make
> >
> > And compilation stops with error message :
> >
> >
> /Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c(55):
> catastrophic error: cannot open source file
> "/Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c"
> >  #include 
> > ^
> >
> > compilation aborted for
> /Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c
> (code 4)
> > make[4]: *** [pmix_path.lo] Error 1
> > make[3]: *** [all-recursive] Error 1
> > make[2]: *** [all-recursive] Error 1
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all-recursive] Error 1
> >
>
>

-- 
Matt Thompson
   “The fact is, this is about us identifying what we do best and
   finding more ways of doing less of it better” -- Director of Better Anna
Rampton


Re: [OMPI users] OpenMPI 5.0.0 & Intel OneAPI 2023.2.0 on MacOS 14.0:

2023-11-06 Thread Jeff Squyres (jsquyres) via users
We develop and build with clang on macOS frequently; it would be surprising if 
it didn't work.

That being said, I was able to replicate both errors report here.  One macOS 
Sonoma with XCode 15.x and the OneAPI compilers:

  *   configure fails in the PMIx libevent section, complaining about how it 
can't find a suitable libevent
 *
Filed github issue https://github.com/open-mpi/ompi/issues/12051 to track
  *
build fails complaining that it can't find 
 *
Filed github issue https://github.com/open-mpi/ompi/issues/12052 to track

Thanks for reporting these issues!

From: users  on behalf of Matt Thompson via 
users 
Sent: Monday, November 6, 2023 1:38 PM
To: Open MPI Users 
Cc: Matt Thompson ; Christophe Peyret 

Subject: Re: [OMPI users] OpenMPI 5.0.0 & Intel OneAPI 2023.2.0 on MacOS 14.0:

I have built Open MPI 5 (well, 5.0.0rc12) with Intel oneAPI under Rosetta2 with:

 $ lt_cv_ld_force_load=no ../configure --disable-wrapper-rpath 
--disable-wrapper-runpath \
CC=clang CXX=clang++ FC=ifort \
--with-hwloc=internal --with-libevent=internal --with-pmix=internal

I'm fairly sure the two wrapper flags are not needed, I just have them for 
historical reasons (long ago I needed them and until they cause an issue, I 
just keep all my flags around).

Maybe it works for me because I'm using clang instead of icc? I can "get away" 
with that because the code I work on is nearly all Fortran so the C compiler is 
not as important to us. And all the libraries we care about seem happy with 
mixed ifort-clang as well.

If you don't have a driving need for icc, maybe this will let things work?

On Mon, Nov 6, 2023 at 8:55 AM Volker Blum via users 
mailto:users@lists.open-mpi.org>> wrote:
I don’t have a solution to this but am interested in finding one.

There is an issue with some include statements between OneAPI and XCode on 
MacOS 14.x , at least for C++ (the example below seems to be C?). It appears 
that many standard headers are not being found.

I did not encounter this problem with OpenMPI, though, since I got stuck at an 
earlier point. My workaround, OpenMPI 4.1.6, compiled fine.

While compiling a different C++ code, these missing headers struck me, too.

Many of the include related error messages went away after installing XCode 
15.1 beta 2 - however, not all of them. That’s as far as I got … sorry about 
the experience.

Best wishes
Volker


Volker Blum
Vinik Associate Professor, Duke MEMS & Chemistry
https://aims.pratt.duke.edu
https://bsky.app/profile/aimsduke.bsky.social

> On Nov 6, 2023, at 4:25 AM, Christophe Peyret via users 
> mailto:users@lists.open-mpi.org>> wrote:
>
> Hello,
>
> I am tring to compile openmpi 5.0.0 on MacOS 14.1 with Intel oneapi Version 
> 2021.9.0 Build 20230302_00.
>
> I enter commande :
>
> lt_cv_ld_force_load=no  ../openmpi-5.0.0/configure 
> --prefix=$APP_DIR/openmpi-5.0.0 F77=ifort FC=ifort CC=icc CXX=icpc  
> --with-pmix=internal  --with-libevent=internal --with-hwloc=internal
>
> Then
>
> make
>
> And compilation stops with error message :
>
> /Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c(55):
>  catastrophic error: cannot open source file 
> "/Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c"
>  #include 
> ^
>
> compilation aborted for 
> /Users/christophe/Developer/openmpi-5.0.0/3rd-party/openpmix/src/util/pmix_path.c
>  (code 4)
> make[4]: *** [pmix_path.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>



--
Matt Thompson
   “The fact is, this is about us identifying what we do best and
   finding more ways of doing less of it better” -- Director of Better Anna 
Rampton