Skip to content

Conversation

@bopeng1234
Copy link
Contributor

Type of change

Please delete options that are not relevant. Add a 'X' to the one that is applicable.

  • Bug fix (non-breaking change which fixes an issue)

fix issue #2136

This code shows how to use OpenMP on the CPU host as well as using target offload capabilities.

The different modes use a simple calculation using the well known mathematical formula that states if one integrates from 0 to 1 over the function, $(4.0/(1+x*x))dx$, the answer is pi. One can approximate this integral by summing up the area of a large number of rectangles over this same range.
The different modes use a simple calculation using the well known mathematical formula, $∫[0,1] (4 / (1 + x²)) dx$, the answer is pi. One can approximate this integral by summing up the area of a large number of rectangles over this same range.
Copy link
Contributor

@Ankur-singh Ankur-singh Mar 3, 2025

Choose a reason for hiding this comment

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

Please check out how to write integral in latex: https://en.wikibooks.org/wiki/LaTeX/Mathematics#Sums_and_integrals.

I believe, GitHub will be able to render it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, use latex instead :)

@bopeng1234 bopeng1234 force-pushed the 2025Hack_github_2136 branch from cb0d1bb to b9de4ba Compare March 4, 2025 02:09
@bopeng1234 bopeng1234 force-pushed the 2025Hack_github_2136 branch from b9de4ba to b52bf0b Compare March 4, 2025 02:19
@Ankur-singh
Copy link
Contributor

Thanks @bopeng1234.

@jimmytwei the PR is good to merge.

@jimmytwei jimmytwei merged commit 7dff33c into oneapi-src:development Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants