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

Jonas Hahnfeld via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 26 10:59:36 PDT 2018


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=<triple> -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"?


More information about the cfe-commits mailing list