Skip to content

Set symbol versions 0.10 in def/map files #1013

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
merged 1 commit into from
Jan 3, 2025

Conversation

lukaszstolarczuk
Copy link
Contributor

and unify names used in these files - "LIBUMF" and "LIBUMF_PROXY"

src/libumf.def Outdated
@@ -4,9 +4,9 @@
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
;;;; End Copyright Notice

LIBRARY umf
LIBRARY LIBUMF
Copy link
Contributor

Choose a reason for hiding this comment

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

Changing the name of the library here has consequences..

Creating library D:/a/unified-memory-framework/unified-memory-framework/build/lib/Release/umf.lib and object D:/a/unified-memory-framework/unified-memory-framework/build/lib/Release/umf.exp
umf.exp : warning LNK4070: /OUT:LIBUMF.dll directive in .EXP differs from output filename 'D:\a\unified-memory-framework\unified-memory-framework\build\bin\Release\umf.dll'; ignoring directive [D:\a\unified-memory-framework\unified-memory-framework\build\src\umf.vcxproj]

You should also change project name or change the name of library in src/CMakeLists.txt:141, but another consequence is that you will need to change ALL dependencies around.

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.

- Update project's version in a few places:
- For major and minor releases: `UMF_VERSION_CURRENT` in `include/umf/base.h` (the API version)
- `release` variable in `scripts/docs_config/conf.py` (for docs)
- `UMF_VERSION` variable in `.github/workflows/basic.yml` (for installation test)
- For major releases update ABI version in `.map` and `.def` files
- For major and minor (prior 1.0.0) releases update ABI version in `.map` and `.def` files
- These files are defined for all public libraries (`libumf` and `proxy_lib`, at the moment)
Copy link
Contributor

Choose a reason for hiding this comment

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

After your changes I believe also proxy_lib will be libproxy_lib, IMO very strange naming, and should be leaved as umf and umf_proxy (e.g. oneTBB convention for tbbmalloc/tbbmalloc_proxy).

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.

@KFilipek
Copy link
Contributor

KFilipek commented Dec 30, 2024

If you want to change the umf to libumf here is the patch that fixes errors from PR:
umf_for_libumf.patch

@bratpiorka
Copy link
Contributor

@lukaszstolarczuk If we can't keep the current lib name (just umf.dll) with this change, I would opt for leaving UMF_* in map/def as it is, rather than changing it to LIBUMF_* even if we would have UMF_1.0 twice in our history

Co-authored-by: Łukasz Stolarczuk <[email protected]>
@KFilipek KFilipek merged commit eec0c91 into oneapi-src:v0.10.x Jan 3, 2025
77 checks passed
@lukaszstolarczuk lukaszstolarczuk deleted the set-symbol-ver branch January 3, 2025 16:14
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.

3 participants