Skip to content

Remove unnecessary OpenMP include. - #875

Merged
devinamatthews merged 2 commits into
masterfrom
move-omp-include
Jun 24, 2025
Merged

devinamatthews merged 2 commits into
masterfrom
move-omp-include

Conversation

@devinamatthews

Copy link
Copy Markdown
Member

Details:

  • Previously, <omp.h> was included in bli_thrcomm_openmp.h so that the framework could access the necessary OpenMP functions.
  • As @melven reported (GCC 15 omp.h error when using blis.h from C++ #873), this causes issues when blis.h is included in C++ code since the <omp.h> include happens with extern "C".
  • Move the include from the header to the necessary .c files so that it does not "pollute" blis.h.

Details:
- Previously, `<omp.h>` was included in `bli_thrcomm_openmp.h` so that the framework
  could access the necessary OpenMP functions.
- As @melven reported, this causes issues when `blis.h` is included in C++ code since
  the `<omp.h>` include happens with `extern "C"`.
- Move the include from the header to the necessary .c files so that it does not "pollute" `blis.h`.
@devinamatthews
devinamatthews merged commit 843a5e8 into master Jun 24, 2025
@devinamatthews
devinamatthews deleted the move-omp-include branch June 24, 2025 21:46
devinamatthews added a commit that referenced this pull request Jun 24, 2025
Details:
- Previously, `<omp.h>` was included in `bli_thrcomm_openmp.h` so that the framework
  could access the necessary OpenMP functions.
- As @melven reported (#873), this causes issues when `blis.h` is included in C++ code since
  the `<omp.h>` include happens with `extern "C"`.
- Move the include from the header to the necessary .c files so that it does not "pollute" `blis.h`.

(cherry picked from commit 843a5e8)
devinamatthews added a commit that referenced this pull request Jun 24, 2025
Details:
- Previously, `<omp.h>` was included in `bli_thrcomm_openmp.h` so that the framework
  could access the necessary OpenMP functions.
- As @melven reported (#873), this causes issues when `blis.h` is included in C++ code since
  the `<omp.h>` include happens with `extern "C"`.
- Move the include from the header to the necessary .c files so that it does not "pollute" `blis.h`.

(cherry picked from commit 843a5e8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant