Re: r338049 - [OPENMP] What's new for OpenMP in clang.

2018-07-26 Thread GMail via cfe-commits
Oh, yes, it is a typo, thanks for catching it!

-
Best regards,
Alexey Bataev

26.07.2018 13:59, Jonas Hahnfeld via cfe-commits пишет:
> Hi Alexey,
>
> On 2018-07-26 19:53, Alexey Bataev via cfe-commits wrote:
>> Author: abataev
>> Date: Thu Jul 26 10:53:45 2018
>> New Revision: 338049
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=338049&view=rev
>> Log:
>> [OPENMP] What's new for OpenMP in clang.
>>
>> Updated ReleaseNotes + Status of the OpenMP support in clang.
>>
>> Modified:
>>     cfe/trunk/docs/OpenMPSupport.rst
>>     cfe/trunk/docs/ReleaseNotes.rst
>>
>> Modified: cfe/trunk/docs/OpenMPSupport.rst
>> [...]
>>
>> Modified: cfe/trunk/docs/ReleaseNotes.rst
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ReleaseNotes.rst?rev=338049&r1=338048&r2=338049&view=diff
>>
>> ==
>>
>> --- cfe/trunk/docs/ReleaseNotes.rst (original)
>> +++ cfe/trunk/docs/ReleaseNotes.rst Thu Jul 26 10:53:45 2018
>> @@ -216,7 +216,21 @@ OpenCL C Language Changes in Clang
>>  OpenMP Support in Clang
>>  --
>>
>> -- ...
>> +- Clang gained basic support for OpenMP 4.5 offloading for NVPTX
>> target.
>> +   To compile your program for NVPTX target use the following options:
>> +   `-fopenmp -fopenmp-targets=nvptx64-nvidia-cuda` for 64 bit
>> platforms or
>> +   `-fopenmp -fopenmp-targets=nvptx-nvidia-cuda` for 32 bit platform.
>> +
>> +- Passing options to the OpenMP device offloading toolchain can be
>> done using
>> +  the `-Xopenmp-target= -opt=val` flag. In this way the
>> `-opt=val`
>> +  option will be forwarded to the respective OpenMP device
>> offloading toolchain
>> +  described by the triple. For example passing the compute
>> capability to
>> +  the OpenMP NVPTX offloading toolchain can be done as follows:
>> +  `-Xopenmp-target=nvptx62-nvidia-cuda -march=sm_60`.
>
> Is that a typo and should say "nvptx64"?
>



signature.asc
Description: OpenPGP digital signature
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


Re: Re: r322018 - [OPENMP] Current status of OpenMP support.

2018-01-09 Thread GMail via cfe-commits
This is is the status of OpenMP support in 6.0. There is nothing new
since branching.

-
Best regards,
Alexey Bataev

