Page MenuHomePhabricator

jplehr (Jan-Patrick Lehr)
User

Projects

User does not belong to any projects.

User Details

User Since
Oct 25 2022, 7:16 AM (30 w, 5 d)

Recent Activity

Mon, May 15

jplehr added a comment to D149951: [OpenMP][LibC] Run libc GPU tests with 1 thread.

Thanks @jhuber6
I would love to hear @gkistanova opinion on the patch before I land it.

Mon, May 15, 2:04 AM · Restricted Project

Thu, May 11

jplehr added a comment to D150361: [libc][NFC] Clean up some code in the RPC implementation..

This appears to have broken the AMDGPU buildbot https://lab.llvm.org/staging/#/builders/247/builds/360

Thu, May 11, 7:01 AM · Restricted Project, Restricted Project

Tue, May 9

jplehr added a comment to D124652: [OpenMP] [OMPT] [amdgpu] [5/8] Implemented device init/fini/load callbacks.

Thanks for moving this forward.

Tue, May 9, 4:13 AM · Restricted Project, Restricted Project
jplehr added a comment to D147756: [Libomptarget] Load an image if it is compatible with at least one device.

It sounds like this might break some invariants we have about plugins, devices, and images.

If this does not work, some alternative ideas:
What if we make the plugins detect that they have different architectures and they create one instance per arch?
Though, we could also force the plugin to choose. If device 0 works with in image and device 1 does not, we ignore 1 from now on.

Yes, the problem right now is that we assign device ID's based on the logical devices found, not whether or not they loaded an image. So to make this work we would need to initialize the devices in order of images we find them compatible for. So on a system offloading to gfx90a and gfx908, if we had a gfx908 image, we would find it matches gfx908 and assign that device to zero. This is definitely a break from the current logic where we simply initialize all the devices found.

Tue, May 9, 4:05 AM · Restricted Project, Restricted Project

Fri, May 5

jplehr requested review of D149951: [OpenMP][LibC] Run libc GPU tests with 1 thread.
Fri, May 5, 5:18 AM · Restricted Project
jplehr added a comment to D149756: [OpenMP] Fix not respecting -j in additional checks.

Landed in https://github.com/llvm/llvm-zorg/commit/8027f9019719ab80a72a5842470b69b5729436bd

Fri, May 5, 5:01 AM · Restricted Project
jplehr closed D149756: [OpenMP] Fix not respecting -j in additional checks.
Fri, May 5, 5:01 AM · Restricted Project
jplehr committed rZORG8027f9019719: [OpenMP] Fix not respecting -j in additional checks (authored by jplehr).
[OpenMP] Fix not respecting -j in additional checks
Fri, May 5, 5:01 AM · Restricted Project

Thu, May 4

