Skip to content

Conversation

@alvoron
Copy link
Contributor

@alvoron alvoron commented Jul 2, 2024

Details:

Apple's llvm does not support -fopenmp. Brew's llvm avoids this issue on OpenVINO build, however ACL build fails with the error clang: error: unsupported argument 'libomp' to option '-fopenmp='. The solution is to use gcc on Apple:

CXX=/opt/homebrew/Cellar/gcc/14.1.0_1/bin/g++-14 CC=/opt/homebrew/Cellar/gcc/14.1.0_1/bin/gcc-14 cmake -DTHREADING=OMP ..

On Linux compiler issues were not observed.

ACLScheduler uses only 1 thread if OpenMP is used because parallel_get_num_threads() returns 1 in non-parallel section. The fix is suggested in #25335

Tickets:

  • ticket-id

@alvoron alvoron requested a review from ilya-lavrenov July 2, 2024 11:16
@alvoron alvoron requested a review from a team as a code owner July 2, 2024 11:16
@github-actions github-actions bot added category: inference OpenVINO Runtime library - Inference category: CPU OpenVINO CPU plugin category: build OpenVINO cmake script / infra labels Jul 2, 2024
@dmitry-gorokhov dmitry-gorokhov added this to the 2024.4 milestone Jul 11, 2024
@dmitry-gorokhov
Copy link

@ilya-lavrenov could you please help to review?

@dmitry-gorokhov dmitry-gorokhov added this pull request to the merge queue Jul 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 29, 2024
@alvoron alvoron added this pull request to the merge queue Jul 30, 2024
Merged via the queue into openvinotoolkit:master with commit c67dce1 Jul 30, 2024
@alvoron alvoron deleted the alvoron_omp_cmake branch July 30, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: build OpenVINO cmake script / infra category: CPU OpenVINO CPU plugin category: inference OpenVINO Runtime library - Inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants