[petsc-dev] Cross-compiling flag in PETSc

Jed Brown jedbrown at mcs.anl.gov
Mon Jul 8 06:26:01 CDT 2013


Chen Shapira <chen2600 at gmail.com> writes:

> Hi,
>
> Could anyone tell me what's the flag that's responsible to
> Cross-Compilation in petsc's configure file ?
> I'm building petsc under Linux CentOS, and I would like the library
> binaries to be built
> for a different Linux architecture ( called Intel's uOS Linux for Xeon Phi
> ),

Sounds like you want to run unhosted on MIC.  I don't know if anyone has
tested this yet.

> 
> I just need a way to tell PETSc that the test programs it runs during
> configure, might not work naturally, since I'm cross-compiling for a
> different Linux-based OS..

Use --with-batch and execute the test program on the target architecture.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130708/35169c00/attachment.sig>


More information about the petsc-dev mailing list