jplehr committed rGf238a98e8447: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state (authored by gregrodgers).
[OpenMP][libomptarget][AMDGPU] Enable active HSA wait state
Thu, May 4, 3:03 AM · Restricted Project, Restricted Project
jplehr closed D148808: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state.
Thu, May 4, 3:02 AM · Restricted Project, Restricted Project
jplehr retitled D148808: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state from [OpenMP][libomptarget][AMDGPU] Enable optional active HSA wait state to [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state.
Thu, May 4, 2:51 AM · Restricted Project, Restricted Project
jplehr updated the diff for D148808: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state.

Address inline comment

Thu, May 4, 2:43 AM · Restricted Project, Restricted Project
jplehr abandoned D146849: [OpenMP][libomptarget] Active and blocking HSA wait states.

Abandoning in favor of https://reviews.llvm.org/D148808

Thu, May 4, 2:36 AM · Restricted Project, Restricted Project

Wed, May 3

jplehr added a comment to D145441: [AMDGPU] Define data layout entries for buffers.

Hey Krzysztof,
I believe this broke the openmp offload buildbot https://lab.llvm.org/buildbot/#/builders/193/builds/30576

Wed, May 3, 9:10 AM · Restricted Project, Restricted Project, Restricted Project
jplehr requested review of D149756: [OpenMP] Fix not respecting -j in additional checks.
Wed, May 3, 9:01 AM · Restricted Project
jplehr updated the diff for D148808: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state.

One environment variable, defaulting to 2 seconds timeout for active waiting, rename, const

Wed, May 3, 6:06 AM · Restricted Project, Restricted Project
jplehr committed rZORG8736ff1a2195: [NFC][OpenMP][LibC] Rename experimental AMDGPU buildbot (authored by jplehr).
[NFC][OpenMP][LibC] Rename experimental AMDGPU buildbot
Wed, May 3, 3:23 AM · Restricted Project
jplehr closed D149736: [NFC][OpenMP][LibC] Rename experimental AMDGPU buildbot.
Wed, May 3, 3:23 AM · Restricted Project
jplehr requested review of D149736: [NFC][OpenMP][LibC] Rename experimental AMDGPU buildbot.
Wed, May 3, 3:10 AM · Restricted Project

Apr 26 2023

jplehr updated the diff for D148808: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state.
  • rebase the patch
  • add documentation
  • address reviewer comments
Apr 26 2023, 3:39 AM · Restricted Project, Restricted Project
jplehr added a comment to D148808: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state.

Thanks for all the comments, I think there is a bit of confusion due to my lack of documentation of the code.

Apr 26 2023, 2:54 AM · Restricted Project, Restricted Project

Apr 20 2023

jplehr requested review of D148808: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state.
Apr 20 2023, 8:17 AM · Restricted Project, Restricted Project

Apr 18 2023

jplehr added a comment to D148576: [OpenMP] Enable more runtime tests and also run them with O3.

Works for me on gfx90a

Can you verify whether or not __builtin_trap or the s_trap 2 invocation hangs on those boxes? I can't tell if it's just my install or a wider problem.

Apr 18 2023, 4:55 AM · Restricted Project
jplehr added a comment to D148576: [OpenMP] Enable more runtime tests and also run them with O3.

Works for me on gfx90a

Apr 18 2023, 4:29 AM · Restricted Project
jplehr added a comment to D140722: [OpenMP] Prefix outlined and reduction func names with original func's name.

Tested on AMDGPU (gfx90a)

-- OpenMP tools dir in libomptarget: /home/janplehr/git/trunk17.0/build/llvm-project/runtimes/runtimes-bins/openmp/runtime/src
-- LIBOMPTARGET: Building offloading runtime library libomptarget.
-- LIBOMPTARGET: Not building aarch64 offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Building AMDGPU plugin linked against libhsa
-- LIBOMPTARGET: Not building CUDA offloading plugin: LIBOMPTARGET_BUILD_CUDA_PLUGIN is false
-- LIBOMPTARGET: Not building PPC64 offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building PPC64le offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building nec-aurora plugin: libveo or libveosinfo not found.
-- LIBOMPTARGET: Building x86_64 offloading plugin.
-- LIBOMPTARGET: Not building aarch64 NextGen offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Building AMDGPU NextGen plugin linked against libhsa
-- LIBOMPTARGET: Not building CUDA NextGen offloading plugin: LIBOMPTARGET_BUILD_CUDA_PLUGIN is false
-- LIBOMPTARGET: Not building PPC64 NextGen offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building PPC64le NextGen offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Building x86_64 NextGen offloading plugin.
Apr 18 2023, 4:16 AM · Restricted Project, Restricted Project

Apr 17 2023

jplehr added a comment to D140722: [OpenMP] Prefix outlined and reduction func names with original func's name.

I'll get back to this soon, enjoyed vacation. ;)

Apr 17 2023, 4:14 AM · Restricted Project, Restricted Project

Mar 31 2023

jplehr added a comment to D140722: [OpenMP] Prefix outlined and reduction func names with original func's name.

Minor fix to the clang/CodeGen/ppc64le-varargs-f128.c test.

@jdoerfert Does the PR CI run these, or are there build bots that cover the different target-offloading variants? Can I somehow check this prior to merging without having all hardware variants on-hand?

Mar 31 2023, 2:48 PM · Restricted Project, Restricted Project
jplehr accepted D147353: [OpenMP] Disable libarcher tests for the experimental AMDGPU buildbot.

LGTM

Mar 31 2023, 1:08 PM · Restricted Project
jplehr added inline comments to D147353: [OpenMP] Disable libarcher tests for the experimental AMDGPU buildbot.
Mar 31 2023, 1:02 PM · Restricted Project
jplehr accepted D147343: [OpenMP] Add CMake option to disable `libarcher` support.

LGTM

Mar 31 2023, 12:43 PM · Restricted Project, Restricted Project

Mar 30 2023

jplehr added a comment to D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.

It seems that the automation does not correctly enable libc or openmp as runtimes when only given as depend_on_projects.
The CMake invocation that actually happened was

cmake -G Ninja ../llvm.src/llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON '-DLLVM_LIT_ARGS=-vv --show-unsupported --show-xfail -j 32' -DCMAKE_INSTALL_PREFIX=/home/ompworker/bbot/openmp-offload-amdgpu-runtime-experimental/llvm.inst -DCMAKE_BUILD_TYPE=Release -DCLANG_DEFAULT_LINKER=lld '-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU' -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DLIBOMPTARGET_FOUND_AMDGPU_GPU=ON -DLLVM_LIBC_FULL_BUILD=ON -DLIBC_GPU_BUILD=ON -DLIBC_GPU_ARCHITECTURE=gfx906 -DLIBC_GPU_TEST_ARCHITECTURE=gfx906 '-DLLVM_ENABLE_PROJECTS=llvm;libc;clang;lld;compiler-rt;openmp'

So, it only enables those as projects. This leads to a compiler error as we actually need the Clang to build the runtimes.

Mar 30 2023, 2:20 PM · Restricted Project
jplehr added a reverting change for D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU: rZORGf0771b61d210: Revert "Reland [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU".
Mar 30 2023, 2:12 PM · Restricted Project
jplehr added a reverting change for rZORG29a9b3336158: Reland [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU: rZORGf0771b61d210: Revert "Reland [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU".
Mar 30 2023, 2:12 PM · Restricted Project
jplehr committed rZORGf0771b61d210: Revert "Reland [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU" (authored by jplehr).
Revert "Reland [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU"
Mar 30 2023, 2:12 PM · Restricted Project
jplehr committed rG4753a4e31169: [OpenMP] asynchronous memory copy support (authored by jz10).
[OpenMP] asynchronous memory copy support
Mar 30 2023, 12:16 PM · Restricted Project, Restricted Project
jplehr closed D136103: OpenMP asynchronous memory copy support.
Mar 30 2023, 12:15 PM · Restricted Project, Restricted Project, Restricted Project
jplehr committed rZORG29a9b3336158: Reland [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU (authored by jplehr).
Reland [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU
Mar 30 2023, 12:11 PM · Restricted Project
jplehr closed D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.
Mar 30 2023, 12:11 PM · Restricted Project
jplehr updated the diff for D136103: OpenMP asynchronous memory copy support.

Removed accidentally added code

Mar 30 2023, 2:19 AM · Restricted Project, Restricted Project, Restricted Project
jplehr updated the diff for D136103: OpenMP asynchronous memory copy support.

Fix bug to corectly support the maximally supported dimensions as required by the spec.

Mar 30 2023, 2:15 AM · Restricted Project, Restricted Project, Restricted Project
jplehr updated the diff for D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.

Remvoed the enable_runtimes argument

Mar 30 2023, 1:18 AM · Restricted Project
jplehr added a comment to D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.

Please let me know if this patch needs more revision after the changes I implemented, and thanks for all the help.

Mar 30 2023, 1:15 AM · Restricted Project

Mar 29 2023

jplehr added inline comments to D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.
Mar 29 2023, 2:02 PM · Restricted Project
jplehr updated the diff for D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.

Addressed feedback: removed extra CMake flags to enable runtimes and projects manually. Instead rely on enable_runtimes and depends_on_projects lists from the buildbot factory.
The builtbot before specified the CMake flag to enable the openmp runtime manually (despite listing it in enable_runtimes), so I removed that completely.

Mar 29 2023, 1:32 AM · Restricted Project
jplehr added a comment to D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.

Could you elaborate on why did you specify LLVM_ENABLE_PROJECTS explicitly, and why it does not match what's in the depends_on_projects, please? The same question is for LLVM_ENABLE_RUNTIMES and enable_runtimes respectively.

With this patch the openmp-offload-amdgpu-runtime-experimental builder would not listen for compiler_rt changes, but would build that. Meaning false blame lists every time when a compiler_rt commit breaks a build. This does not look right. What am I missing?

Mar 29 2023, 1:25 AM · Restricted Project

Mar 28 2023

jplehr updated the diff for D136103: OpenMP asynchronous memory copy support.

Rebased and enabled tests for generic devices.
Resulted in one test failure

Mar 28 2023, 8:12 AM · Restricted Project, Restricted Project, Restricted Project
jplehr committed rZORGd0f8df27c2a7: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU (authored by jplehr).
[OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU
Mar 28 2023, 7:23 AM · Restricted Project
jplehr closed D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.
Mar 28 2023, 7:23 AM · Restricted Project
jplehr updated the diff for D136103: OpenMP asynchronous memory copy support.

Rebase to make ready for land

Mar 28 2023, 4:03 AM · Restricted Project, Restricted Project, Restricted Project
jplehr added a comment to D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.

I wanted to do this today, my afternoon. This should give us some time to reasonably react if things don't go the way we want.

Mar 28 2023, 2:10 AM · Restricted Project
jplehr added a comment to D146849: [OpenMP][libomptarget] Active and blocking HSA wait states.

Unfortunately my original problem still persists with this patch. The active wait timed out and then still stuck in the blocking wait.
Tested 3, 30, 300, 3000, 30000, 300000, 3000000 on my W6800. I have to consider some software between hsa and the hardware is broken.

Mar 28 2023, 1:14 AM · Restricted Project, Restricted Project

Mar 27 2023

jplehr added inline comments to D146849: [OpenMP][libomptarget] Active and blocking HSA wait states.
Mar 27 2023, 3:58 AM · Restricted Project, Restricted Project
jplehr added inline comments to D146849: [OpenMP][libomptarget] Active and blocking HSA wait states.
Mar 27 2023, 1:25 AM · Restricted Project, Restricted Project
jplehr added inline comments to D146849: [OpenMP][libomptarget] Active and blocking HSA wait states.
Mar 27 2023, 1:04 AM · Restricted Project, Restricted Project

Mar 24 2023

jplehr requested review of D146849: [OpenMP][libomptarget] Active and blocking HSA wait states.
Mar 24 2023, 3:28 PM · Restricted Project, Restricted Project
jplehr updated the diff for D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.

Rebase and review feedback

Mar 24 2023, 2:07 AM · Restricted Project
jplehr committed rZORGe3a5b28f7fc6: [OpenMP] Remove unnecceary OMPT flag from builder factory (authored by jplehr).
[OpenMP] Remove unnecceary OMPT flag from builder factory
Mar 24 2023, 2:00 AM · Restricted Project
jplehr closed D146703: [OpenMP] Remove unnecceary OMPT flag from builder factory.
Mar 24 2023, 2:00 AM · Restricted Project
jplehr updated the diff for D146703: [OpenMP] Remove unnecceary OMPT flag from builder factory.

Rebase and ready to land

Mar 24 2023, 1:58 AM · Restricted Project

Mar 23 2023

jplehr requested review of D146722: [OpenMP][LibC] Adds testing LibC GPU Mode for AMDGPU.
Mar 23 2023, 7:05 AM · Restricted Project
jplehr committed rZORGe3e3d1283176: [OpenMP] Additional checks to AMDGPU OpenMP (experimental) buildbot (authored by jplehr).
[OpenMP] Additional checks to AMDGPU OpenMP (experimental) buildbot
Mar 23 2023, 5:50 AM · Restricted Project
jplehr closed D146705: [OpenMP] Additional checks to AMDGPU OpenMP (experimetnal) buildbot.
Mar 23 2023, 5:50 AM · Restricted Project
jplehr updated the diff for D146705: [OpenMP] Additional checks to AMDGPU OpenMP (experimetnal) buildbot.

Added missed check-clang target to lit tests

Mar 23 2023, 3:47 AM · Restricted Project
jplehr requested review of D146705: [OpenMP] Additional checks to AMDGPU OpenMP (experimetnal) buildbot.
Mar 23 2023, 2:44 AM · Restricted Project
jplehr requested review of D146703: [OpenMP] Remove unnecceary OMPT flag from builder factory.
Mar 23 2023, 2:38 AM · Restricted Project

Mar 22 2023

jplehr committed rZORGddced3337d47: [OpenMP] Adds optional additional check targets (authored by jplehr).
[OpenMP] Adds optional additional check targets
Mar 22 2023, 2:17 AM · Restricted Project
jplehr closed D146332: [OpenMP] Adds optional additional check targets.
Mar 22 2023, 2:17 AM · Restricted Project

Mar 21 2023

jplehr added a comment to D127365: [OpenMP] [OMPT] [6/8] Added callback support for target data operations, target submit, and target regions..

Some initial comments

Mar 21 2023, 9:00 AM · Restricted Project, Restricted Project
jplehr added inline comments to D124070: [OpenMP] [OMPT] [amdgpu] [4/8] Implemented callback registration in nextgen plugins.
Mar 21 2023, 8:39 AM · Restricted Project, Restricted Project
jplehr added a comment to D124652: [OpenMP] [OMPT] [amdgpu] [5/8] Implemented device init/fini/load callbacks.

Thanks for moving this forward.

Mar 21 2023, 8:31 AM · Restricted Project, Restricted Project

Mar 20 2023

jplehr added a reviewer for D146332: [OpenMP] Adds optional additional check targets: ronlieb.
Mar 20 2023, 1:10 PM · Restricted Project

Mar 17 2023

jplehr requested review of D146332: [OpenMP] Adds optional additional check targets.
Mar 17 2023, 2:22 PM · Restricted Project

Mar 15 2023

jplehr added a comment to D145290: [OpenMP] Ensure memory fences are created with barriers for AMDGPUs.

I compared it to the HIP implementation linked and from that point of view it looks reasonable to me, but I don't have a good understanding of the internals yet. @JonChesterfield can you comment on the topic?

Mar 15 2023, 3:36 AM · Restricted Project, Restricted Project
jplehr committed rG13a0b48f3725: [OpenMP][libomptarget][AMDGPU] Update print launch info (authored by jplehr).
[OpenMP][libomptarget][AMDGPU] Update print launch info
Mar 15 2023, 3:13 AM · Restricted Project, Restricted Project
jplehr closed D145924: [OpenMP][libomptarget][AMDGPU] Update print launch info.
Mar 15 2023, 3:13 AM · Restricted Project, Restricted Project
jplehr updated the diff for D145924: [OpenMP][libomptarget][AMDGPU] Update print launch info.

Actually followed Johannes' suggestion.

Mar 15 2023, 2:56 AM · Restricted Project, Restricted Project
jplehr updated the diff for D145924: [OpenMP][libomptarget][AMDGPU] Update print launch info.

Followed Johannes suggestion and rebased

Mar 15 2023, 2:38 AM · Restricted Project, Restricted Project

Mar 14 2023

jplehr updated the diff for D145924: [OpenMP][libomptarget][AMDGPU] Update print launch info.

Adds assert and assert messages.
It felt safer to assert exactly three elements to be consistent with the name of the lambda.

Mar 14 2023, 2:56 PM · Restricted Project, Restricted Project
jplehr updated the diff for D145924: [OpenMP][libomptarget][AMDGPU] Update print launch info.

Updated test and removed two unused variables.

Mar 14 2023, 5:00 AM · Restricted Project, Restricted Project

Mar 13 2023

jplehr added inline comments to D144975: [OpenMP][libomptarget][NFC] Add documentation regarding NextGen plugins.
Mar 13 2023, 6:11 AM · Restricted Project, Restricted Project
jplehr requested review of D145924: [OpenMP][libomptarget][AMDGPU] Update print launch info.
Mar 13 2023, 4:50 AM · Restricted Project, Restricted Project

Mar 9 2023

jplehr accepted D127372: [OpenMP] [OMPT] [8/8] Added lit tests for OMPT target callbacks.

LGTM

Mar 9 2023, 2:11 AM · Restricted Project, Restricted Project

Mar 8 2023

jplehr added a comment to D127372: [OpenMP] [OMPT] [8/8] Added lit tests for OMPT target callbacks.

Just to reiterate what I think this does is: It adds tests which currently ensure that the call backs can not be registered (as it should).
The tests would then be updated for the other patches, when these call backs can be registered, right?

Mar 8 2023, 12:24 PM · Restricted Project, Restricted Project

Feb 28 2023

jplehr committed rGb82ac74f7e18: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info (authored by jplehr).
[OpenMP][AMDGPU] More detail in AMDGPU kernel launch info
Feb 28 2023, 4:43 AM · Restricted Project, Restricted Project
jplehr closed D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.
Feb 28 2023, 4:42 AM · Restricted Project, Restricted Project

Feb 27 2023

jplehr updated the diff for D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.

Addresssed final nits

Feb 27 2023, 2:10 PM · Restricted Project, Restricted Project
jplehr updated the diff for D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.

Reworked implementation to always print standard info.
Introduced optional and refactored test.

Feb 27 2023, 1:46 PM · Restricted Project, Restricted Project
jplehr updated the diff for D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.

Addressed nits and rebased. Please see if the changes to the test case are acceptable.

Feb 27 2023, 8:54 AM · Restricted Project, Restricted Project

Feb 24 2023

jplehr updated the diff for D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.

Addressed more reviewer comments and added test

Feb 24 2023, 7:39 AM · Restricted Project, Restricted Project

Feb 23 2023

jplehr updated the diff for D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.
  • Removed: curlies for single statement blocks, unncessary llvm:: qualification, leftover empty if, unneccessary using ELFT statements
  • Added check if kernel name has associated metadata and changed return type to Expected<T> to allow for error propagation
Feb 23 2023, 12:14 PM · Restricted Project, Restricted Project
jplehr added inline comments to D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.
Feb 23 2023, 8:42 AM · Restricted Project, Restricted Project
jplehr added a comment to D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.

Am I right to assume you mainly asking about the code that obtains the metadata for the different kernels in the image?
Without executing a OpenMP target offload program on an AMDGPU, I see mostly one option: Construct a msgpack from a textual representation (e.g., YAML) and query that for the relevant information. This should be somewhat straight forward to do in Google Test. But, it would not automatically react to changes in the metadata produced in the backend. For that, we probably would need to compile and run something on an AMDGPU to test the output.

Shouldn't this get populated automatically if you compile an OpenMP program? We don't need to check. We have an existing info.c test that you could copy and make AMD only.

Feb 23 2023, 8:35 AM · Restricted Project, Restricted Project
jplehr added a comment to D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.

Am I right to assume you mainly asking about the code that obtains the metadata for the different kernels in the image?
Without executing a OpenMP target offload program on an AMDGPU, I see mostly one option: Construct a msgpack from a textual representation (e.g., YAML) and query that for the relevant information. This should be somewhat straight forward to do in Google Test. But, it would not automatically react to changes in the metadata produced in the backend. For that, we probably would need to compile and run something on an AMDGPU to test the output.

Feb 23 2023, 8:26 AM · Restricted Project, Restricted Project
jplehr added inline comments to D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.
Feb 23 2023, 6:14 AM · Restricted Project, Restricted Project
jplehr added a comment to D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.

Thanks Joseph.
My impression about the llvm-readobj was that they have quite some machinery around the printing. However, I believe I understood that the actual printing is mainly a conversion of the MsgPackDocument into a YAML and then print that. So I think that there is not too much in common.

Feb 23 2023, 6:02 AM · Restricted Project, Restricted Project
jplehr updated the diff for D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.

Rewrite using what is available upstream to read the ELF metdata for AMDGPU.
Removes the copied-over code from the old plugin.

Feb 23 2023, 5:31 AM · Restricted Project, Restricted Project

Feb 21 2023

jplehr requested review of D144521: [OpenMP][AMDGPU] More detail in AMDGPU kernel launch info.
Feb 21 2023, 1:57 PM · Restricted Project, Restricted Project
jplehr accepted D144436: [libomptarget] Remove unused image from global data movement function.

LGTM

Feb 21 2023, 3:05 AM · Restricted Project, Restricted Project

Feb 14 2023

jplehr updated the diff for D124652: [OpenMP] [OMPT] [amdgpu] [5/8] Implemented device init/fini/load callbacks.

Rebased

Feb 14 2023, 2:21 AM · Restricted Project, Restricted Project
jplehr updated the diff for D124070: [OpenMP] [OMPT] [amdgpu] [4/8] Implemented callback registration in nextgen plugins.

Rebased

Feb 14 2023, 2:21 AM · Restricted Project, Restricted Project