Skip to content

Conversation

DominikAdamski
Copy link

[WIP] Do not merge.

Motivation

Reduce linking time by embedding GPU LLVM IR code for Flang runtime.

Technical Details

Modified Flang runtime (added ifdefs to eliminate host-specific code from GPU compilation).

Test Plan

Checked smoke-fort-dev tests and GenASiS benchmark.

Test Result

I was able to compile and successfully run tests without flang_rt.hostdevice flag.

@DominikAdamski DominikAdamski marked this pull request as draft October 21, 2025 12:36
@skganesan008
Copy link
Collaborator

@skganesan008
Copy link
Collaborator

!PSDB

@skganesan008
Copy link
Collaborator

@dpalermo
Copy link

Looks like there are smoke-fort failures in the PSDB related to stop/abort emissary support

[2025-10-21T17:55:32.127Z] flang-gpu-abort: Make Failed
[2025-10-21T17:55:32.127Z] flang-gpu-stop-integer: Make Failed
[2025-10-21T17:55:32.127Z] flang-gpu-stop-string: Make Failed
[2025-10-21T17:55:32.127Z] tgt-abort: Make Failed
[2025-10-21T17:55:32.127Z] tgt-stop: Make Failed
ld.lld: error: undefined symbol: _FortranAAbort
ld.lld: error: undefined symbol: _FortranAStopStatement
ld.lld: error: undefined symbol: _FortranAStopStatementText
ld.lld: error: undefined symbol: _FortranAAbort
ld.lld: error: undefined symbol: _FortranAStopStatement

@skganesan008
Copy link
Collaborator

@z1-cciauto
Copy link
Collaborator

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.

4 participants