Getting Error with coprthr_mpi.h

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Getting Error with coprthr_mpi.h

Postby Nerded » Wed Jun 07, 2017 2:27 pm

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!
Nerded
 
Posts: 19
Joined: Tue Jun 06, 2017 8:30 pm

Re: Getting Error with coprthr_mpi.h

Postby jar » Wed Jun 07, 2017 6:15 pm

What Linux image are you using?

Could you post the code you are attempting to compile?
User avatar
jar
 
Posts: 295
Joined: Mon Dec 17, 2012 3:27 am

Re: Getting Error with coprthr_mpi.h

Postby Nerded » Wed Jun 07, 2017 7:14 pm

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
Nerded
 
Posts: 19
Joined: Tue Jun 06, 2017 8:30 pm

Re: Getting Error with coprthr_mpi.h

Postby jar » Wed Jun 07, 2017 7:40 pm

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
User avatar
jar
 
Posts: 295
Joined: Mon Dec 17, 2012 3:27 am

Re: Getting Error with coprthr_mpi.h

Postby Nerded » Wed Jun 07, 2017 7:55 pm

Awesome. Is this software a threaded MPI that will work on the Epiphany processor? It's required for the task at hand.
Nerded
 
Posts: 19
Joined: Tue Jun 06, 2017 8:30 pm

Re: Getting Error with coprthr_mpi.h

Postby jar » Wed Jun 07, 2017 8:23 pm

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.
User avatar
jar
 
Posts: 295
Joined: Mon Dec 17, 2012 3:27 am


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 11 guests

cron