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

[Issue]: Disassemble Flang Openmp Offloading #1119

Open
Luigi-Crisci opened this issue Oct 23, 2024 · 2 comments
Open

[Issue]: Disassemble Flang Openmp Offloading #1119

Luigi-Crisci opened this issue Oct 23, 2024 · 2 comments

Comments

@Luigi-Crisci
Copy link

Problem Description

Hi,
This is more of a question than an issue.
Is there a way to disassemble the generated amdcgn code when compiling a fortran openmp program with target directives?
Currently, I am doing a kind of trick: generating the assembly with -S and then manually extracting the amdcgn from the .Lllvm.embedded.object string inside.

Operating System

Ubuntu 22.04

CPU

AMD EPYC 9654 96-Core Processor

GPU

AMD MI300X

ROCm Version

ROCm 6.2.0

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@ppanchad-amd
Copy link

Hi @Luigi-Crisci. Internal ticket is created it assist with your question. Thanks!

@zichguan-amd
Copy link

Hi @Luigi-Crisci, you can also get the assembly by adding the -save-temps flag to save intermediate compilation results and look for *-openmp-amdgcn-amd-amdhsa.s file. It will contain more information than just the kernel assembly. Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants