179 Commits

Author SHA1 Message Date
vstojilj 9a8942a89c SWDEV-558836, SWDEV-558837 - Add hipMemSetMemPool and hipMemGetMemPoo… (#1349)
* SWDEV-558836, SWDEV-558837 - Add hipMemSetMemPool and hipMemGetMemPool implementation

* Add managed allocation type for mem pools

* Update rocprofiler-sdk with APis declaration
2026-01-27 18:45:28 +01:00
Todd tiantuo Li 0eccbf0534 SWDEV-554372 - cuda mappings for GetProcAddress API and flags (#1089) 2025-12-11 23:59:51 -08:00
Satyanvesh Dittakavi 07dd4c85e7 SWDEV-546308 - Implement hipKernelGetParamInfo API (#1783) 2025-11-12 14:09:26 +05:30
Sourabh U Betigeri 78e9e47852 SWDEV-551244 - Fixes CUDA 13 compilation issues (#1237) 2025-11-04 16:56:49 -08:00
dsicarov-amd 4915496bf9 SWDEV-533237 Add hipOccupancyAvailableDynamicSMemPerBlock API (#899)
* SWDEV-533237 Add initial support for hipOccupancyAvailableDynamicSMemPerBlock API

* SWDEV-533237 Add hipOccupancyAvailableDynamicSMemPerBlock wrapper for nvidia

* SWDEV-533237 Add implementation of hipOccupancyAvailableDynamicSMemPerBlock API

* SWDEV-533237 Add LDSAlignment field in Isa table

---------

Co-authored-by: Rahul Manocha <rmanocha@amd.com>
2025-10-29 10:58:42 +01:00
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
MachineTom 5f76cb916d SWDEV-555888 - Refactor Numa code (#1191)
1. Create a set of mini numa interface.
In Linux, the interface is based on system call rather than libnuma.
In Windows, the interface can also work, but the policy class is dummy.
Different from Linux, Windows doesn't provide numactl tool or numa lib to setup numa policy, thus
the default policy is followed in Windows, that is, using the closest host numa node to allocate
pinned host memory in hipHostMalloc().
To get the closest host numa node of a GPU device, you need query the new attribute
hipDeviceAttributeHostNumaId. Then you can create a thread with CPU affinity on the numa node.
For example, reference the test in hip-tests/catch/perftests/memory/hipPerfHostNumaAllocWin.cc.

2. Remove pfnSetThreadGroupAffinity and pfnGetNumaNodeProcessorMaskEx as the functions have been exposed since Win7 and Win server 2008.

3. Other minor fixes.
2025-10-23 21:56:15 -04:00
vstojilj bfedf63575 SWDEV-552537 - Fix nvidia build failures (#1125)
* SWDEV-552537 - Fix nvidia build failures

* Add string header to fix hip-tests

---------

Co-authored-by: Branislav Brzak <branislav.brzak@amd.com>
Co-authored-by: Danylo Lytovchenko <danylo.lytovchenko@amd.com>
2025-10-13 09:20:17 +02:00
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
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
Jatin Chaudhary e79eaaa8a5 SWDEV-546287 - Implement hipLibrary load/unload (#975) 2025-09-19 22:23:49 +01:00
systems-assistant[bot] 2f7e9591be SWDEV-541096 - add hipEventWaitDefault and hipEventWaitExternal (#453)
Co-authored-by: Li, Todd tiantuo <Toddtiantuo.Li@amd.com>
2025-09-13 10:33:00 -07:00
Sam Ruscica 9018e0fc7b SWDEV-546639 monorepo fix for nvidia hip runtime api (#746)
* SWDEV-546639 monorepo fix for nvidia hip runtime api

* Added back hipSetValidDevices.
2025-08-28 09:03:37 -07:00
Satyanvesh Dittakavi 09cfa97156 SWDEV-551218 - Fix hip on nvidia build failures (#642)
* Rebase and address merge conflicts

* SWDEV-551218 - Fix hip on nvidia build failures
2025-08-26 23:40:35 +05:30
systems-assistant[bot] 832af6d472 SWDEV-545953 - Add Nvidia mapping for hipStreamGetId (#456)
Co-authored-by: Satyanvesh Dittakavi <Satyanvesh.Dittakavi@amd.com>
2025-08-26 21:35:17 +05:30
Danylo Lytovchenko f7338717ae SWDEV-470698 - fix formatting, add format check workflow (#657) 2025-08-20 19:58:06 +05:30
Manocha, Rahul 13d54a3ec1 Fix typo in hipBatchMemOpParamsTocudaBatchMemOpParams (#38)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/hipother commit: ed7fae51d8]
2025-08-18 12:09:09 -07:00
Betigeri, Sourabh b5ca920dee SWDEV-546293 - Adds nvidia mappings to hipMemPrefetchAsync_vs and hip… (#36)
SWDEV-546293 - Adds nvidia mappings to hipMemPrefetchAsync_vs and hipMemAdvise_v2

[ROCm/hipother commit: bf0302a494]
2025-08-15 22:44:41 -07:00
Li, Todd tiantuo 38d5d2b55d SWDEV-546285 - add hipGetDriverEntryPoint (#35)
[ROCm/hipother commit: 87f262a56f]
2025-08-15 22:38:34 -07:00
Manocha, Rahul 7de3300370 SWDEV-546328 - cuda mappings for hipMemsetD2D8 (#34)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/hipother commit: a7580daf57]
2025-08-15 13:22:56 -07:00
Manocha, Rahul 93d8b3a489 SWDEV-546295 - cuda mappings for hipMemcpy3DBatchAsync and hipMemcpyPeer (#33)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/hipother commit: 60ecc06a1c]
2025-08-15 13:22:27 -07:00
Manocha, Rahul 490d079a01 SWDEV-545952 - cuda mappings for StreamGet/Set Attr (#32)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/hipother commit: 91a7a8d767]
2025-08-15 13:21:52 -07:00
GunaShekar, Ajay ceaa8c8475 SWDEV-546178 - hipModuleLoadFatBinary nvidia impl (#26)
[ROCm/hipother commit: 5107c35166]
2025-08-15 12:37:44 -07:00
GunaShekar, Ajay 70b7ec09c4 SWDEV-546179 - nvidia impl hipModuleGetFunctionCount (#25)
[ROCm/hipother commit: f183894732]
2025-08-13 20:28:35 -07:00
Dittakavi, Satyanvesh 526b46e9ba SWDEV-545947 - Add Nvidia mapping for hipSetValidDevices (#29)
[ROCm/hipother commit: 98ef2f64b5]
2025-08-12 16:30:30 +05:30
Stojiljkovic, Vladana e87848cdc7 SWDEV-541362 - Add nullptr check for memsetParams (#22)
[ROCm/hipother commit: f638aa91eb]
2025-07-14 11:02:37 +02:00
Manocha, Rahul dbf3fb64e3 SWDEV-533787 - Add cuda mapping for hipMemGetHandleForAddressRange (#14)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/hipother commit: 607ffbef03]
2025-07-11 14:27:46 -07:00
Assiouras, Ioannis b116f7d17f SWDEV-508965 - [6.4 Preview] Remove HIP_MEMSET_NODE_PARAMS struct (#11)
[ROCm/hipother commit: ed4a99ba5c]
2025-05-21 21:25:17 +05:30
Manocha, Rahul 19573225a5 SWDEV-489106 - Cuda mappings for Linker APIs (#8)
Co-authored-by: rmanocha@amd.com <Dragoslav.Sicarov@amd.com>

[ROCm/hipother commit: bb66090875]
2025-05-08 09:34:41 -07:00
GunaShekar, Ajay fc1d9a1c10 SWDEV-523281 - hipLaunchKernelExC nvidia impl (#5)
[ROCm/hipother commit: 27b12ec7cc]
2025-04-09 15:39:39 -07:00
Julia Jiang f07191a748 SWDEV-509855 - Update hipDeviceAttributePciDomainID in hipother
Change-Id: Ib245c90c78a27ea48875aa183c1727a17b62c936


[ROCm/hipother commit: 3cdab14a23]
2025-03-06 15:34:29 -05:00
Julia Jiang acc7ea639a SWDEV - 508961 - Update requestedHandleType in hipother repos
Change-Id: I50b91dfb42bd2a4daae80a3353b642e9df03fe46


[ROCm/hipother commit: f327d4f809]
2025-02-26 11:14:58 -05:00
Marko Arandjelovic 71418041e7 SWDEV-499927 - Add nullchecks to hipMemCreate and GetAllocationGranularity
Change-Id: I9bb879ce2c702e660ae5e6372cb27fdb8600566b


[ROCm/hipother commit: aea1990fe0]
2025-02-21 21:51:55 +05:30
victzhan 1f7400d7bf SWDEV-477218 - add hipDeviceGetTexture1DLinearMaxWidth API
Change-Id: I0532360ef298cb2353ae0182b17f8024e7bb3dae


[ROCm/hipother commit: 55c17fb4dc]
2025-01-15 10:01:47 -05:00
Marko Arandjelovic 4bae839601 SWDEV-499927 - Fix param handling in hipMemAccess APIs
Change-Id: If7c168e28fc94137abf33e4083b7af9515f24298


[ROCm/hipother commit: 011c022e70]
2024-12-23 20:05:27 -05:00
Marko Arandjelovic e6e0201969 SWDEV-499927 - Added nullptr checks to prevent segfaults
Change-Id: I6c721340d195f803a48187009d714c94587f098d


[ROCm/hipother commit: d38eb853a0]
2024-12-17 18:01:40 +05:30
Sourabh Betigeri a421a72d8f SWDEV-484578 SWDEV-484575 SWDEV-484573 SWDEV-483324 SWDEV-483323 - Fixes issues in nvidia mappings for batch mem ops
Change-Id: I6202ea5691b8256e004650d2689c2826a53d8113


[ROCm/hipother commit: 1d96ab69ee]
2024-12-12 01:26:45 -05:00
Jaydeep Patel b7a1df8fb0 SWDEV-477219 - Add missing curly brace.
Change-Id: I58268d4c2f3cdc0d647deea51b250117e77d82ae


[ROCm/hipother commit: 86fbfba69e]
2024-12-12 00:17:04 -05:00
Sourabh Betigeri 731d8ae5ff SWDEV-484578 SWDEV-484575 SWDEV-484573 SWDEV-483324 SWDEV-483323 - Adds nvidia mappings
For hipStreamBatchMemOp, hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeSetParams,
hipGraphBatchMemOpNodeGetParams, hipGraphExecBatchMemOpNodeSetParams APIs

Change-Id: I54a42fe070ee4a9e0ae41718b79f96aed883db5e


[ROCm/hipother commit: 4fd3f70f51]
2024-12-10 23:48:15 -05:00
Jimbo Xie ff5e5c5e98 SWDEV-477219 - hipEventRecordwithFlags hipother
Change-Id: I17313697f24ab095f134da0873148962114df5fc


[ROCm/hipother commit: 0b82c50300]
2024-12-09 16:41:55 -05:00
Marko Arandjelovic 3b5b8e075f SWDEV-499927 - Fix hipMemAllocationProp
- The member of the hipMemAllocationProp struct is named requestedHandleTypes. However, in HIP, it is named requestedHandleType. I have decided not to follow CUDA's naming convention, as it would require a lot of changes across HIP repositories (clr, hip, hip-tests).
 - Fix hipMemGetAllocationPropertiesFromHandle to update out parameter properly.

Change-Id: I8417a2e73b0ee9fa5ca0d36546e75cfce82cbf3e


[ROCm/hipother commit: f65d41442f]
2024-12-05 04:55:54 -05:00
Marko Arandjelovic 7a0356f8e1 SWDEV-483312 - Add cuda driver API's interfaces
Change-Id: Ib37cc6085898ae9dc86e509503cd52b61c1a5356


[ROCm/hipother commit: 66367f3ec6]
2024-11-29 12:16:06 +02:00
Branislav Brzak 2896b2c2d9 SWDEV-483315 - Add hipGraphNodeGetDependentNodes_v2
Change-Id: I418d0c2a5a77b07603e4e481fd9547cf43b03a20


[ROCm/hipother commit: e22853eb4d]
2024-09-30 11:51:11 -04:00
Ajay GunaShekar 927cc12c33 Revert "SWDEV-483315 - Add hipGraphNodeGetDependentNodes_v2"
This reverts commit b5ee5efbaa.

Linux builds silently failing. Please look at the build logs

Change-Id: I1caeff6e5cf48697a36f7680b1ef31bcab93b6df


[ROCm/hipother commit: a74f9e1770]
2024-09-27 15:53:04 -04:00
Branislav Brzak b5ee5efbaa SWDEV-483315 - Add hipGraphNodeGetDependentNodes_v2
Change-Id: I1ac0fb50df248521dfaae283bf9017acce146279


[ROCm/hipother commit: f50835c1fd]
2024-09-24 12:23:16 +02:00
Marko Arandjelovic 40921ad019 SWDEV-483312 - Add graph API's interfaces
Change-Id: I83afcc2ba2df3f4dc444c4dcde4e5bf2edefdd9a


[ROCm/hipother commit: c944fb9426]
2024-09-09 07:43:21 -04:00
Vladana Stojiljkovic 85d76f6cd1 SWDEV-475987 - Add mapping for missing CUDA error codes
Change-Id: I4cc5cb786fa4c7cc67cc037b00edad63d811ca73


[ROCm/hipother commit: 1a12bbf19c]
2024-09-04 12:26:09 -04:00
Jaydeep Patel 264a149df9 SWDEV-479043 - Add mapping for hipStreamLegacy.
Change-Id: I35f699641624b5ef15e5bc1b3c669a2e74547453


[ROCm/hipother commit: 9ea767377e]
2024-08-21 00:18:42 -04:00
Ioannis Assiouras 16aaab2ab3 SWDEV-470372 - Un-deprecate hipHostAlloc, comply with cuda and introduce hipHostAlloc flags
Change-Id: I0c6910306ff98d97e9f8a6ccf467be6189e1ca86


[ROCm/hipother commit: 335bb33f1b]
2024-08-16 06:33:28 -04:00
Vladana Stojiljkovic 3abef40e83 SWDEV-477711 - Add mappings for hipTexRefSetMaxAnisotropy and hipTexRefGetMaxAnisotropy
Change-Id: Ifab9ec542edf97c314d1fb47cd14461089902db4


[ROCm/hipother commit: 7b46a48be3]
2024-08-13 12:41:46 -04:00