From 253f69b44577b73b222ef38ceae41d6902ed48e0 Mon Sep 17 00:00:00 2001 From: srawat <120587655+SwRaw@users.noreply.github.com> Date: Tue, 25 Jul 2023 22:35:09 +0530 Subject: [PATCH] Adding openmp image (#2323) Co-authored-by: Sam Wu --- .../reference/openmp/openmp_toolchain.svg | 74 +++++++++++++++++++ docs/reference/openmp/openmp.md | 10 +++ 2 files changed, 84 insertions(+) create mode 100644 docs/data/reference/openmp/openmp_toolchain.svg diff --git a/docs/data/reference/openmp/openmp_toolchain.svg b/docs/data/reference/openmp/openmp_toolchain.svg new file mode 100644 index 0000000000..1f116fd050 --- /dev/null +++ b/docs/data/reference/openmp/openmp_toolchain.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/reference/openmp/openmp.md b/docs/reference/openmp/openmp.md index 6cbea137c8..07eaeab20b 100644 --- a/docs/reference/openmp/openmp.md +++ b/docs/reference/openmp/openmp.md @@ -11,6 +11,16 @@ OpenMP toolchain, example usage of device offloading, and usage of `rocprof` with OpenMP applications. The GPUs supported are the same as those supported by this ROCm release. See the list of supported GPUs in {doc}`/release/gpu_os_support`. +The ROCm OpenMP compiler is implemented using LLVM compiler technology. +{numref}`openmp-toolchain` illustrates the internal steps taken to translate a user’s application into an executable that can offload computation to the AMDGPU. The compilation is a two-pass process. Pass 1 compiles the application to generate the CPU code and Pass 2 links the CPU code to the AMDGPU device code. + +```{figure-md} openmp-toolchain + + + +OpenMP Toolchain +``` + ### Installation The OpenMP toolchain is automatically installed as part of the standard ROCm