[cfe-commits] [PATCH] First OpenMP patch

Alexey Bataev a.bataev at gmx.com
Wed Dec 19 03:02:23 PST 2012


Dmitry, thanks for a good advice about :option:. Fixed patch is in the attach.

----- Original Message -----
From: Dmitri Gribenko
Sent: 12/18/12 07:19 PM
To: Alexey Bataev
Subject: Re: [cfe-commits] [PATCH] First OpenMP patch

 On Tue, Dec 18, 2012 at 4:49 PM, Alexey Bataev <a.bataev at gmx.com> wrote: > Hello everyone, > Thank you very much for comments. I agree, that we should prepare some > design description document. I'll try to prepapre it as soon as possible. > I nthe meantime, I've prepared a new patch which emits warning when -fopenmp > option is found and changed doc file from html to rst. +Using of OpenMP +=============== "Using OpenMP" or "Enabling OpenMP" or "Command line flags for OpenMP" might be better + +To start using OpenMP in your program you need to add OpenMP directives in +your code and specify compile-time flag **-fopenmp**. If an OpenMP program +is compiled witout flag **-fopenmp**, a warning will be generated for the first Please use ``a monospaced font`` or a special role :option:`-fopenmp` to refer to program options. Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121219/9e4a6aaf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.p
Type: application/octet-stream
Size: 8760 bytes
Desc: Attachment: patch.p
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121219/9e4a6aaf/attachment.obj>


More information about the cfe-commits mailing list