CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
71 lines
1.8 KiB
ReStructuredText
71 lines
1.8 KiB
ReStructuredText
Call may contain unknown parallel regions. Use `[[omp::assume("omp_no_parallelism")]]` to override. [OMP133]
|
|
====================================================================================================================
|
|
|
|
.. _omp133:
|
|
|
|
This analysis remark identifies calls that prevented :ref:`OMP131 <omp131>` from
|
|
providing the generic-mode kernel with a fully specialized state machine. This
|
|
remark will identify each call that may contain unknown parallel regions that
|
|
caused the kernel to require a fallback.
|
|
|
|
Examples
|
|
--------
|
|
|
|
This will occur for any generic-mode kernel that may contain unknown parallel
|
|
regions. This is typically coupled with the :ref:`OMP132 <omp132>` remark.
|
|
|
|
.. code-block:: c++
|
|
|
|
extern void setup();
|
|
|
|
void foo() {
|
|
#pragma omp target
|
|
{
|
|
setup();
|
|
#pragma omp parallel
|
|
{
|
|
work();
|
|
}
|
|
}
|
|
}
|
|
|
|
.. code-block:: console
|
|
|
|
$ clang++ -fopenmp -fopenmp-targets=nvptx64 -O2 -Rpass-analysis=openmp-opt omp133.cpp
|
|
omp133.cpp:6:5: remark: Call may contain unknown parallel regions. Use
|
|
`[[omp::assume("omp_no_parallelism")]]` to override. [OMP133]
|
|
setup();
|
|
^
|
|
|
|
The remark suggests marking the function with the assumption that it contains no
|
|
parallel regions. If this is done then the kernel will be rewritten with a fully
|
|
specialized state machine.
|
|
|
|
.. code-block:: c++
|
|
|
|
[[omp::assume("omp_no_parallelism")]] extern void setup();
|
|
|
|
|
|
void foo() {
|
|
#pragma omp target
|
|
{
|
|
setup();
|
|
#pragma omp parallel
|
|
{
|
|
work();
|
|
}
|
|
}
|
|
}
|
|
|
|
.. code-block:: console
|
|
|
|
$ clang++ -fopenmp -fopenmp-targets=nvptx64 -O2 -Rpass=openmp-opt omp133.cpp
|
|
omp133.cpp:4:1: remark: Rewriting generic-mode kernel with a customized state machine. [OMP131]
|
|
#pragma omp target
|
|
^
|
|
|
|
Diagnostic Scope
|
|
----------------
|
|
|
|
OpenMP target offloading analysis remark.
|