Objet : Developers list for StarPU
Archives de la liste
- From: Jonathan Adamczewski <jadamcze@utas.edu.au>
- To: Samuel Thibault <samuel.thibault@ens-lyon.org>, Cedric Augonnet <cedric.augonnet@inria.fr>, starpu-devel@lists.gforge.inria.fr
- Subject: Re: [Starpu-devel] Building starpu examples with MSVC
- Date: Sun, 03 Apr 2011 15:07:57 +1000
- List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel>
- List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>
On 03/04/11 08:51, Samuel Thibault wrote:
Hello,
Jonathan Adamczewski, le Thu 31 Mar 2011 14:58:29 +0200, a écrit :
03_c89_examples_makefiles.diff:Ok. Does MSVC like -std=c89 too? If so, the patch shouldn't be a
Add -std=c89 to Makefile.am files in examples directory. Probably
should not be applied yet - I am not set up to build the CUDA
examples, so don't know if more warnings/errors are yet to be uncovered.
problem.
My intention would be that the examples are able to be compiled with MSVC. The -std=c89 option was added with the intention that warnings would be visible to GCC users upon use of non-c89 features.
I've realised that doing this properly requires more than this. On it's own, -std=c89 doesn't make much of a difference, catching not much more than // comments. To generate warnings about non-c89 features with GCC requires -pedantic - and then several options to disable warnings for features that MSVC does support e.g. -Wno-long-long, -Wno-variadic-macros, -Wno-overlength-strings)
I plan to submit patches that more fully address this in the next few days.
ffs() and sqrtf() are not available when compiling with -std=c89.Not a problem: simply add #define _BSD_SOURCE before includes to get
them back.
Thanks - nice to know.
j.
- Re: [Starpu-devel] Building starpu examples with MSVC, Samuel Thibault, 03/04/2011
- Re: [Starpu-devel] Building starpu examples with MSVC, Jonathan Adamczewski, 03/04/2011
Archives gérées par MHonArc 2.6.19+.