Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

kevinsala (Kevin Sala)
User

Projects

User does not belong to any projects.

User Details

User Since
Aug 10 2022, 7:24 AM (58 w, 3 d)

Recent Activity

Aug 6 2023

kevinsala committed rGb8e297d1af5a: [OpenMP][libomptarget] Improve kernel initialization in plugins (authored by kevinsala).
[OpenMP][libomptarget] Improve kernel initialization in plugins
Aug 6 2023, 3:00 AM · Restricted Project, Restricted Project
kevinsala closed D156917: [OpenMP][libomptarget] Improve kernel initialization in plugins.
Aug 6 2023, 3:00 AM · Restricted Project, Restricted Project
kevinsala accepted D156996: [OpenMP][AMDGPU] Add Envar for controlling HSA busy queue tracking.

LGTM. Thanks!

Aug 6 2023, 2:02 AM · Restricted Project, Restricted Project

Aug 4 2023

kevinsala added a comment to D156996: [OpenMP][AMDGPU] Add Envar for controlling HSA busy queue tracking.

I would keep it simple:

Aug 4 2023, 6:50 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D156917: [OpenMP][libomptarget] Improve kernel initialization in plugins.

Fixing issues

Aug 4 2023, 12:50 AM · Restricted Project, Restricted Project

Aug 3 2023

kevinsala added inline comments to D156996: [OpenMP][AMDGPU] Add Envar for controlling HSA busy queue tracking.
Aug 3 2023, 11:51 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D156996: [OpenMP][AMDGPU] Add Envar for controlling HSA busy queue tracking.
Aug 3 2023, 11:28 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D156996: [OpenMP][AMDGPU] Add Envar for controlling HSA busy queue tracking.
Aug 3 2023, 9:42 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D156917: [OpenMP][libomptarget] Improve kernel initialization in plugins.
Aug 3 2023, 7:57 AM · Restricted Project, Restricted Project

Aug 2 2023

kevinsala requested review of D156917: [OpenMP][libomptarget] Improve kernel initialization in plugins.
Aug 2 2023, 10:18 AM · Restricted Project, Restricted Project
kevinsala committed rG4f46a48aafd5: [OpenMP][libomptarget] Remove unused virtual functions in GenericKernelTy (authored by kevinsala).
[OpenMP][libomptarget] Remove unused virtual functions in GenericKernelTy
Aug 2 2023, 8:19 AM · Restricted Project, Restricted Project
kevinsala committed rGf7e0208a09b0: [OpenMP][libomptarget] Add missing field in GenericELF64bit grid values (authored by kevinsala).
[OpenMP][libomptarget] Add missing field in GenericELF64bit grid values
Aug 2 2023, 8:19 AM · Restricted Project, Restricted Project
kevinsala closed D156905: [OpenMP][libomptarget] Remove unused virtual functions in GenericKernelTy.
Aug 2 2023, 8:19 AM · Restricted Project, Restricted Project
kevinsala requested review of D156905: [OpenMP][libomptarget] Remove unused virtual functions in GenericKernelTy.
Aug 2 2023, 8:00 AM · Restricted Project, Restricted Project

Aug 1 2023

kevinsala accepted D154523: [OpenMP][AMDGPU] Single eager resource init + HSA queue utilization tracking.
Aug 1 2023, 12:45 PM · Restricted Project, Restricted Project
kevinsala added a comment to D154523: [OpenMP][AMDGPU] Single eager resource init + HSA queue utilization tracking.

Looks good to me now. Thanks!

Aug 1 2023, 10:46 AM · Restricted Project, Restricted Project

Jul 31 2023

kevinsala added inline comments to D154523: [OpenMP][AMDGPU] Single eager resource init + HSA queue utilization tracking.
Jul 31 2023, 3:57 AM · Restricted Project, Restricted Project

Jul 27 2023

kevinsala committed rG7b2745b424be: [OpenMP][libomptarget] Process resources when getting/returning from managers (authored by kevinsala).
[OpenMP][libomptarget] Process resources when getting/returning from managers
Jul 27 2023, 3:40 PM · Restricted Project, Restricted Project
kevinsala committed rG523ac0fcdf7f: [OpenMP][libomptarget] Retrieve multiple resources from resource managers (authored by kevinsala).
[OpenMP][libomptarget] Retrieve multiple resources from resource managers
Jul 27 2023, 3:40 PM · Restricted Project, Restricted Project
kevinsala committed rG53e4c7c30936: [OpenMP][libomptarget] Improving plugin resource managers (authored by kevinsala).
[OpenMP][libomptarget] Improving plugin resource managers
Jul 27 2023, 3:40 PM · Restricted Project, Restricted Project
kevinsala closed D156245: [OpenMP][libomptarget] Process resources when getting/returning from managers.
Jul 27 2023, 3:40 PM · Restricted Project, Restricted Project
kevinsala closed D155629: [OpenMP][libomptarget] Retrieve multiple resources from resource managers.
Jul 27 2023, 3:39 PM · Restricted Project, Restricted Project
kevinsala closed D155621: [OpenMP][libomptarget] Improve plugin resource managers.
Jul 27 2023, 3:39 PM · Restricted Project, Restricted Project
kevinsala updated the diff for D156245: [OpenMP][libomptarget] Process resources when getting/returning from managers.

Removing unused function

Jul 27 2023, 7:44 AM · Restricted Project, Restricted Project

Jul 25 2023

kevinsala added inline comments to D156245: [OpenMP][libomptarget] Process resources when getting/returning from managers.
Jul 25 2023, 9:28 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D155621: [OpenMP][libomptarget] Improve plugin resource managers.
Jul 25 2023, 9:12 AM · Restricted Project, Restricted Project
kevinsala requested review of D156245: [OpenMP][libomptarget] Process resources when getting/returning from managers.
Jul 25 2023, 8:27 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D155629: [OpenMP][libomptarget] Retrieve multiple resources from resource managers.

Rebasing

Jul 25 2023, 2:28 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D155621: [OpenMP][libomptarget] Improve plugin resource managers.
Jul 25 2023, 2:11 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D155621: [OpenMP][libomptarget] Improve plugin resource managers.
Jul 25 2023, 2:10 AM · Restricted Project, Restricted Project

Jul 18 2023

kevinsala updated the diff for D155629: [OpenMP][libomptarget] Retrieve multiple resources from resource managers.

Fixing comments.

Jul 18 2023, 11:12 PM · Restricted Project, Restricted Project
kevinsala updated the diff for D155629: [OpenMP][libomptarget] Retrieve multiple resources from resource managers.

Simplifying patch.

Jul 18 2023, 12:32 PM · Restricted Project, Restricted Project
kevinsala requested review of D155629: [OpenMP][libomptarget] Retrieve multiple resources from resource managers.
Jul 18 2023, 12:15 PM · Restricted Project, Restricted Project
kevinsala requested review of D155621: [OpenMP][libomptarget] Improve plugin resource managers.
Jul 18 2023, 9:28 AM · Restricted Project, Restricted Project

Jul 17 2023

kevinsala added inline comments to D153837: Synchronize after each GPU action in the nextgen plugin.
Jul 17 2023, 7:01 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D154523: [OpenMP][AMDGPU] Single eager resource init + HSA queue utilization tracking.
Jul 17 2023, 4:02 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D154523: [OpenMP][AMDGPU] Single eager resource init + HSA queue utilization tracking.
Jul 17 2023, 3:57 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D153837: Synchronize after each GPU action in the nextgen plugin.
Jul 17 2023, 2:03 AM · Restricted Project, Restricted Project

Jul 11 2023

kevinsala added inline comments to D154523: [OpenMP][AMDGPU] Single eager resource init + HSA queue utilization tracking.
Jul 11 2023, 7:46 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D152035: [OpenMP] Only initialize a single queue/stream/event eagerly.
Jul 11 2023, 7:20 AM · Restricted Project
kevinsala added inline comments to D154523: [OpenMP][AMDGPU] Single eager resource init + HSA queue utilization tracking.
Jul 11 2023, 7:12 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D154523: [OpenMP][AMDGPU] Single eager resource init + HSA queue utilization tracking.
Jul 11 2023, 6:29 AM · Restricted Project, Restricted Project

Jun 27 2023

kevinsala added a comment to D153837: Synchronize after each GPU action in the nextgen plugin.

Please also document the new envar in openmp/docs/design/Runtimes.rst, in the Libomptarget Environment Variables section.

Jun 27 2023, 1:53 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D153837: Synchronize after each GPU action in the nextgen plugin.
Jun 27 2023, 1:45 AM · Restricted Project, Restricted Project

May 9 2023

