Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2222 Discussions

How to integrate OpenMPI (or other) with CLion on Intel Mac?

Zooniskaka
Beginner
2,834 Views
Recently I tried integrate OpenMPI with Clion IDE on Intel Mac. I installed Open MPI with Brew install openmpi
Now as I see I have to make some changes in CMakeLists.txt in order for this to work, But I dob.t know what Explicitly I shall do. Also if you are comfortable with different mpi (for example mpich) that would be appreciated too! Thanks in advance!

Basic example I'd like to work

#include <mpi.h>
#include <stdio.h>

int main(int argc, char **argv) {
  int rank, size;

  MPI_Init(&argc, &argv);
  MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  MPI_Comm_size(MPI_COMM_WORLD, &size);
  printf("Process #%d of %d\n", rank, size);
  MPI_Finalize();
  return 0;}
Labels (1)
0 Kudos
3 Replies
HemanthCH_Intel
Moderator
2,816 Views

Hi,

 

Thank you for posting in Intel Communities.

 

As we can see you are using openMPI, this forum is intended to support the queries related to the Intel oneAPI HPC Toolkit and other Intel oneAPI products. So, could you please let us know whether you have any issues with Intel oneAPI products?

 

Thanks & Regards,

Hemanth.

 

0 Kudos
HemanthCH_Intel
Moderator
2,795 Views

Hi,


We haven't heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Hemanth.


0 Kudos
HemanthCH_Intel
Moderator
2,780 Views

Hi,

 

As we haven't heard back from you, we are closing this issue. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.

 

Thanks & Regards,

Hemanth.

 

0 Kudos
Reply