Skip to content

Enable pool scalable on Windows #251

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

Merged

Conversation

ldorau
Copy link
Contributor

@ldorau ldorau commented Feb 22, 2024

No description provided.

@ldorau ldorau requested a review from a team as a code owner February 22, 2024 13:31
@ldorau ldorau force-pushed the Build_libumf_pool_scalable_on_Windows branch from 618ad71 to fc6bb89 Compare February 22, 2024 14:02
@@ -62,11 +65,20 @@ static struct tbb_callbacks g_tbb_ops;
static UTIL_ONCE_FLAG tbb_is_initialized = UTIL_ONCE_FLAG_INIT;
static bool Init_tbb_global_state_failed;

#ifdef _WIN32
Copy link
Contributor

Choose a reason for hiding this comment

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

I would move this somewhere to utils and implement OS abstraction layer for such functionality.

Copy link
Contributor

Choose a reason for hiding this comment

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

totally agree

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vinser52 is it OK now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.
Done.

@ldorau ldorau marked this pull request as draft February 22, 2024 16:22
@ldorau ldorau changed the title Build libumf_pool_scalable on Windows [DRAFT] Build libumf_pool_scalable on Windows Feb 22, 2024
@@ -62,11 +65,20 @@ static struct tbb_callbacks g_tbb_ops;
static UTIL_ONCE_FLAG tbb_is_initialized = UTIL_ONCE_FLAG_INIT;
static bool Init_tbb_global_state_failed;

#ifdef _WIN32
Copy link
Contributor

Choose a reason for hiding this comment

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

totally agree

@ldorau ldorau force-pushed the Build_libumf_pool_scalable_on_Windows branch 3 times, most recently from ff94160 to 6c817a6 Compare March 5, 2024 16:15
@ldorau ldorau changed the title [DRAFT] Build libumf_pool_scalable on Windows Enable pool scalable on Windows Mar 5, 2024
@ldorau ldorau force-pushed the Build_libumf_pool_scalable_on_Windows branch from 6c817a6 to e9d822b Compare March 5, 2024 16:23
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@ldorau ldorau force-pushed the Build_libumf_pool_scalable_on_Windows branch from e9d822b to c578540 Compare March 6, 2024 08:34
@ldorau ldorau marked this pull request as ready for review March 6, 2024 08:34
@ldorau ldorau force-pushed the Build_libumf_pool_scalable_on_Windows branch from c578540 to df4223c Compare March 7, 2024 11:17
@ldorau ldorau requested review from bratpiorka and igchor March 7, 2024 11:18
@ldorau
Copy link
Contributor Author

ldorau commented Mar 7, 2024

@bratpiorka Done

ldorau added 4 commits March 7, 2024 12:45
Replace strcpy() with util_strncpy() in the base example.

Signed-off-by: Lukasz Dorau <[email protected]>
Add util_open_library(), util_close_library()
and util_get_symbol_addr() to utils_load_library.h

Including this header forces linking with libdl on Linux.

Signed-off-by: Lukasz Dorau <[email protected]>
Signed-off-by: Lukasz Dorau <[email protected]>
ldorau added 2 commits March 7, 2024 12:45
CMAKE_PREFIX_PATH can contain many paths separated with semicolon,
so using the expressions like:

${CMAKE_PREFIX_PATH}/include

or

${CMAKE_PREFIX_PATH}/bin

is incorrect, because a subdirectory would be appended
only to the last path.

Signed-off-by: Lukasz Dorau <[email protected]>
Add looking for the tbbmalloc library
and the <tbb/scalable_allocator.h> header.

Signed-off-by: Lukasz Dorau <[email protected]>
@ldorau ldorau force-pushed the Build_libumf_pool_scalable_on_Windows branch from df4223c to 6d42200 Compare March 7, 2024 11:46
@ldorau ldorau requested a review from KFilipek March 7, 2024 11:47
@ldorau ldorau force-pushed the Build_libumf_pool_scalable_on_Windows branch from 6d42200 to 948f131 Compare March 7, 2024 14:34
@ldorau ldorau merged commit 74fb240 into oneapi-src:main Mar 7, 2024
@ldorau ldorau deleted the Build_libumf_pool_scalable_on_Windows branch March 7, 2024 15:26
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.

5 participants