08.01.2018 14:09, Jonas Hahnfeld via cfe-commits пишет:
> Can we backport this page to release_60? I think the documented
> support is also valid for 6.0 or did I miss recent commits that added
> support for new directives / clauses?
>
> Am 2018-01-08 20:02, schrieb Alexey Bataev via cfe-commits:
>> Author: abataev
>> Date: Mon Jan  8 11:02:51 2018
>> New Revision: 322018
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=322018&view=rev
>> Log:
>> [OPENMP] Current status of OpenMP support.
>>
>> Summary: Some info about supported features of OpenMP 4.5-5.0.
>>
>> Reviewers: hfinkel, rsmith
>>
>> Subscribers: kkwli0, Hahnfeld, cfe-commits
>>
>> Differential Revision: https://reviews.llvm.org/D39457
>>
>> Added:
>>     cfe/trunk/docs/OpenMPSupport.rst
>> Modified:
>>     cfe/trunk/docs/index.rst
>>
>> Added: cfe/trunk/docs/OpenMPSupport.rst
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/OpenMPSupport.rst?rev=322018&view=auto
>>
>> ==
>>
>> --- cfe/trunk/docs/OpenMPSupport.rst (added)
>> +++ cfe/trunk/docs/OpenMPSupport.rst Mon Jan  8 11:02:51 2018
>> @@ -0,0 +1,68 @@
>> +.. raw:: html
>> +
>> +  
>> +    .none { background-color: #FF }
>> +    .partial { background-color: #99 }
>> +    .good { background-color: #CCFF99 }
>> +  
>> +
>> +.. role:: none
>> +.. role:: partial
>> +.. role:: good
>> +
>> +==
>> +OpenMP Support
>> +==
>> +
>> +Clang fully supports OpenMP 3.1 + some elements of OpenMP 4.5. Clang
>> supports offloading to X86_64, AArch64 and PPC64[LE] devices.
>> +Support for Cuda devices is not ready yet.
>> +The status of major OpenMP 4.5 features support in Clang.
>> +
>> +Standalone directives
>> +=
>> +
>> +* #pragma omp [for] simd: :good:`Complete`.
>> +
>> +* #pragma omp declare simd: :partial:`Partial`.  We support
>> parsing/semantic
>> +  analysis + generation of special attributes for X86 target, but still
>> +  missing the LLVM pass for vectorization.
>> +
>> +* #pragma omp taskloop [simd]: :good:`Complete`.
>> +
>> +* #pragma omp target [enter|exit] data: :good:`Complete`.
>> +
>> +* #pragma omp target update: :good:`Complete`.
>> +
>> +* #pragma omp target: :partial:`Partial`.  No support for the
>> `depend` clauses.
>> +
>> +* #pragma omp declare target: :partial:`Partial`.  No full codegen
>> support.
>> +
>> +* #pragma omp teams: :good:`Complete`.
>> +
>> +* #pragma omp distribute [simd]: :good:`Complete`.
>> +
>> +* #pragma omp distribute parallel for [simd]: :good:`Complete`.
>> +
>> +Combined directives
>> +===
>> +
>> +* #pragma omp parallel for simd: :good:`Complete`.
>> +
>> +* #pragma omp target parallel: :partial:`Partial`.  No support for
>> the `depend` clauses.
>> +
>> +* #pragma omp target parallel for [simd]: :partial:`Partial`.  No
>> support for the `depend` clauses.
>> +
>> +* #pragma omp target simd: :partial:`Partial`.  No support for the
>> `depend` clauses.
>> +
>> +* #pragma omp target teams: :partial:`Partial`.  No support for the
>> `depend` clauses.
>> +
>> +* #pragma omp teams distribute [simd]: :good:`Complete`.
>> +
>> +* #pragma omp target teams distribute [simd]: :partial:`Partial`.  No
>> support for the and `depend` clauses.
>> +
>> +* #pragma omp teams distribute parallel for [simd]: :good:`Complete`.
>> +
>> +* #pragma omp target teams distribute parallel for [simd]:
>> :partial:`Partial`.  No full codegen support.
>> +
>> +Clang does not support any constructs/updates from upcoming OpenMP
>> 5.0 except for `reduction`-based clauses in the `task` and
>> `target`-based directives.
>> +
>>
>> Modified: cfe/trunk/docs/index.rst
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/index.rst?rev=322018&r1=322017&r2=322018&view=diff
>>
>> ==
>>
>> --- cfe/trunk/docs/index.rst (original)
>> +++ cfe/trunk/docs/index.rst Mon Jan  8 11:02:51 2018
>> @@ -39,6 +39,7 @@ Using Clang as a Compiler
>>     SourceBasedCodeCoverage
>>     Modules
>>     MSVCCompatibility
>> +   OpenMPSupport
>>     ThinLTO
>>     CommandGuide/index
>>     FAQ
>>
>>
>> ___
>> cfe-commits mailing list
>> cfe-commits@lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>



signature.asc
Description: OpenPGP digital signature
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits