automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selectively building with mpi


From: Adam Mercer
Subject: Re: selectively building with mpi
Date: Mon, 4 Oct 2010 14:57:31 -0500

On Mon, Oct 4, 2010 at 12:00, Brian J. Murrell <address@hidden> wrote:

> Check the archives on this.

Will do. I had a very brief look but couldn't find much, I'll have a
more detailed look.

>> In one of our projects we have one code that can be built using
>> ${MPICC} (if it is available), but not other codes. How can I specify
>> to use ${MPICC} for one code, but ${CC} for the others.
>
> You can't, or so I have come to understand.
>
>> So I guess I'm asking how to build one code using a different compiler
>> than the others?
>
> What I did was created a subdir in the dir where I wanted to use the
> mpicc (and gcc) compilers and changed the CC in the subdir's Makefile.am
> and then set the sources to build from the parent directory.

OK thanks, I'll have to make sure that the MPI codes are split off
into a separate sub-directory then.

Cheers

Adam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]