Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve omp simd error in mdd #2894

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

ethanglaser
Copy link
Contributor

@ethanglaser ethanglaser commented Sep 9, 2024

Avoids combination of vectorization and debug mode by only adding omp simd flag when debug flag is not added. This bypasses an error on windows build with -MDd: using /MTd or /MDd with '#pragma omp simd' may lead to unexpected fails due to the debugging version of iterators that cannot be vectorized correctly

Job without these changes: http://intel-ci.intel.com/ef6eac3e-3f98-f19a-9f5d-a4bf010d0e2e
Job with these changes: http://intel-ci.intel.com/ef6efb69-4c4f-f1a5-b523-a4bf010d0e2e
(only consider windows OneDAL build step, other errors exist for other reasons)

@ethanglaser ethanglaser added the dpc++ Issue/PR related to DPC++ functionality label Sep 9, 2024
@ethanglaser ethanglaser marked this pull request as ready for review September 10, 2024 14:45
@icfaust
Copy link
Contributor

icfaust commented Sep 10, 2024

Looks simple enough, @ethanglaser could you give a description as to why it needs to only be implemented when MSVC_RT_is_release is true?

@ethanglaser
Copy link
Contributor Author

Looks simple enough, @ethanglaser could you give a description as to why it needs to only be implemented when MSVC_RT_is_release is true?

Yes good point, description added

Copy link

@syakov-intel syakov-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved to merge

@ethanglaser ethanglaser merged commit 3416bc9 into oneapi-src:main Sep 12, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dpc++ Issue/PR related to DPC++ functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants