Commit Graph

1815 Commits

Author SHA1 Message Date
Rahul Manocha f5d901f016 SWDEV-546311 - implement hipKernelGetLibrary & hipLibraryEnumerateKer… (#1143)
* SWDEV-546311 - implement hipKernelGetLibrary & hipLibraryEnumerateKernels API

* Fix for LibraryEnumerateKernel and KernelGetName

* Update Enumerate Kernels to handle 0 numKernels

* Minor fixes to function names

* fix error checking in internal function

* Update changelog for new apis

---------

Co-authored-by: Rahul Manocha <rmanocha@amd.com>
2025-10-27 14:13:17 -07:00
Ajay GunaShekar 4a1a4aa472 SWDEV-560725 - remove final from amd_warp_functions (#1395)
final word used as a literal over a keyword.
2025-10-20 12:27:59 -07:00
Satyanvesh Dittakavi 9d32badcb7 SWDEV-545950 - Update indentation in hip_prof_str.h for hipStreamCopyAttributes (#1352) 2025-10-14 17:35:17 +05:30
Satyanvesh Dittakavi 46e683d41a SWDEV-545950 - Add hipStreamCopyAttributes API Implementation (#914)
* SWDEV-545950 - Add hipStreamCopyAttributes API Implementation

* Add unit test for hipStreamCopyAttributes API

* Add ChangeLog and nvidia mapping for the API

* Update rocprofiler-sdk with new HIP API details

* [rocprofiler-sdk] handle hipStreamCopyAttributes in stream tracing service

- this new HIP function has multiple stream arguments and needs to be skipped because it does not have an explicit create/destroy/set functionality

* Update HIP_RUNTIME_API_TABLE_STEP_VERSION in clr and rocprofiler-sdk

* Resolve merge conflicts

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
2025-10-12 19:57:05 +05:30
Satyanvesh Dittakavi 6b85dcf227 SWDEV-557093 - Add nested tiled partition in HIP cooperative groups (#1166) 2025-10-10 00:21:44 +05:30
Rahul Manocha 27ec19116d SWDEV-557828 - fix hip-tests on cuda (#1152)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
2025-10-07 08:28:56 -07:00
Sam Ruscica 135c38b41c SWDEV-553436 Created wrapper functions for file read and file write (#935) 2025-10-07 09:42:22 -04:00
MachineTom 4a31affb76 Users/taosang/SWDEV-510994 - Refractor atomics header and tests (#902)
* SWDEV-550626 - Refactor atomics header and tests

1. Introduce __HIP_ATOMIC_BACKWARD_COMPAT.
By default we define __HIP_ATOMIC_BACKWARD_COMPAT=1 to
let hip atomic functions maintain old assumptions. if
users want to adopt the new behavior, that is , by default
assume no-fine-grained no-remote-memory, then they can
define __HIP_ATOMIC_BACKWARD_COMPAT=0 and get the new
behaviour.

2. Use  __HIP_ATOMIC_BACKWARD_COMPAT_MEMORY to replace
original __HIP_FINE_GRAINED_MEMORY  in atomic header.
And apply __HIP_FINE_GRAINED_MEMORY onto all 
atomicXXX_system() functions to prevent failure on memory
allocated by hipHostMalloc().

3. Replace HIP_TEST_FINE_GRAINED_MEMORY with
HIP_TEST_ATOMIC_BACKWARD_COMPAT_MEMORY in hip-tests.

4. Fix negative test errors.
    Fix managed memory test error on memory order.
    some other minor changes.
    As a result  all originally disabled tests are enabled.

5. Add more atomics tests in some cases.

6. Reduce test time in each case.
     Reduce iteration number to 1 for tests that cost too much time.

8. Put common codes into hip_test_common.hh
2025-09-25 10:58:59 -04:00
Jatin Chaudhary e79eaaa8a5 SWDEV-546287 - Implement hipLibrary load/unload (#975) 2025-09-19 22:23:49 +01:00
systems-assistant[bot] d5fc1b3703 SWDEV-548838 Add local and global fence support for barrier function (#437)
* SWDEV-548838 Add local and global fence support for barrier function

The original barrier function didn't distinct between local and global scope. There was only __CLK_LOCAL_MEM_FENCE which triggers both local and global fence. This commit introduces __CLK_LOCAL_MEM_FENCE and __CLK_GLOBAL_MEM_FENCE that properly distinguish the scopes. 

---------

Co-authored-by: Tim <Tim.Gu@Amd.com>
Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com>
Co-authored-by: Tim Gu <timgu102@amd.com>
2025-09-16 14:20:57 -04:00
AidanBeltonS bf662640ee SWDEV-539805, SWDEV-553860 - Resolve GCC clang ABI mismatch and check vector alignment (#909)
* SWDEV-539805 - Add checks for vector alignment and size

* SWDEV-553860 - Alter alignment for gcc

* SWDEV-553860 - Align fallback method

* SWDEV-553860 - Alter alignment requirement
2025-09-16 17:10:14 +01:00
harkgill-amd d1b2b5ed44 Fix grid_group::group_dim to return grid_dim and not block_dim (#823)
* Fix grid_group::group_dim to return grid_dim and not block_dim

* Add unit test for grid_group.group_dim()

* Fix unit test errors

* Skip group_dim() assertions for base_type test
2025-09-15 09:42:55 -04:00
Jatin Chaudhary 3742814d82 SWDEV-553757 - add __HIP__ and __clang__ check for __shfl functions (#872) 2025-09-11 21:57:39 +01:00
Todd tiantuo Li c8ecf77a94 Update dispatch table to move 7.1 new APIs under HIP_RUNTIME_API_TABLE_STEP_VERSION 14 (#790) 2025-09-05 14:14:43 -07:00
Ioannis Assiouras 7bf7110ae8 SWDEV-550667 - Correct the check for availability of __hip_atomic_fetch_add (#818) 2025-09-04 15:15:34 +01:00
systems-assistant[bot] 7601798fa7 SWDEV-545953 - Add Implementation for hipStreamGetId (#434)
Authored-by: Satyanvesh Dittakavi <Satyanvesh.Dittakavi@amd.com>
2025-08-26 22:47:55 +05:30
Danylo Lytovchenko 2ff2316227 Adjust clang format to the new versions, revert broken macro layout (#714) 2025-08-22 17:23:22 +02:00
Danylo Lytovchenko f7338717ae SWDEV-470698 - fix formatting, add format check workflow (#657) 2025-08-20 19:58:06 +05:30
Betigeri, Sourabh 35e48d1eaf SWDEV-546293 - hipMemPrefetchAsync_v2 and hipMemAdvise_v2 implementation (#869)
SWDEV-546293 - hipMemPrefetchAsync hipMemAdvise_v2

Please enter the commit message for your changes. Lines starting

[ROCm/clr commit: cbee74a80e]
2025-08-15 22:40:04 -07:00
Li, Todd tiantuo ad9eb56dd4 SWDEV-546285 - add hipGetDriverEntryPoint (#855)
[ROCm/clr commit: 789e2029ca]
2025-08-15 20:08:21 -07:00
Manocha, Rahul 8fb910f69b SWDEV-546295 - Add new APIs hipMemcpy3DBatchAsync and hipMemcpy3DPeer (#818)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/clr commit: e3cf50c96d]
2025-08-15 13:18:29 -07:00
Arandjelovic, Marko e91332340a SWDEV-542815 - Fix unused-parameter compiler warnings (#719)
* SWDEV-542815 - Fix unused-parameter compiler warnings

* SWDEV-542815 - Run clang-format

* SWDEV-542815 - Run clang-format

* SWDEV-542815 - Run clang-format

* SWDEV-542815 - Run clang-format

[ROCm/clr commit: 1385d159ba]
2025-08-15 22:10:23 +02:00
GunaShekar, Ajay 0d63a5abd3 SWDEV-546178 - hipModuleLoadFatBinary implementation (#785)
* SWDEV-546178 - hipModuleLoadFatBinary implementation

* SWDEV-546178 - hipModuleLoadFatBinary CHANGELOG update

* SWDEV-546178 - fix roctracer build issue due to hip_prof_str.h

[ROCm/clr commit: f6736d57a5]
2025-08-15 13:06:24 -07:00
Manocha, Rahul b3ccf487da SWDEV-545952 - API definitions for hipStreamSet/GetAttribute (#831)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/clr commit: 0f49c4a97f]
2025-08-15 12:51:35 -07:00
Manocha, Rahul 2b79ca9435 SWDEV-546328 - API definitions for hipMemsetD2D8/D16/D32 (#789)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/clr commit: 5f86622adc]
2025-08-14 14:47:28 -07:00
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
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
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
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
Sang, Tao 1aae121e86 SWDEV-533964 - use __builtin_readcyclecounter() only in clock64 (#368)
[ROCm/clr commit: 5fc6208b19]
2025-07-22 10:41:23 +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
Dittakavi, Satyanvesh b6d69d162e SWDEV-542832 - Refactor vector types alignment (#713)
[ROCm/clr commit: 918b0bdb7a]
2025-07-15 21:09:31 +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
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
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
Belton-Schure, Aidan 615b904729 SWDEV-535738 - Properly define size_t for windows (#481)
[ROCm/clr commit: adda2602e1]
2025-06-18 19:32:11 +05:30
Assiouras, Ioannis 079b490e64 SWDEV-537656 - Added c++11 include guard for constexpr HIP_vector_type operator== (#517)
[ROCm/clr commit: e88d9fabe0]
2025-06-13 12:05:41 +05:30
Sang, Tao cca39a7e19 SWDEV-519446 - Part 1: update normal atomic function file header (#345)
Remove the scope of __has_builtin(__hip_atomic_compare_exchange_strong) == false

[ROCm/clr commit: 67f6409eb1]
2025-06-12 09:16:51 +05:30
Brzak, Branislav cefb51e63e SWDEV-537139 - Add missing typename qualifier to permuteType (#505)
[ROCm/clr commit: b7778ecd65]
2025-06-11 08:03:10 +05:30
Sang, Tao 06616a4837 SWDEV-511020 - fix bugs in surface function header (#449)
[ROCm/clr commit: 10ea744996]
2025-06-11 08:00:42 +05:30
Chaudhary, Jatin Jaikishan c914642086 SWDEV-529899 - [ABI Break] remove unnamed namespace from fp16 operations (#244)
Change-Id: I4feb9089b4cee145300dc78fc43a4f42473f5b1c

[ROCm/clr commit: 543925e048]
2025-06-06 21:22:37 +05:30
Assiouras, Ioannis af6016fe89 SWDEV-536048 - Add explicit cast to int when warpSize is used with == operator (#473)
[ROCm/clr commit: a01134a1ab]
2025-06-06 12:22:31 +05:30
Dittakavi, Satyanvesh 2001b250b5 SWDEV-535738 - Use the type traits implementation from __hip_internal namespace in hip headers (#471)
[ROCm/clr commit: 1bce89ca51]
2025-06-05 00:14:56 +05:30
Belton-Schure, Aidan 415ba0773b Add HIP_vector_base constructor (#456)
Change-Id: I57571f6bf9876d3a9ff312b952858527ec6abc7b

[ROCm/clr commit: c2f6c98006]
2025-06-03 12:23:38 +05:30
Xie, Jiabao(Jimbo) 1539c16ee8 SWDEV-535184 - Fix to switch HIP_RUNTIME_API_TABLE_STEP_VERSION 9 and 10 (#448)
[ROCm/clr commit: 54a2e943d7]
2025-06-02 21:24:40 +05:30
Patel, Jaydeepkumar cb73b09ce1 SWDEV-535738 - Use __hip_internal instead of std namespace for device code. (#455)
[ROCm/clr commit: a018d4278a]
2025-06-02 20:09:17 +05:30
Belton-Schure, Aidan 0fcf5ef2c5 Fix vec operator[] (#419)
Change-Id: I1b6767b8b7f7dbcf9998662dd9f8ae3a96e1deca

[ROCm/clr commit: 9533ceb8aa]
2025-05-29 13:09:34 +05:30