-
Notifications
You must be signed in to change notification settings - Fork 35
Enable tests of proxy library on Windows Debug #417
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
Conversation
4a1311c
to
8bffca8
Compare
1a9c70f
to
67e40fb
Compare
c744754
to
04bdc1e
Compare
Converting to draft, because of license issues. Please review anyway. |
In case of Windows it requires: | ||
1) explicitly linking your program dynamically with the `umf_proxy.dll` library | ||
2) (C++ code only) including `proxy_lib_new_delete.h` in a single(!) source file in your project | ||
to override also the `new`/`delete` operations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user is supposed to include proxy_lib_new_delete.h
then it should be in include
dir, not src
and we should install it along other headers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@igchor Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@igchor I checked that this new file is properly installed
04bdc1e
to
7306c81
Compare
Add Microsoft aligned variants to Windows proxy library: - _aligned_malloc() - _aligned_realloc() - _aligned_recalloc() - _aligned_msize() - _aligned_free() - _aligned_offset_malloc() - _aligned_offset_realloc() - _aligned_offset_recalloc() and remove _free_dbg(). Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
This header provides convenient overrides for the new and delete operations in C++. It should be included in only one source file. Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Fixes: oneapi-src#350 Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
This reverts commit 92fa419. Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
7306c81
to
56d93ed
Compare
PR is ready for re-review. |
Description
Add
_aligned_malloc()
and_aligned_free()
to Windows proxy library._aligned_malloc()
is a Windows variant of Linuxaligned_alloc()
Add proxy_lib_new_delete.h
This header provides convenient overrides for the new and delete
operations in C++. It should be included in only one source file.
See: https://github.com/microsoft/mimalloc/tree/8f7d1e9a41bb0182166aac6a8d4d8b00f60ed032?tab=readme-ov-file#override_on_windows
Fixes: The proxy library does not work in the Debug build on Windows #350
Revert "Disable proxy lib tests on Windows Debug"
This reverts commit 92fa419.
Checklist