Page 1 of 1

Getting Error with coprthr_mpi.h

PostPosted: Wed Jun 07, 2017 2:27 pm
by Nerded
Hello all,

Currently I am getting a compilation error involving this header file.

/usr/local/browndeer/coprthr2/include/coprthr_mpi.h:55:2: error: expected expression before '_coprthr_mpi_comm'
_coprthr_mpi_comm _MPI_COMM_THREAD; \

Does anyone know why this might be, or how to fix it?

Thanks!

Re: Getting Error with coprthr_mpi.h

PostPosted: Wed Jun 07, 2017 6:15 pm
by jar
What Linux image are you using?

Could you post the code you are attempting to compile?

Re: Getting Error with coprthr_mpi.h

PostPosted: Wed Jun 07, 2017 7:14 pm
by Nerded
Unfortunately I can't post my code :O. However, it is failing in the

expansion of macro 'MPI_Init'
MPI_Init(&argc, &argv);

This code compiled/ran fine using MPICH, but now that I'm porting it over to the parallella boards its giving me a hard time :O

Re: Getting Error with coprthr_mpi.h

PostPosted: Wed Jun 07, 2017 7:40 pm
by jar
Although I was involved in the early threaded MPI for Epiphany work, I would recommend using OpenSHMEM now. The COPRTHR Threaded MPI implementation is incomplete and I'm not sure that will change much since I'm not developing it. I am continuing to support OpenSHMEM and it is a complete version 1.3 implementation at the moment. The library, test codes, and example codes are found here:
https://github.com/USArmyResearchLab/openshmem-epiphany

Re: Getting Error with coprthr_mpi.h

PostPosted: Wed Jun 07, 2017 7:55 pm
by Nerded
Awesome. Is this software a threaded MPI that will work on the Epiphany processor? It's required for the task at hand.

Re: Getting Error with coprthr_mpi.h

PostPosted: Wed Jun 07, 2017 8:23 pm
by jar
It's not MPI. It's SHMEM, which can be considered an alternative to MPI. SHMEM is better suited to the Epiphany architecture than the full MPI stack. You will still have to port your MPI code to SHMEM, but I can help if you have any issues.