Commit Graph

7173 Commits

Author SHA1 Message Date
GunaShekar, Ajay 76328ecfde SWDEV-546179 - hipModuleGetFunctionCount AMD impl (#782)
* SWDEV-546179 - hipModuleGetFunctionCount AMD impl

* SWDEV-546179 - return invalid for count ptr

* SWDEV-546179 - hipModuleGetFunctionCount CHANGELOG.md update

[ROCm/clr commit: dfb46db2fb]
2025-08-13 20:28:12 -07:00
Sang, Tao 03338bc767 SWDEV-502579 Revert elf symbols patches (#861)
* Revert "Fix undefined symbol at runtime with newer versions of LLVM (#791)"

This reverts commit b617e8feb6.

* Revert "SWDEV-502579 - Remove duplicated symbols (#21)"

This reverts commit 2296162578.

Revert them because ELF symbols will be added into comgr header.

[ROCm/clr commit: 35c192f1af]
2025-08-13 10:46:39 -04:00
Stojiljkovic, Vladana aec217fec0 SWDEV-537855 - Free created event if hipIpcOpenEventHandle fails (#680)
[ROCm/clr commit: 499e2ee044]
2025-08-13 11:36:13 +02:00
Assiouras, Ioannis 59b7dba6f0 SWDEV-549247 - Fix stream checks for hipModuleLaunchCooperativeKernel… (#858)
SWDEV-549247 - Fix stream validation checks in hipModuleLaunchCooperativeKernelMultiDevice

In CooperativeKernelMultiDevice mode, the stream's device
should be validated against the grid's assigned device
rather than the current device.

[ROCm/clr commit: 2aa2212d93]
2025-08-13 07:47:49 +01:00
Assiouras, Ioannis a7ed228997 SWDEV-543340 - Remove shared memory objects after IPC event cleanup (#745)
This change ensures that shared memory objects (e.g., files in /dev/shm)
are unlinked once all related IPC events have been destroyed.

[ROCm/clr commit: dc34af61d7]
2025-08-12 21:23:09 +01:00
Chaudhary, Jatin Jaikishan 442468de96 SWDEV-545100 - rename the template variable (#798)
[ROCm/clr commit: 42730527c6]
2025-08-12 21:58:55 +05:30
Chaudhary, Jatin Jaikishan 430f901b31 SWDEV-539481 - Add _rn variants of fp16 APIs (#582)
* Add _rn variants of fp16 APIs
* cover bf16 as well

[ROCm/clr commit: 4d5fe2206d]
2025-08-12 21:58:38 +05:30
Dittakavi, Satyanvesh 04c935d29c SWDEV-545947 - Add Implementation for hipSetValidDevices (#805)
[ROCm/clr commit: c60888b0cd]
2025-08-12 16:29:09 +05:30
Dittakavi, Satyanvesh 263a0bc57d SWDEV-540272 - copy params 3D struct should be populated even for memcpy 1D graph node (#702)
SWDEV-540272 - copy params 3D struct should be populated even for 1D graph node

[ROCm/clr commit: b50d70564e]
2025-08-12 16:21:53 +05:30
Chaudhary, Jatin Jaikishan 7fe61f9556 SWDEV-540645 - use single path for code object loading (#773)
* use single path for code object loading
* Remove printf
* Address review comments
* Fix the declaration of ihipMallocManaged

[ROCm/clr commit: d7f90a3120]
2025-08-12 15:15:18 +05:30
Betigeri, Sourabh 0e0ca48a6a SWDEV-528351 - Clean up hipJitOptions (#439)
[ROCm/clr commit: 0d9428135c]
2025-08-11 21:24:44 +05:30
Betigeri, Sourabh 0916627b5f SWDEV-528351 - Cleanup template specializations and overloads for enums (#360)
* SWDEV-528351 - Adds temlplate specialization for enums
* SWDEV-528351 - Removes template specializations for enums

[ROCm/clr commit: da61c5d1da]
2025-08-11 21:24:24 +05:30
Chaudhary, Jatin Jaikishan 61f5291b04 SWDEV-508540 - fix the max blocks per multiprocessor calculation (#737)
[ROCm/clr commit: ee124dda09]
2025-08-11 10:17:18 +05:30
Assiouras, Ioannis b3ae0230a5 SWDEV-542218 - Remove attribute(aligned) from ext_vector_type as it i… (#802)
SWDEV-542218 - Remove attribute(aligned) from ext_vector_type as it is iignored

[ROCm/clr commit: 4646a756d9]
2025-08-08 13:09:56 +01:00
Kudchadker, Saleel 3a849c6962 SWDEV-538195 - Introduce threshold for handler submission (#723)
- When doing device/stream sync, we can submit a handler which may
  introduce some host side delays. Use DEBUG_CLR_BATCH_CPU_SYNC_SIZE to
  batch commands for host wait. Default for HIP is 8 commands.
- Investigation is underway in ROCr but need to address this for now in
  HIP runtime.

[ROCm/clr commit: 9b045922a8]
2025-08-06 20:34:42 -07:00
Xie, Pengda 213623506f SWDEV-534394 - Kernel launch stream check (#533)
hipErrorInvalidResourceHandle is returned if stream is not on the launching device

[ROCm/clr commit: 7e777d3755]
2025-08-05 10:39:37 -07:00
Brzak, Branislav d54e70063e SWDEV-546137 - Don't rely on __cplusplus under hiprtc environment (#806)
[ROCm/clr commit: 111f12cbed]
2025-08-04 21:33:26 +02:00
Assiouras, Ioannis b443903ad8 SWDEV-533754 - Fixed mem leak in capturing gpu packets (#365)
[ROCm/clr commit: f094d16157]
2025-08-04 14:58:04 +01:00
Betigeri, Sourabh 40999496c1 SWDEV-545273 - Respect HIP_LAUNCH_PARAM_BUFFER_SIZE (#770)
[ROCm/clr commit: 2a02d2c2f3]
2025-08-03 17:32:52 -07:00
Sumner, Brian b617e8feb6 Fix undefined symbol at runtime with newer versions of LLVM (#791)
[ROCm/clr commit: 2da49283c8]
2025-08-01 08:15:02 -07:00
Patel, Jaydeepkumar 4458842ceb SWDEV-541799 - Return hipSuccess from hipFreeAsync if ptr to free is … (#683)
SWDEV-541799 - Return hipSuccess from hipFreeAsync if ptr to free is nullptr to match with hipFree.

[ROCm/clr commit: c329b548eb]
2025-08-01 14:41:40 +05:30
Chaudhary, Jatin Jaikishan b69f832430 SWDEV-543350 - restrictions on usage of hipMemcpyWithStream (#727)
* SWDEV-543350 - Do not hipMemcpyWithStream to be called during stream capture

* update comment

---------

Co-authored-by: Jatin Chaudhary <jatchaud@amd.com>

[ROCm/clr commit: 76d2c4135e]
2025-08-01 14:41:02 +05:30
Manocha, Rahul 4a93a614e5 SWDEV-539710 - Defer allocation of managed variable (#652)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/clr commit: 3f6f9d6081]
2025-07-31 08:30:23 -07:00
Xie, Jiabao(Jimbo) 405962df53 SWDEV-532824 - Fixed log_printf errors for codeql (#427)
Co-authored-by: Jimbo Xie <jiabaxie@amd.com>

[ROCm/clr commit: c88f345229]
2025-07-31 08:17:41 -07:00
Manocha, Rahul 86039381a2 SWDEV-540733 - Add PCI CHIP ID device attribute (#647)
SWDEV-540733 - Add PCI CHIP ID Device Attribute

Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/clr commit: 3bbc8bd170]
2025-07-30 19:43:07 -07:00
Hernandez, Gerardo f47693b755 SWDEV-534207 - fix use of uninitialized variable at hipEventRecord_common() (#771)
[ROCm/clr commit: 2c6ec7df45]
2025-07-23 16:49:12 +05:30
Sang, Tao 1aae121e86 SWDEV-533964 - use __builtin_readcyclecounter() only in clock64 (#368)
[ROCm/clr commit: 5fc6208b19]
2025-07-22 10:41:23 +05:30
Sang, Tao 2296162578 SWDEV-502579 - Remove duplicated symbols (#21)
Remove duplicated compiler symbols from hip-rt. hip-rt should use symbols such as EF_AMDGPU_MACH_AMDGCN_XXX and
ELFABIVERSION_AMDGPU_HSA_VX defined in compiler header.

[ROCm/clr commit: b15c1657b8]
2025-07-22 10:41:01 +05:30
Dittakavi, Satyanvesh a3e576a317 SWDEV-542905 - Update the appropriate grid size in capture hipExtModuleLaunchKernel (#740)
[ROCm/clr commit: c43ee71e96]
2025-07-21 13:57:15 +05:30
Jiang, Julia 005672c314 SWDEV-523483 - Update atomics add-operation in CLR (#751)
[ROCm/clr commit: 9cd8757717]
2025-07-19 06:48:54 +05:30
Betigeri, Sourabh 5683c5fb61 SWDEV-537486 - Change the SPIRV bundle entry id to match 4-field triple (#513)
[ROCm/clr commit: 1edac1bf3a]
2025-07-17 09:29:51 +05:30
Betigeri, Sourabh 52363f797e SWDEV-540629 - Update the current device ID (#699)
[ROCm/clr commit: 0313e20706]
2025-07-15 21:40:26 +05:30
Dittakavi, Satyanvesh b6d69d162e SWDEV-542832 - Refactor vector types alignment (#713)
[ROCm/clr commit: 918b0bdb7a]
2025-07-15 21:09:31 +05:30
Sang, Tao 7fd322af90 SWDEV-508776 - support VGPRs validation (#274)
Clarify some VGPRs terms description.
Fix some wrong query logics of availableVGPRs_ and
availableRegistersPerCU_ in device info.
Add hipDeviceAttributeMaxAvailableVgprsPerThread
attribute query.
Remove hardcoding of following
 info_.vgprAllocGranularity_
 info_.vgprsPerSimd_

[ROCm/clr commit: 397f303d97]
2025-07-09 10:46:52 -04:00
Salinas, David 84e9845897 SWDEV-536367 - Make DEPRECATED message in roc-obj tools STDERR (#469)
[ROCm/clr commit: 71c6535b07]
2025-07-09 17:01:33 +05:30
Brzak, Branislav afa60c590c SWDEV-540609 - hipGraph capture of hipExtModuleLaunchKernel assumed grid size was a multiple of block size (#694)
[ROCm/clr commit: 32e027e66c]
2025-07-09 16:05:40 +05:30
Belton-Schure, Aidan 88c1717658 SWDEV-515426 - Remove HIP_USE_RUNTIME_UNBUNDLER (#205)
* remove HIP_USE_RUNTIME_UNBUNDLER
* clang-format
* Generic to use comgr
* Remove HIP_ALWAYS_USE_NEW_COMGR_UNBUNDLING_ACTION flag
* Removes runtime unbundling unused and debug Code
* Removes stale functions

[ROCm/clr commit: 81238db679]
2025-07-08 21:45:31 +05:30
Xie, Pengda 19007f7015 SWDEV-536925 - Check for C++ compiler instead of C when building hip (#490)
Change cmake to use CMAKE_CXX_COMPILER_ID since CMAKE_COMPILER_IS_GNUCC is deprecated

[ROCm/clr commit: 21f6842fff]
2025-07-01 12:59:54 -07:00
Sang, Tao 287ec83f5c SWDEV-539145 - Support extended fine grained system memory pool (#603)
* Add hipHostMalloc() new flag hipHostMallocUncached which will force to allocate pinned
host memory on extended fine grained system memory pool.
* Add hipHostAlloc() new flag hipHostAllocUncached which will force to allocate pinned
host memory on extended fine grained system memory pool.
* Add hipHostRegister() new flag hipHostRegisterUncached which will force to map
host memory onto extended fine grained system momory pool.

[ROCm/clr commit: a7d7687b8f]
2025-07-01 10:10:10 +05:30
Belton-Schure, Aidan b735783ae7 SWDEV-536813 - Make alignment 16 for special cases (#609)
[ROCm/clr commit: 5e77c58bd0]
2025-06-27 14:20:16 +05:30
Luu, Jonathan 20a9e311a9 SWDEV-531400_SYMLINK remove SYMLINK (#525)
Co-authored-by: Jonathan Luu <jonatluu@amd.com>

[ROCm/clr commit: a2dafbeacf]
2025-06-26 15:53:39 -04:00
Luu, Jonathan 81c75a7acc SWDEV-531400 - Remove file reorganization backward compatibility (clr hip) (#472)
* SWDEV-531400 Remove file reorganization backward compatibility (clr hip)

* SWDEV-531400 remove backwards compatibility for opencl

* SWDEV-531400 remove header_template.hpp.in

---------

Co-authored-by: Jonathan Luu <jonatluu@amd.com>

[ROCm/clr commit: c64d56195f]
2025-06-26 15:53:11 -04:00
Sicarov, Dragoslav dbfd869936 SWDEV-533232 Add num_threads API in cooperative_groups (#437)
* Add num_threads API in cooperative_groups
* Reimplementsize API as its alias.
* Update changelog

[ROCm/clr commit: a4631b5700]
2025-06-26 15:05:17 +05:30
Arandjelovic, Marko c530e72a7c SWDEV-512344 - Allow unmapping of only complete subbuffers (#608)
* Do not allow partial unmapping
* Add check to prevent out of bounds unmap
* Improve code quality
* Use getOrigin instead of getOffset

[ROCm/clr commit: 349b83c1f6]
2025-06-26 15:01:33 +05:30
Kudchadker, Saleel 3c9f80b4e4 SWDEV-535490 - Improve logging (#441)
- Include HIP version/githash in the logs
- Add a new method to print library path

[ROCm/clr commit: 5d53c83806]
2025-06-24 13:00:00 -07:00
Sang, Tao e113c4da2c SWDEV-533964 - Let comgr compile SPIRV to exec directly (#494)
[ROCm/clr commit: 7755660eeb]
2025-06-23 09:59:53 -04:00
Salinas, David f748dac1fb SWDEV-526498 - [HIPCC] Stop including perl scripts in hipcc packages (#474)
[ROCm/clr commit: 0635f13d9a]
2025-06-23 18:23:54 +05:30
Belton-Schure, Aidan 90508da214 Fix rocWMMA specialization (#532)
Co-authored-by: Aidan Belton <abeltons@amd.com>

[ROCm/clr commit: 49690b8b38]
2025-06-23 18:22:37 +05:30
Belton-Schure, Aidan 56bee0426a SWDEV-536813 - Fix HIP_vector_base alignment (#501)
* SWDEV-536813 - Fix HIP_vector_base alignment

Change-Id: I6ee211437768bbdf42186bcd0805b8c2290373da

* Remove alignas for vec3

Change-Id: If93c55327cad38cf179bdd2a89faa725b0a0fc15

* align array to match native_vector

Change-Id: I54fbdba01c19241a4c4945ba4c35ac6d40f17ea6

* update

Change-Id: Ib7de5a7ebde0b2a5c18fe5c70f7329a90807abfb

[ROCm/clr commit: 3faece02dc]
2025-06-23 18:21:51 +05:30
Sang, Tao 0faa7d7c95 SWDEV-519446 Part 2: Update unsafe atomic function file header (#394)
* SWDEV-519446 Part 2: Update unsafe atomic function file header
* Use  __HIP_ATOMICS_IGNORE_DENORMAL_MODE to denote [[clang::atomic(ignore_denormal_mode)]] when condition met.

[ROCm/clr commit: 428fce9fd6]
2025-06-19 19:12:59 +05:30