Skip to content

[GPU] Explicitly export bfloat16 compiler-rt conversion builtins from codonrt - #835

Merged
arshajii merged 1 commit into
exaloop:developfrom
BI71317:pr-add-bf16-builtin
Jul 5, 2026
Merged

[GPU] Explicitly export bfloat16 compiler-rt conversion builtins from codonrt#835
arshajii merged 1 commit into
exaloop:developfrom
BI71317:pr-add-bf16-builtin

Conversation

@BI71317

@BI71317 BI71317 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

fixes #834

Change

Add bfloat16 compiler runtime conversion helper symbols to COMPILER_RT_DEFAULT_VIS_SYMBOLS in CMakeLists.txt.

This makes Codon's copied libclang_rt.builtins.default.a mark the bf16 conversion helpers default-visible before linking them into libcodonrt.so.

Added symbols include:

__truncdfbf2
__truncsfbf2
__trunctfbf2
__truncxfbf2
__trunchfbf2
__extendbfsf2

MRE

image

@BI71317
BI71317 requested review from arshajii and inumanag as code owners July 5, 2026 09:24
@cla-bot cla-bot Bot added the cla-signed label Jul 5, 2026
@arshajii

arshajii commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Thanks, LGTM

@arshajii
arshajii merged commit 3217c3e into exaloop:develop Jul 5, 2026
9 checks passed
@BI71317
BI71317 deleted the pr-add-bf16-builtin branch July 6, 2026 00:37
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.

[GPU] bfloat16 GPU kernels can fail to link when libgcc_s does not provide bf16 conversion builtins

2 participants