-
Notifications
You must be signed in to change notification settings - Fork 936
Closed
Labels
Description
I'm having trouble running Open MPI in Xcode. I can execute it just find, but when calling MPI_Init(NULL, NULL);, I get an error: Failed to retrieve device information! Invalid enumerated value!.
Setup
I used Homebrew to install Open MPI. I then used pkg-config to find the libraries, headers, and linker flags required:
% pkg-config --cflags --libs ompi
-I/usr/local/Cellar/open-mpi/4.0.5/include -L/usr/local/Cellar/open-mpi/4.0.5/lib -L/usr/local/opt/libevent/lib -lmpiFrom here, I added the header and libraries.
and the linker flags.
-I/usr/local/Cellar/open-mpi/4.0.5/include \
-L/usr/local/Cellar/open-mpi/4.0.5/lib \
-L/usr/local/opt/libevent/lib \
-lmpi
Finally, I added the executable, orterun, with the correct input arguments.
I can execute the hello world example fine, but when calling MPI_Init I get some errors. Here is the total output:
2020-12-18 10:19:48.235265-0800 orterun[44036:1914221] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=44036
2020-12-18 10:19:48.235699-0800 orterun[44036:1914221] SecTaskCopyDebugDescription: orterun[44036]/0#-1 LF=0
2020-12-18 10:19:48.284287-0800 orterun[44036:1914221] [CL_INVALID_OPERATION] : OpenCL Error : Failed to retrieve device information! Invalid enumerated value!
2020-12-18 10:19:48.284337-0800 orterun[44036:1914221] [CL_INVALID_OPERATION] : OpenCL Error : Failed to retrieve device information! Invalid enumerated value!
2020-12-18 10:19:48.284362-0800 orterun[44036:1914221] [CL_INVALID_OPERATION] : OpenCL Error : Failed to retrieve device information! Invalid enumerated value!
2020-12-18 10:19:48.284385-0800 orterun[44036:1914221] [CL_INVALID_OPERATION] : OpenCL Error : Failed to retrieve device information! Invalid enumerated value!
2020-12-18 10:19:48.284437-0800 orterun[44036:1914221] [CL_INVALID_OPERATION] : OpenCL Error : Failed to retrieve device information! Invalid enumerated value!
2020-12-18 10:19:48.284474-0800 orterun[44036:1914221] [CL_INVALID_OPERATION] : OpenCL Error : Failed to retrieve device information! Invalid enumerated value!
Hello world from processor Tylers-MacBook-Pro.local, rank 1 out of 4 processors
Hello world from processor Tylers-MacBook-Pro.local, rank 3 out of 4 processors
Hello world from processor Tylers-MacBook-Pro.local, rank 0 out of 4 processors
Hello world from processor Tylers-MacBook-Pro.local, rank 2 out of 4 processors
Program ended with exit code: 0
How do I get rid of the device information warning?