kevinsala committed rGaa326559c443: [OpenMP][libomptarget] Init device when printing device info (authored by kevinsala).
[OpenMP][libomptarget] Init device when printing device info
May 9 2023, 9:50 AM · Restricted Project, Restricted Project
kevinsala closed D146081: [OpenMP][libomptarget] Init device when printing device info.
May 9 2023, 9:50 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D146081: [OpenMP][libomptarget] Init device when printing device info.

Updating patch to initial version. We make sure in libomptarget that the device is initialized (ready) when printing its information. Together with https://reviews.llvm.org/D148178, it should fix the llvm-omp-device-info command.

May 9 2023, 7:12 AM · Restricted Project, Restricted Project
kevinsala committed rG843f496b71ae: [OpenMP][libomptarget] Improve device info printing in NextGen plugins (authored by kevinsala).
[OpenMP][libomptarget] Improve device info printing in NextGen plugins
May 9 2023, 6:47 AM · Restricted Project, Restricted Project
kevinsala closed D148178: [OpenMP][libomptarget] Improve plugin device info printing.
May 9 2023, 6:47 AM · Restricted Project, Restricted Project

Apr 21 2023

kevinsala updated the diff for D148178: [OpenMP][libomptarget] Improve plugin device info printing.

Fixed format

Apr 21 2023, 1:43 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D148178: [OpenMP][libomptarget] Improve plugin device info printing.

Fixed reviewers' comments

Apr 21 2023, 1:42 AM · Restricted Project, Restricted Project

Apr 20 2023

kevinsala added inline comments to D148808: [OpenMP][libomptarget][AMDGPU] Enable active HSA wait state.
Apr 20 2023, 9:02 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D148178: [OpenMP][libomptarget] Improve plugin device info printing.
Apr 20 2023, 7:46 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D148178: [OpenMP][libomptarget] Improve plugin device info printing.

Fixing review comments and other improvements.

Apr 20 2023, 7:45 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D148178: [OpenMP][libomptarget] Improve plugin device info printing.
Apr 20 2023, 1:51 AM · Restricted Project, Restricted Project
kevinsala added a comment to D148178: [OpenMP][libomptarget] Improve plugin device info printing.

Examples of llvm-omp-device-info in AMDGPU and NVIDIA devices:

Apr 20 2023, 1:41 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D148178: [OpenMP][libomptarget] Improve plugin device info printing.

Added support for CUDA plugin and improved generic code.

Apr 20 2023, 1:38 AM · Restricted Project, Restricted Project

Apr 18 2023

kevinsala committed rG221350965a89: [OpenMP][libomptarget][NFC] Remove error data member from AsyncInfoWrapperTy (authored by kevinsala).
[OpenMP][libomptarget][NFC] Remove error data member from AsyncInfoWrapperTy
Apr 18 2023, 9:58 AM · Restricted Project, Restricted Project
kevinsala closed D148027: [OpenMP][libomptarget] Remove error data member from AsyncInfoWrapperTy.
Apr 18 2023, 9:58 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D148027: [OpenMP][libomptarget] Remove error data member from AsyncInfoWrapperTy.
Apr 18 2023, 6:51 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D148027: [OpenMP][libomptarget] Remove error data member from AsyncInfoWrapperTy.

Updated patch removing the error return from AsyncInfoWrapperTy::finalize().

Apr 18 2023, 6:47 AM · Restricted Project, Restricted Project

Apr 12 2023

kevinsala added a comment to D148178: [OpenMP][libomptarget] Improve plugin device info printing.

Example of a device info printing for a AMDGPU device:

Apr 12 2023, 3:42 PM · Restricted Project, Restricted Project
kevinsala requested review of D148178: [OpenMP][libomptarget] Improve plugin device info printing.
Apr 12 2023, 3:39 PM · Restricted Project, Restricted Project

Apr 11 2023

kevinsala added inline comments to D142850: [OpenMP][libomptarget] Do not rely on AsyncInfoWrapperTy's destructor to synchronize queue.
Apr 11 2023, 9:56 AM · Restricted Project, Restricted Project
kevinsala requested review of D148027: [OpenMP][libomptarget] Remove error data member from AsyncInfoWrapperTy.
Apr 11 2023, 9:51 AM · Restricted Project, Restricted Project

Apr 4 2023

kevinsala closed D142850: [OpenMP][libomptarget] Do not rely on AsyncInfoWrapperTy's destructor to synchronize queue.

8dad7f495302b5f2cd186dcc1cdd76874c80958a

Apr 4 2023, 8:55 AM · Restricted Project, Restricted Project
kevinsala committed rG8dad7f495302: [OpenMP][libomptarget] Do not rely on AsyncInfoWrapperTy's destructor (authored by kevinsala).
[OpenMP][libomptarget] Do not rely on AsyncInfoWrapperTy's destructor
Apr 4 2023, 8:52 AM · Restricted Project, Restricted Project
kevinsala added a comment to D147511: [OpenMP] Fix nextgen plugin behavior when passing negative thread_limit clause.

This patch is to support setting thread_limit clause to -1? Or is it for another case? If I'm not wrong, the OpenMP standard specifies that the value for thread_limit clause should be positive.

Apr 4 2023, 3:50 AM · Restricted Project, Restricted Project

Mar 28 2023

kevinsala updated the diff for D142850: [OpenMP][libomptarget] Do not rely on AsyncInfoWrapperTy's destructor to synchronize queue.

Removed unrelated change

Mar 28 2023, 8:41 AM · Restricted Project, Restricted Project
kevinsala committed rG48cd8b54d10e: [NFC][OpenMP][libomptarget] Remove unnecessary AsyncInfoWrapperTy parameter (authored by kevinsala).
[NFC][OpenMP][libomptarget] Remove unnecessary AsyncInfoWrapperTy parameter
Mar 28 2023, 8:29 AM · Restricted Project, Restricted Project

Mar 27 2023

kevinsala added inline comments to D146849: [OpenMP][libomptarget] Active and blocking HSA wait states.
Mar 27 2023, 4:48 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D146849: [OpenMP][libomptarget] Active and blocking HSA wait states.
Mar 27 2023, 2:49 AM · Restricted Project, Restricted Project

Mar 21 2023

kevinsala added inline comments to D146081: [OpenMP][libomptarget] Init device when printing device info.
Mar 21 2023, 2:18 AM · Restricted Project, Restricted Project

Mar 15 2023

kevinsala added a comment to D146081: [OpenMP][libomptarget] Init device when printing device info.

There is also the option to auto initialize the devices at the plugin level when GenericPluginTy::getDevice(N) is called and device N is in a uninitialized state. In my opinion, that would be the safest option and would cover all cases. But it will require implementing a similar mechanism from libomptarget level to guarantee the device creation and initialization is tread-safe and serialized (i.e., std::call_once in libomptarget).

Mar 15 2023, 5:47 AM · Restricted Project, Restricted Project
kevinsala added a comment to D146081: [OpenMP][libomptarget] Init device when printing device info.

The initial patch should fix the crash for the llvm-omp-device-info case, or any other case calling __tgt_print_device_info. I saw lazy initialization of devices in other API calls and tried to reproduced the same behavior. Anyway, initializing them explicitly from the tool seems more clean, so I just updated the patch with it.

Mar 15 2023, 3:07 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D146081: [OpenMP][libomptarget] Init device when printing device info.

Explicitly initializing devices from llvm-omp-device-info tool.

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

Mar 14 2023

kevinsala added a comment to D146081: [OpenMP][libomptarget] Init device when printing device info.

This patch is still missing a test.

Mar 14 2023, 12:34 PM · Restricted Project, Restricted Project
kevinsala requested review of D146081: [OpenMP][libomptarget] Init device when printing device info.
Mar 14 2023, 12:34 PM · Restricted Project, Restricted Project
kevinsala committed rG09a5915e5175: [OpenMP][libomptarget][NFC] Add documentation regarding NextGen plugins (authored by kevinsala).
[OpenMP][libomptarget][NFC] Add documentation regarding NextGen plugins
Mar 14 2023, 8:01 AM · Restricted Project, Restricted Project
kevinsala closed D144975: [OpenMP][libomptarget][NFC] Add documentation regarding NextGen plugins.
Mar 14 2023, 8:01 AM · Restricted Project, Restricted Project
kevinsala updated the diff for D144975: [OpenMP][libomptarget][NFC] Add documentation regarding NextGen plugins.

Removing most references to NextGen plugins and assuming this is the only plugin implementation available. Now it should be consistent with D142820. Fixing format too.

Mar 14 2023, 7:22 AM · Restricted Project, Restricted Project

Mar 13 2023

kevinsala added inline comments to D144975: [OpenMP][libomptarget][NFC] Add documentation regarding NextGen plugins.
Mar 13 2023, 8:43 AM · Restricted Project, Restricted Project

Mar 2 2023

kevinsala added a comment to D144975: [OpenMP][libomptarget][NFC] Add documentation regarding NextGen plugins.

Should we bother calling them nextgen considering that they will be the only gen in two weeks?

Mar 2 2023, 1:04 AM · Restricted Project, Restricted Project
kevinsala abandoned D140477: [OpenMP][libomptarget] Considering OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT in NextGen plugins.

Already fixed in D145105.

Mar 2 2023, 12:53 AM · Restricted Project, Restricted Project

Feb 28 2023

kevinsala requested review of D144975: [OpenMP][libomptarget][NFC] Add documentation regarding NextGen plugins.
Feb 28 2023, 8:23 AM · Restricted Project, Restricted Project

Feb 13 2023

kevinsala accepted D143775: [Libomptarget] Implement the host memory allocator with fine grained memory.

LGTM

Feb 13 2023, 1:21 AM · Restricted Project, Restricted Project

Feb 10 2023

kevinsala accepted D143771: [Libmoptarget] Enable the shared allocator for AMDGPU.

LGTM

Feb 10 2023, 12:48 PM · Restricted Project, Restricted Project

Feb 6 2023

kevinsala committed rG230d97685384: [NFC][OpenMP][libomptarget] Fix format in PluginInterface header (authored by kevinsala).
[NFC][OpenMP][libomptarget] Fix format in PluginInterface header
Feb 6 2023, 1:16 AM · Restricted Project, Restricted Project
kevinsala committed rG6ca034644d59: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings (authored by kevinsala).
[OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings
Feb 6 2023, 1:10 AM · Restricted Project, Restricted Project
kevinsala closed D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.
Feb 6 2023, 1:10 AM · Restricted Project, Restricted Project

Feb 3 2023

kevinsala updated the diff for D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.

The locking of mapped host buffers is disabled by default. Can be enabled through the LIBOMPTARGET_LOCK_MAPPED_HOST_BUFFERS envar. The envar accepts boolean values (on/off) and a special option:

  • off: Do not lock mapped host buffers (default).
  • on: Lock mapped host buffers automatically, but do not report lock failures if the plugin fails to lock them.
  • mandatory: Lock mapped host buffers automatically and treat locking failures in the plugins as fatal errors. This option may be useful for debugging purposes.
Feb 3 2023, 10:33 AM · Restricted Project, Restricted Project

Feb 2 2023

kevinsala added inline comments to D143192: [Libomptarget] Improve next-gen AMDGPU plugin error messages.
Feb 2 2023, 9:46 AM · Restricted Project, Restricted Project
kevinsala accepted D143192: [Libomptarget] Improve next-gen AMDGPU plugin error messages.

LGTM

Feb 2 2023, 9:39 AM · Restricted Project, Restricted Project

Jan 29 2023

kevinsala requested review of D142850: [OpenMP][libomptarget] Do not rely on AsyncInfoWrapperTy's destructor to synchronize queue.
Jan 29 2023, 3:02 PM · Restricted Project, Restricted Project
kevinsala updated the diff for D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.

Fix debug print

Jan 29 2023, 9:15 AM · Restricted Project, Restricted Project
kevinsala added inline comments to D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.
Jan 29 2023, 2:43 AM · Restricted Project, Restricted Project

Jan 28 2023

kevinsala updated the diff for D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.

Fixing bug. Now complex reduction tests work.

Jan 28 2023, 2:35 PM · Restricted Project, Restricted Project

Jan 27 2023

kevinsala updated the diff for D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.

Fix format.

Jan 27 2023, 1:30 AM · Restricted Project, Restricted Project

Jan 26 2023

kevinsala added inline comments to D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.
Jan 26 2023, 5:09 PM · Restricted Project, Restricted Project
kevinsala updated the diff for D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.

Changes:

  • Fixing comments.
  • Re-writing the PinnedAllocationMapTy functions to be clearer and easier to read.
  • Renaming RTL API functions.
  • Disable automatic locking of mapped host buffers by default. Can be enabled by setting LIBOMPTARGET_LOCK_MAPPED_HOST_BUFFERS envar.
  • Although the previous envar is not set, mapped buffers that were externally locked (e.g, the app allocating HSA memory) are registered into the plugin's map and we use a single-step asynchronous HSA memory transfer. (@ye-luo)
Jan 26 2023, 5:08 PM · Restricted Project, Restricted Project