Makefile updates for Red Hat Enterprise Linux 7 and Ubuntu 14.04

In case it helps anyone out there, I've attached 3 makefiles (1 for
Red Hat, 2 for Ubuntu), and a list of package prerequisites:

Feel free to ignore this message.

Makefile.rhel7 (2.76 KB)

Makefile.ubuntu (2.95 KB)

Makefile.ubuntu_simple (2.84 KB)

In case it helps anyone out there, I've attached 3 makefiles (1 for
Red Hat, 2 for Ubuntu), and a list of package prerequisites:

Feel free to ignore this message.

   -------
Red Hat (7)
I'm attaching a makefile for RedHat7 ("Makefile.rhel7"). (This also
works with RHEL6) To compile using it, you need to install the
following standard packages with yum:
  gcc-c++ openmpi-devel fftw-devel

Makefile.mpi does the same thing *and* enabled vectorization. the
benefit from using fftw instead of the internal FFT is almost always
negligible.

   -------
Ubuntu (14.04)
I'm attaching a slightly altered version of "Makefile.ubuntu" and
"Makefile.ubuntu_simple", which omit the "-g" flag. (It looks like
someone forgot to take it out.) As before, to compile the full

i don't think so. in fact, it is highly recommended to *use* the -g
flag for any self-compiled binaries as it allows to do more thorough
debugging and profiling of the executable at no additional cost
(except for a little bit of disk space). removing the debug info makes
it massively harder to associate certain areas of code with the
corresponding source file. if you absolutely feel including debug-info
to be wasteful, then you should do as the rpm packages do and strip
the debug info into a separate file and then put it into a suitable
location.

axel.

In case it helps anyone out there, I've attached 3 makefiles (1 for
Red Hat, 2 for Ubuntu), and a list of package prerequisites:

Feel free to ignore this message.

   -------
Red Hat (7)
I'm attaching a makefile for RedHat7 ("Makefile.rhel7"). (This also
works with RHEL6) To compile using it, you need to install the
following standard packages with yum:
  gcc-c++ openmpi-devel fftw-devel

Makefile.mpi does the same thing *and* enabled vectorization. the
benefit from using fftw instead of the internal FFT is almost always
negligible.

My mistake. Both makefiles work in Red-Hat-EL-7 (Makefile.mpi &
Makefile.rhel7). If I notice a non-trivial speed difference between
the two versions, I'll post again, but I doubt it.

In the past, we were having difficulty getting "make mpi" to to work
in red hat EL-6 or EL-7, so we changed the makefile and reinstalled
the OS, and things magically worked again. (Apparently it was
reinstalling the OS which did the trick, and not the makefile.)

Thanks!

   -------
Ubuntu (14.04)
I'm attaching a slightly altered version of "Makefile.ubuntu" and
"Makefile.ubuntu_simple", which omit the "-g" flag. (It looks like
someone forgot to take it out.) As before, to compile the full

i don't think so. in fact, it is highly recommended to *use* the -g
flag for any self-compiled binaries as it allows to do more thorough
debugging and profiling of the executable at no additional cost
(except for a little bit of disk space).

I'm happy to be wrong about this too.

http://stackoverflow.com/questions/24117063/is-a-program-compiled-with-g-gcc-flag-slower-than-the-same-program-compiled-wit

Thanks again.

Andrew