Manocha, Rahul
3f6f9d6081
SWDEV-539710 - Defer allocation of managed variable ( #652 )
...
Co-authored-by: Rahul Manocha <rmanocha@amd.com >
2025-07-31 08:30:23 -07:00
Manocha, Rahul
22b1ca4d8c
SWDEV-532420 - Fix kokkos P2P copy failure with vmheap ( #426 )
...
Co-authored-by: Rahul Manocha <rmanocha@amd.com >
2025-07-07 17:27:13 -07:00
Jayaprakash, Karthik
bb7750a946
Revert "SWDEV-522707 - Set phys_mem_handle type to sizeof(size_t) to avoid blocking address range. ( #105 )" ( #348 )
...
This reverts commit 6811fd90b8 .
2025-05-19 15:19:16 +05:30
Arandjelovic, Marko
a7492c516d
SWDEV-511204 - Mapped virtual memory should use device instead of host context ( #213 )
...
Since the sub-buffer(virtual memory that is mapped to device memory) is associated with device memory, it should utilize the device context instead of the host context. The original implementation caused hipMemcpyPeer to not take the P2P path, as the memory object was treated as host memory.
2025-05-12 16:55:25 +02:00
Jayaprakash, Karthik
6811fd90b8
SWDEV-522707 - Set phys_mem_handle type to sizeof(size_t) to avoid blocking address range. ( #105 )
2025-04-29 11:19:16 +05:30
Patel, Jaydeepkumar
b5c9cbc236
SWDEV-508632 - Align address to 2 MBs for hidden heap allocation. ( #29 )
2025-04-02 16:33:29 +05:30
German Andryeyev
296dce5570
SWDEV-497841 - Add virtual memory heap
...
Add initial implementation of virtual memory heap with
dynamic virtual memory mapping support for memory pools.
DEBUG_HIP_MEM_POOL_VMHEAP controls the new method.
Change-Id: I8dc5be2e0f34ab472f1800f43bb6243639a5e500
2025-02-20 10:55:49 -05:00
kjayapra-amd
6211037f63
SWDEV-439234 - Access check before memcpy and kernel operations.
...
Change-Id: I7057125c03460db205409e19980145298c190fe2
2024-09-06 14:30:00 -04:00
Ioannis Assiouras
775dc204aa
SWDEV-463865 - changed device,roc and pal namespaces to be nested under amd
...
Change-Id: Icad342843c039c634e249a13a7aa31400730b1dd
2024-06-07 12:23:06 -04:00
Jaydeep Patel
1d48f2a1ab
SWDEV-456279 - Adding new hip flag to access contiguous memory and pass the flag to HSA API.
...
Change-Id: I1bafeaa3096395c729723af958d609bc41e7845c
2024-04-30 05:25:38 -04:00
kjayapra-amd
0e1a0572e6
SWDEV-413997 - Changes to use GlobalContext in views.
...
Change-Id: I1f8411eae9ed49632667e244a25f223fed92c720
2024-04-29 16:41:39 -04:00
German Andryeyev
5c1804aa14
SWDEV-353281 - Corret VA unmap
...
Make sure graph mempool unmaps VA on release
Change-Id: Id3f1bd8d0115b533ae60aa5ba3676b8bf7e5b961
2024-04-26 09:37:01 -04:00
kjayapra-amd
5cbd74b554
SWDEV-413997 - Save hsa_handle as ptr in hipMemCreate path.
...
Change-Id: Ica32017ef7b00326dfb6d1f604e126d40ad5b786
2024-03-26 10:24:29 -04:00
kjayapra-amd
f5ca620baa
SWDEV-423835 - Fixing kernel launch issues on Virtual Memory Management path.
...
Change-Id: I9f5e8a3d83af3809b2c50b21a10697e26113dd23
2024-03-12 17:22:07 -04:00
kjayapra-amd
3ef829939a
SWDEV-413997 - Initial VMM changes for ROCm path.
...
Change-Id: I4405fd7b53182eb4c4622835c811c0dc08461537
2023-10-16 11:29:16 -04:00
taosang2
6398f604b0
SWDEV-299127 - Support External Mipmap
...
Support hipExternalMemoryGetMappedMipmappedArray().
Add ImageExternalBuffer to differiate ImageBuffer.
Currently we only support tiling_optimal mode as
vulkan driver doesn't provide tiling information.
Change-Id: I7e3524cdde53e4df9f728894bcebf4bd3f58d4d9
2023-10-05 09:58:17 -04:00
Jaydeep Patel
289535e805
SWDEV-412393 - Force alloc memory to avoid another hsa image creation.
...
Change-Id: Ia3cd99eb736231e6dfe013ebae6c41fd4cc657bc
2023-08-17 05:18:43 +00:00
German Andryeyev
b49e8e78e1
SWDEV-409815 - Fix image view cache issue
...
Add a view bit to avoid original resource destruction when parent
dependency doesn't exist with the image view cache
Change-Id: I8277afd575af8f29951c5d1a9f7d94d784251657
2023-07-25 12:30:04 -04:00
Todd tiantuo Li
8434feed16
SWDEV-333557 - 1.Add support for IPC memory to enable hipIpcGetMemHandle() and hipIpcOpenMemHandle() in PAL path. Set interprocess flag for device allocations in HIP PAL. 2.Fix PAL IPC path with ResourceCache and SubAllocation 3.Minor fixes for IpcBuffer constructor and IpcAttach 4.Remove redundant checks that may go wrong
...
Change-Id: Ie9d99847c7c2c7b3b2aaefaaf60d23bf71b68635
2023-07-12 17:49:32 -04:00
German Andryeyev
6b89980fb2
SWDEV-409815 - Fix image view cache issue
...
Make sure parent_ field is cleared for the internal image views.
The internal image views don't require dependencies tracking.
The issue appeard only when Navi10 pitch workaround was enabled.
Change-Id: I376d212750085a9391f8c32fc2979dcb5d93c89c
2023-07-11 11:22:29 -04:00
taosang2
f03c11491b
SWDEV-368553 – Add missing mipmap Apis
...
Add missing mipmap Apis’ implementation.
Fix some bugs of mimpmap apis.
Use hipmipmappedArray to differentiate cuda
and driver apis on Nvidia.
Change-Id: I6079d9f3b2ddf4e42b9a6f7f3902322cfca02cfd
2023-06-22 17:24:21 -04:00
German
9aa6f25f1c
SWDEV-311270 - Clean-up IPC path in ROCclr
...
- Make IPC interfaces generic between devices and rely on the IPC buffer
for attach/detach logic
Change-Id: Id3c18d122030329b7ee532bbb6317de9dd6a0bbe
2023-06-20 15:18:21 -04:00
German
1a0c3e4dc4
SWDEV-311270 - Add IPC support for memory pools
...
Initial implementation for hipMemPoolExportToShareableHandle,
hipMemPoolImportFromShareableHandle,
hipMemPoolExportPointer and hipMemPoolImportPointer
Change-Id: I0ebdc48e9163b394ded560adca6c38bbc5aee7d1
2023-06-15 11:36:52 -04:00
Ruili Ji
25fe45bb2a
SWDEV-383856 - Remove mmap function for SVM buffer
...
For large bar platform, it's not necessary to mmap
memory allocated on VRAM to cpu again
Change-Id: I0701680476829d4058b3e7b643e8df657d0c6168
Signed-off-by: Ruili Ji <ruiliji2@amd.com >
2023-04-05 07:47:30 +00:00
kjayapra-amd
6b873b8a86
SWDEV-376697 - Use PCIE fine grain memory pool when hipDeviceMallocUncached flag is used.
...
Change-Id: I7234d456ef2df42b0b9b9e0d2647ee9bded565f9
2023-02-16 14:05:50 -05:00
German
53a10c9039
SWDEV-377991 - Remove liquidflash support
...
Change-Id: Iba6455e5c0210c3223a06fec332404cd9f489154
2023-01-20 09:57:06 -05:00
German
3690ae8464
SWDEV-377991 - Remove liquidflash support
...
Change-Id: I8ea0feb6067387f1b545a7492b6bcb55e82ec8b0
2023-01-19 11:39:10 -05:00
German
5a42279a65
SWDEV-377991 - Rmove Liquidflash logic
...
Untie extra dependency on opencl repo
Change-Id: I8069cd8337214043d3c1453e3dfb0a0a47a83251
2023-01-19 09:58:31 -05:00
kjayapra-amd
e56a611b92
SWDEV-371904 - Adding pseudo fine grain flag to hsa memory allocation for device fine grained memory.
...
Change-Id: I8cada90f0e3880dfbc5bf5a3fac4554e7a0cb08e
2022-12-11 08:15:17 -05:00
kjayapra-amd
7f1fb925ff
SWDEV-361374 - Adding support for hipPointerSetAttributes
...
Change-Id: I3ec9627f43b3cbe0aa299c8aa9cd96f8fbd74925
2022-11-11 12:07:26 -05:00
Saleel Kudchadker
faaa41aab8
SWDEV-335626 - Use ROCr copy for IPC
...
Detect IPC buffer and use ROCr copy api instead of blit
Change-Id: Ie6bdd6fc45dbd7457611011d81570b53d5fd5276
2022-07-08 13:32:19 -04:00
Jaydeep
ea0590d1fe
SWDEV-332607 - If pitch returned from hipMallocPitch is equal to pitch passed to hipMemset2D then height passed to hipMemset2D must be less than or equal to height passed to hipMallocPitch.
...
Change-Id: I8d9b0938fb592170008aaec9cedd519bf40c6201
2022-06-17 10:35:22 -04:00
Sarbojit Sarkar
356e22f910
SWDEV-325379 - Fix for remote copy crash
...
Change-Id: I22152c0b3538cf7cfc80f82505bc255c01d98f7b
2022-06-16 23:59:11 -04:00
Rakesh Roy
ac2c3b5cad
SWDEV-333598 - Add flags field in amd::Memory UserData
...
Change-Id: Ie4d59fa34486679fde1027dd113573bda3e7c65c
2022-05-05 12:24:53 -04:00
Christophe Paquot
b5f555f9ec
SWDEV-322620 - Virtual Memory Management
...
Adding virtual memory management APIs to rocclr.
The HIP layer will handle virtual allocs on devices.
Change-Id: Ia978f105c2c3fed3959c77580ba228e845105754
2022-04-15 00:10:02 -04:00
Christophe Paquot
867346520f
SWDEV-322620 - Virtual Memory Management Part 1
...
Adding opaque data handle to memory. This is used to look back the HIP object associated with it.
Change-Id: I1bbb14a915bed79c6c3593a29a627778c7aaf13a
2022-03-31 21:12:26 -04:00
German Andryeyev
28597ec5b5
SWDEV-328670 - Enable arena for ROCr interops
...
Add ROCR memory detection and enable arena mem object for possible
access in HIP
Change-Id: Icf86ac789176bfee4ea8d36b0970a817d4c6a2f7
2022-03-30 16:46:36 -04:00
German Andryeyev
95d55fdfa8
SWDEV-323702 - Use active queue for transfer
...
Pass active queue for transfers in the cache coherency layer.
That will allow to use device transfer queue only for
cases when active queue isn't available, because using device
transfer queue from another active queue may cause a deadlock
Change-Id: Ifbe7e0303b77dbf6eeda3939ffbc25a3df7472de
2022-02-18 09:10:53 -05:00
Sarbojit Sarkar
02dc6f9f9a
SWDEV-310181 - Fix for AtoH Memcpy tests failure
...
Change-Id: Ibf8c8c01257f0516088d50d5c9f82040ed8fa067
2021-11-29 22:55:23 -05:00
Satyanvesh Dittakavi
c56317b2e0
SWDEV-292714 - Add unique id for each allocation to support HIP_POINTER_ATTRIBUTE_BUFFER_ID
...
Change-Id: Ibb3fcb2d0bbbef03525fc884d5b3e9b5f6c11423
2021-11-24 06:10:50 -05:00
agunashe
82e73c096b
SWDEV-301069 - current device id saved while allocating memory in VDI
...
Change-Id: Ic5426895fb1d152e4e6e1baf8b938f35c85fa3d8
2021-09-16 14:00:07 -04:00
kjayapra-amd
788ae8595b
SWDEV-295144 - Change uint64_t to size_t to fix failure on 32-bit opencl.
...
Change-Id: I5c28e9c606dec1c956f3f48071d8a0271adfff22
2021-08-22 23:56:08 -07:00
Satyanvesh Dittakavi
924695fb5e
SWDEV-292021 - Fix Device Reset
...
- Device Reset should not purge the allocations that were not by the user
- Addresses QMCPack Test abort due to the removal of all the mem objects during reset
Change-Id: I7b7a123e72bcc985d7e51d17c2382bc618d3e041
2021-08-22 23:56:08 -07:00
kjayapra-amd
e01a24d8b5
SWDEV-295144 - Typecast arena mem ptr(0x2) to void*, otherwise results in wrong constructor overload.
...
Change-Id: I433b70dc70377ae0c5f9b29818703e1ac9d95053
2021-08-22 23:56:07 -07:00
agunashe
d96481fb36
SWDEV-293742 - Update copyright end year VDI repo
...
Change-Id: I69d2fea4a7a43adf96ccea794270e4af991c5261
2021-08-22 23:56:07 -07:00
kjayapra-amd
1c49d8816c
SWDEV-286346 - Implement Arena Memory Object for externally created memory.
...
Change-Id: I8530602d89edf83ad367c52167e48a1559ee1e18
2021-05-18 10:59:52 -04:00
Jason Tang
0d47b06928
SWDEV-1 - Fix warnings when building with clang++
...
Change-Id: Idebd2b618b9a3360147984a0e33852dbe2e65818
2021-02-18 10:02:46 -05:00
Ravi C Akkenapally
0a5f9a3b10
SWDEV-179105 - Stream Operations: Add support for Wait and Write
...
Change-Id: Ibffa1d6d573826b64763da280074a77271d66808
2021-02-15 17:02:38 -08:00
German Andryeyev
089a5cc4ad
Add image view allocation
...
If deferred allocation is disabled, then make sure the image view
is created without a delay. Also reset the allocation state, since
create() method isn't called for a view creation.
Change-Id: I7aa22a62bff18289ade83e56b5d3305ba68c715b
2020-11-18 09:37:30 -05:00
Jason Tang
25cc965c76
Change file mode 755 back to 644
...
Change-Id: I4ba5d66997ffd3331c56674d4bf805160dcdf049
2020-10-19 15:09:32 -04:00