[Dune] STD Thread that can not be run on Cray XC30 interactively crashed build process ?

Jö Fahlke jorrit at jorrit.de
Tue Mar 24 16:28:08 CET 2015


Am Tue, 24. Mar 2015, 15:09:44 +0100 schrieb Benedikt Oswald:
> Date: Tue, 24 Mar 2015 15:09:44 +0100
> From: Benedikt Oswald <benedikt.oswald at lspr.ch>
> To: Dune <dune at dune-project.org>
> Subject: Re: [Dune] STD Thread that can not be run on Cray XC30
>  interactively crashed build process ?
> 
> Hello Jö,
> 
> thanks for your suggestion.
> In fact, I assume that the frontend of the Cray does some sort of cross
> compilation...however,
> one can not just run a test program on the compute nodes but it needs to
> be submitted as a batch
> job. So, it should be possible to just forbid dunecontrol to run test
> programs. I seem to remember
> that this was possible in the old days of the autotools based build system ?

To summarize the discussion I had on the phone with Benedikt: The
build-computer and the .opts-file he uses are set up such that the compilers
are provided to cmake more-or-less automatically, but actually produce code
for the host-computer (the one the compiled code is supposed to eventually run
on).  However, nothing tells cmake this, cmake assumes that the compilers
produce code that can run on the build-computer too.

I remember I did some cross-compiling with cmake when I was working on the
make-quadratures-threadsafe-branch, but unfortunately I cannot find that
anymore (the benchmarks for the Phi were compiled with autotools).  Oh well.

The cmake wiki describes cross compiling at [1]:  It should be enough to set
-DCMAKE_SYSTEM_NAME=Linux (or, if that fails, -DCMAKE_SYSTEM_NAME=Generic).
That should turn on CMAKE_CROSSCOMPILING automatically, and since all the
compilers are already provided you should be set.

[1] http://www.vtk.org/Wiki/CMake_Cross_Compiling

Let us know if that helps.

Regards,
Jö.

-- 
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729

In the beginning the Universe was created.  This has made a lot of
people very angry and been widely regarded as a bad move.
-- Douglas Adams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150324/e58c73c8/attachment.sig>


More information about the Dune mailing list