Skip to content

Revert "[Workaround] "-lflang_rt.runtime" not ready so use "-lFortranRuntime … (#656)"#949

Merged
vin-huang merged 2 commits into
developfrom
users/vinhuang/use_flang_rt
Aug 11, 2025
Merged

Revert "[Workaround] "-lflang_rt.runtime" not ready so use "-lFortranRuntime … (#656)"#949
vin-huang merged 2 commits into
developfrom
users/vinhuang/use_flang_rt

Conversation

@vin-huang
Copy link
Copy Markdown
Contributor

@vin-huang vin-huang commented Jul 30, 2025

This reverts commit c6c0a69.
for SWDEV-544106

alex391a
alex391a previously approved these changes Jul 30, 2025
minsukim-amd pushed a commit that referenced this pull request Jul 31, 2025
Bumps [rocm-docs-core](https://github.com/ROCm/rocm-docs-core) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/ROCm/rocm-docs-core/releases)
- [Changelog](https://github.com/ROCm/rocm-docs-core/blob/develop/CHANGELOG.md)
- [Commits](ROCm/rocm-docs-core@v1.12.1...v1.13.0)

---
updated-dependencies:
- dependency-name: rocm-docs-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

[ROCm/hipBLAS commit: efc5429]
@davidd-amd
Copy link
Copy Markdown
Contributor

davidd-amd commented Jul 31, 2025

What happens if we don't add these fortran libs at all? Do we have fortran tests that verify that confirm the flags are required?

@estewart08
Copy link
Copy Markdown
Contributor

This is going to fine for staging, but will cause problems for mainline until a bulk merge from amd-staging -> amd-mainline lands. Would it be better to use find_library() to find the correctly named fortran library instead?

@vin-huang vin-huang force-pushed the users/vinhuang/use_flang_rt branch 2 times, most recently from 8f6f492 to c5516b1 Compare August 5, 2025 14:47
@vin-huang
Copy link
Copy Markdown
Contributor Author

This is going to fine for staging, but will cause problems for mainline until a bulk merge from amd-staging -> amd-mainline lands. Would it be better to use find_library() to find the correctly named fortran library instead?

Yes, you're right.

I’ve modified the code to use find_library() to check whether FortranRuntime exists. If it doesn’t, it will move to use flang_rt.runtime.

An alternative approach would be to check the Clang version directly and link the corresponding libraries, but using find_library() may offer better flexibility.

@vin-huang vin-huang force-pushed the users/vinhuang/use_flang_rt branch from c5516b1 to ff0370d Compare August 5, 2025 15:14
@vin-huang
Copy link
Copy Markdown
Contributor Author

What happens if we don't add these fortran libs at all? Do we have fortran tests that verify that confirm the flags are required?

The Fortran libraries are linked due to the use of LAPACK for validation. However, since BLIS is now the default validation method, we may consider removing the LAPACK-based validation. If we proceed with that, the linked Fortran libraries may no longer be necessary.

@vin-huang
Copy link
Copy Markdown
Contributor Author

@bstefanuk
Copy link
Copy Markdown
Contributor

bstefanuk commented Aug 8, 2025

I am interested in resolving some outstanding complexity around these fortran runtime libraries, for example, why are we supporting both both flang_rt.runtime and FortranRuntime, are these both really required?

Either way, this seems acceptable for now given the following webpages that I reviewed:

@bstefanuk
Copy link
Copy Markdown
Contributor

Changes to hipsparselt code coverage were made recently. I suggest re-triggering that pipeline.

@vin-huang vin-huang merged commit 688018d into develop Aug 11, 2025
11 of 12 checks passed
@vin-huang vin-huang deleted the users/vinhuang/use_flang_rt branch August 11, 2025 01:23
ammallya pushed a commit that referenced this pull request Sep 18, 2025
* Docs: Add environment variable reference page

* Fix

[ROCm/rocSOLVER commit: 61182e9]
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.

5 participants