2025.x from source w/ Pelegant

Moderators: cyao, soliday

Post Reply
dhidas
Posts: 5
Joined: 21 Nov 2024, 14:33

2025.x from source w/ Pelegant

Post by dhidas » 07 May 2025, 14:52

I've noticed the source for SDDS and elegant recently moved to github. Along with that are some very simple build instructions that indeed work nicely. I was wondering if it would be possible to provide some similarly simple build instructions or guidance for building Pelegant from source. I've been building it from source for some time now, but it looks to me like a few things have been moved around and I had trouble trying to modify what I was previously doing to fit this.

soliday
Posts: 408
Joined: 28 May 2008, 09:15

Re: 2025.x from source w/ Pelegant

Post by soliday » 07 May 2025, 15:42

I can probably add that, but it is basically four lines:

git clone https://github.com/rtsoliday/SDDS.git
git clone https://github.com/rtsoliday/elegant.git
cd elegant
make -j

This will build SDDS and elegant. It will also build Pelegant if it finds the mpicc. See the Makefile.rules in both repositories to edit the locations it checks for mpicc and mpic++

I think you might also be able to skip editing the Makefile.rules if you run:
make -j MPICC=/custom/location/mpicc MPICCC=/custom/location/mpic++

dhidas
Posts: 5
Joined: 21 Nov 2024, 14:33

Re: 2025.x from source w/ Pelegant

Post by dhidas » 08 May 2025, 08:01

Thanks, the following worked for me (added missing _). We do use a non-standard location for different mpi versions.

make -j MPI_CC=`which mpicc` MPI_CCC=`which mpic++`

Thanks again for your help.

Post Reply