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

SWDEV-355608 - deprecate/cleanup hipcc link flags #3128

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

scchan
Copy link
Contributor

@scchan scchan commented Jan 9, 2023

  • deprecate -use-staticlib, -use-sharedlib which no longer provide any functional values
  • use --hip-link instead of specifying the HIP runtime by name when linking
  • fix linker option bug in HIT test's cmake
  • update build options for unit tests requiring pthread or rt

Change-Id: Ib49978773c80fb40c71dc52b050ce921943ee3e4

@scchan
Copy link
Contributor Author

scchan commented Jan 9, 2023

Rebased the patch in #3093 and added minor updates

@gargrahul
Copy link
Contributor

@scchan Please check the CI failures.

@scchan
Copy link
Contributor Author

scchan commented Jan 11, 2023

@gargrahul I fixed the Unit_hipEventMgpuMThreads.cc test, which should be linking explicitly to the pthread library.
I don't think the Windows test failure is related to my change though.

@scchan scchan requested a review from yxsamliu January 12, 2023 13:01
yxsamliu
yxsamliu previously approved these changes Jan 12, 2023
Copy link
Contributor

@yxsamliu yxsamliu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

- deprecate -use-staticlib, -use-sharedlib which no longer provide any
functional values
- use --hip-link instead of specifying the HIP runtime by name when
linking
- fix linker option bug in HIT test's cmake
- update build options for unit tests requiring pthread or rt

Change-Id: Ib49978773c80fb40c71dc52b050ce921943ee3e4
@gargrahul gargrahul merged commit a388eb1 into ROCm:develop Jan 24, 2023
@scchan scchan deleted the rebase_pr3093 branch January 27, 2023 20:46
scchan added a commit to scchan/HIPCC that referenced this pull request Feb 6, 2023
- deprecate -use-staticlib, -use-sharedlib which no longer provide any
functional values
- use --hip-link instead of specifying the HIP runtime by name when
linking
- fix linker option bug in HIT test's cmake
- update build options for unit tests requiring pthread or rt

This is essentially a C++ port of this patch in Perl: ROCm/hip#3128
scchan added a commit to ROCm/HIPCC that referenced this pull request Feb 14, 2023
- deprecate -use-staticlib, -use-sharedlib which no longer provide any
functional values
- use --hip-link instead of specifying the HIP runtime by name when
linking
- fix linker option bug in HIT test's cmake
- update build options for unit tests requiring pthread or rt

This is essentially a C++ port of this patch in Perl: ROCm/hip#3128
rocm-ci pushed a commit that referenced this pull request May 1, 2023
- deprecate -use-staticlib, -use-sharedlib which no longer provide any
functional values
- use --hip-link instead of specifying the HIP runtime by name when
linking
- fix linker option bug in HIT test's cmake
- update build options for unit tests requiring pthread or rt

Change-Id: Ib49978773c80fb40c71dc52b050ce921943ee3e4
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Aug 23, 2023
- deprecate -use-staticlib, -use-sharedlib which no longer provide any
functional values
- use --hip-link instead of specifying the HIP runtime by name when
linking
- fix linker option bug in HIT test's cmake
- update build options for unit tests requiring pthread or rt

This is essentially a C++ port of this patch in Perl: ROCm/hip#3128
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