Ioannis Assiouras
a8edb8d467
SWDEV-508435 - Use the stream of the src/dst image memory object in A2H and H2A commands
...
Change-Id: I9b776a54760a4633d5f84cf7b467d2d3ba8cbdde
2025-02-07 13:38:31 -05:00
Marko Arandjelovic
db8527f655
SWDEV-489619 - Fix memcpy tests with capture stream enabled
...
- Added missing validation as graph node should not be created
if parameters are invalid
- Fix conversion of input params to graphNode params
Change-Id: I37ab04942b5fb2eb07386850cb7dbbf26f9ca967
2025-01-16 10:31:04 -05:00
Marko Arandjelovic
7e152bb0f3
SWDEV-506234 - Refactor validation in hip_memory
...
Change-Id: I9d69695e4b6668e6de00f1f6b060862872358340
2024-12-31 00:35:25 +02:00
Ioannis Assiouras
e8b2fdab96
SWDEV-483134 - Remove hipExtHostAlloc API
...
Change-Id: I60777ef5c56b60dd8100d0d794ca10fb3b96a555
2024-12-16 17:13:49 -05:00
Saleel Kudchadker
537f2fffc9
SWDEV-301667 - Improve logging for hip_memory
...
Change-Id: Id624b2c91e6b701bc0ee561a0c193f2c66654890
2024-12-12 14:42:00 -05:00
Jaydeep Patel
c8afd7109d
SWDEV-496544 - Sync with stream if it is different than srcMemory stream.
...
Change-Id: I9c0f94a9531555278a51202ec7203961e1344c2e
2024-12-12 06:17:39 -05:00
Ioannis Assiouras
e80442fdbf
SWDEV-497759 - Fix memObj offset computation for hipHostRegister on Windows mgpu
...
On Windows, hipHostRegister may add a single object in the MemObjMap
that maps to memory that is allocated on different devices.
This change ensures that the offset that is returned from
getMemoryObject() is computed relative to the memory that is allocated
on the current device.
Change-Id: I5fd3af200bf6f4926fdeaea12dcb9d0154d3a843
2024-12-05 16:18:10 -05:00
Sebastian Luzynski
019abdc3bd
SWDEV-465085 - replace asserts inside API calls
...
This change replaces some asserts, that were only available in debug
mode, with standard error handling.
Signed-off-by: Sebastian Luzynski <Sebastian.Luzynski@amd.com >
Change-Id: I112f9e56f921abd72daf0d11e4ecdcb7b1a9f9e6
2024-11-29 04:11:39 -05:00
Marko Arandjelovic
e94d9b1763
SWDEV-489617 - Make any host to any host memcpy synchronous
...
Change-Id: I2a29d1a433508f9b4b67b48c47bb4a4eebac0cb3
2024-11-29 03:48:28 -05:00
Satyanvesh Dittakavi
e3b8754448
SWDEV-477584 - Match hipGetLastError behavior with CUDA using env var
...
Change-Id: I4c5acff180ae904028f7c5fdf4e109ffd1f0c4ef
2024-11-28 01:33:52 -05:00
Maneesh Gupta
ec6f83b544
Revert "SWDEV-475482 - hipTexObjectCreate align with cuda"
...
This reverts commit efce2f77c4 .
Reason for revert: Even though this change is valid, this would break backward compatibility.
Change-Id: I9c7cab83198c8d5c8485b11194099162e3e7a874
2024-11-21 00:55:32 -05:00
Rahul Manocha
efce2f77c4
SWDEV-475482 - hipTexObjectCreate align with cuda
...
Support zero width and height for hipTextObjectCreate to align
with cuda.
Change-Id: I5d4c48625faf5f060ed2a7e634ec65e4ecac9da5
2024-11-19 23:28:55 -05:00
Saleel Kudchadker
582dc7dd6d
SWDEV-446123 - Revert "Match hipGetLastError behavior with CUDA using env var"
...
This reverts commit 5f477900a3 .
Reason for revert: <INSERT REASONING HERE>
Change-Id: I11a456655393bcf4b82d749ce7259bc1b78d1424
2024-11-08 20:35:13 -05:00
Satyanvesh Dittakavi
5f477900a3
SWDEV-446123 - Match hipGetLastError behavior with CUDA using env var
...
Change-Id: Iaec697c1304d746376ecf2bfe2ad683b15ee189f
2024-11-07 12:02:34 -05:00
Ioannis Assiouras
5da72f9d52
SWDEV-490323 - Fix validateMemAccess in hipMemset
...
Changed the validation to occur on the sub-object rather than the parent.
Change-Id: I87bf5ef3526d0db9304099ef9ac1a5494e9a01a9
2024-10-10 18:08:28 -04:00
Todd tiantuo Li
41dc4545fc
SWDEV-472357 - support Rect copy with staging buffer for 2D & 3D memcpy in PAL
...
Change-Id: Ie32f3e5a6fa077f6b2db20fc1ab1e2e0da8344cb
2024-10-10 18:00:19 -04:00
Jaydeep Patel
5ccc140e1b
SWDEV-485866 - Return OOM if stream creation fails due to insufficient memory.
...
Change-Id: I4e57ecc81921bde274bb6a4e0890f0fc6a17955a
2024-10-10 00:44:54 -04:00
Saleel Kudchadker
35e03ea0d0
SWDEV-301667 - Logging upgrades
...
- Use AMD_LOG_LEVEL_SIZE in MBs to set log file size truncation, by default its 2048 MB
Change-Id: Ia2f87e8c6b94148e30edfb602b279f93630817c3
2024-10-04 13:26:25 -04:00
pghafari
b07178618c
SWDEV-467263 - Allow hipMalloc to use sys memory
...
PAL supports allocating from system memory once device memory is used up
or allocation is larger than the device memory.
Change-Id: Iccd3377e95a6cc6d23e45d4738a17af8b9ee32d7
2024-10-03 11:14:08 -04:00
Anusha GodavarthySurya
742b0210d3
SWDEV-477324 - Capture Memcpy1D pinned H2D D2H
...
Change-Id: I1f4744f20a9caeed005ec68da44e5fde737e09f7
2024-09-30 01:01:30 -04:00
German Andryeyev
29cc678d8d
SWDEV-483586 - Unblock staging H2D transfers
...
Although unpinned copies require synchronizations
in HIP, runtime can avoid syncs for H2D copies with
a staging buffer
Change-Id: If2203c6bc0cbd89742823688dc8e89e9acd873b2
2024-09-21 10:25:27 -04:00
Anusha GodavarthySurya
870842201d
SWDEV-485904 - Fix virtual,physical mem obj leaks
...
Change-Id: Ie0456b5dcfec206ae54a6aabfc2a15a620cac693
2024-09-19 23:04:20 -04:00
Saleel Kudchadker
8c84a20b01
SWDEV-301667 - Improve logging
...
Change-Id: I3fa06791b7ac73d84b8a9586e6b3435fa8858d25
2024-09-19 15:09:03 -04:00
kjayapra-amd
12a39fbf22
SWDEV-480772 - Remove name variable from amd::Monitor class.
...
Change-Id: Ie2a4fa44f485786227230f8a892e090e718aa30e
2024-09-19 11:55:01 -04:00
kjayapra-amd
6211037f63
SWDEV-439234 - Access check before memcpy and kernel operations.
...
Change-Id: I7057125c03460db205409e19980145298c190fe2
2024-09-06 14:30:00 -04:00
Tao Sang
4b211f7272
SWDEV-474989 - Fix issues of texture tests
...
Change-Id: Ie1d874742b804f82ceda68864fa54f5d59c092b8
2024-08-27 11:29:43 -04:00
Ioannis Assiouras
2c84211b58
SWDEV-470372 - Added hipExtHostAlloc API
...
This change adds a new HIP API `hipExtHostAlloc` which preserves
the functionality of `hipHostMalloc`.
Change-Id: I13504c6fc13465ddd7aed329795bb4f2fef1baff
2024-08-27 08:26:03 -04:00
kjayapra-amd
d7b097c994
SWDEV-478097 - Check for parents size in case of VA Mem object.
...
Change-Id: Icfdeabeb178c0dcc8c3a4bc48eec40067985794e
2024-08-22 14:18:51 -04:00
Ioannis Assiouras
1e4c60f286
SWDEV-470372 - Un-deprecate hipHostAlloc, comply with cuda and introduce hipHostAlloc flags
...
Change-Id: I8165342825dfe07b6e9edc492d0166d0a03be62d
2024-08-15 18:25:22 -04:00
Julia Jiang
e988e5e448
SWDEV-436608 - Un-deprecate hipHostAlloc()
...
Change-Id: I71393e6f536ba84b4e172acf54ba4f72350e2ae8
2024-08-01 11:45:20 -04:00
Marko Arandjelovic
7d0ff387e9
SWDEV-461791 make memcpy synchronous for D2D if src&dst ptrs have SYNC_MEMOPS attribute
...
Change-Id: I603081d21e5eb3c73111845e350d8fa2ba5a7733
2024-07-30 11:46:55 -04:00
Jaydeep Patel
7d7db316b3
SWDEV-465088 - Bypass memcpy kind check for H2H memcpy if XNACK is enabled.
...
Change-Id: I3e9b23dfb1aedeaf5ea0f26668caddb277ead809
2024-07-01 01:03:42 -04:00
Rahul Manocha
f309d49b32
[SWDEV-468553] - Add stream validation checks for memcpy APIs
...
Change-Id: Ic4495d10c8b2d2ac90f7093a08209d9cb373d2a6
2024-06-24 12:47:31 -04:00
taosang2
1566ff7639
SWDEV-465162 - Fix some issue with image support
...
Fix some small issues regarding image and mipmap support
Change-Id: I8e64223d44f37c2dbb115cbb343441a48021ba7b
2024-06-18 16:38:24 -04:00
Jaydeep Patel
774a10201f
SWDEV-465461 - Use command's queue instead as it might be changed while constructing memcpy command on MGPU.
...
Change-Id: Ia6ac40289e1eea320925203cbd52b30f3b64ad2b
2024-06-05 06:47:49 +00:00
Jaydeep Patel
f682ea7b3b
SWDEV-461274 - Use GetDeviceById method.
...
Change-Id: I82a3feb8ecb5f151e09d0dae814b518fb84426e6
2024-05-28 06:31:10 +00:00
Ioannis Assiouras
0eb4ba9883
SWDEV-462570 - synchronize the streams before ipcDetach
...
Change-Id: Ic007be31913496af0414d983f906b704c32ac02c
2024-05-28 06:31:10 +00:00
sdashmiz
627ccfa502
SWDEV-429053 - Add check for StreamLegacy
...
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com >
Change-Id: I402185a3b81935aaa1c8c4963407b8de21c72d8a
2024-05-28 06:31:10 +00:00
Saleel Kudchadker
2d7912dc01
SWDEV-460080 - Do not wait for host side command complete
...
- awaitCompletion would wait for host side command compelete(aka
cpuWait). The correct way is to check the completion signal and if not
dispatch a marker that has a signal.
Change-Id: I0f4f23c7ea68c329bf1d5f05e9735f631e5e3808
2024-05-28 06:28:17 +00: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
kjayapra-amd
49b4aef8c9
SWDEV-413997 - Handling cases where multiple phys_mem is mapped into a single virtual address.
...
Change-Id: Ie678e607a64f2e5c35a10b9083185f041c5527ac
2024-04-28 08:28:12 -04:00
Satyanvesh Dittakavi
8f7acbdadb
SWDEV-446610 - Attribute HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS should return the correct value
...
Change-Id: Ieced2ee61bba28f2d1df96893a661287b0a5c7b7
2024-04-19 14:40:09 -04:00
sdashmiz
d511e57257
SWDEV-441603 - Correct dst device
...
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com >
Change-Id: Ie60aa598dd73df66cdf02c1d96daf2dfccba7a59
2024-04-17 09:21:06 -04:00
Anusha GodavarthySurya
ea4f09e8c0
SWDEV-452787 - correct hipDrvGraphAddMemcpyNode check
...
Change-Id: Id58f982edd4f17d675f7a0f61a9b4dea0baebd9b
2024-03-29 00:56:12 -04:00
Ioannis Assiouras
be2bdabb76
SWDEV-430437,SWDEV-434702 - Split the streamset per device
...
Change-Id: If1bcca45825c9899462bb95ed6f637f5af806cc8
2024-03-18 19:08:52 -04:00
sdashmiz
315d0fc46e
SWDEV-447458 - remove check for image support
...
- remove the check from hipmallocpitch
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com >
Change-Id: Ife3a95381be703b1c1b7492abfd4432c4a8141c8
2024-03-11 11:39:14 -04:00
Satyanvesh Dittakavi
821ae6a103
SWDEV-426272 - hipPointerGetAttribute shouldn't segfault when host ptr is passed
...
Check the pointer if its present in the arrayset before trying to dereference
it as it can cause access violation if the pointer is allocated using malloc
Change-Id: Ida72b9015dc22269fc1fbe0728e66e3de29fda3d
2024-02-21 16:37:21 +00:00
Ioannis Assiouras
5b72582474
SWDEV-443018 - Restrict input range for value argument in hipPointerSetAttribute
...
Change-Id: I17b6448bf49aed49315a0b4c1426dcbe011735d9
2024-02-05 05:08:11 +00:00
Satyanvesh Dittakavi
9fd8b4d3f1
SWDEV-440029 - Fix hipMemcpyFrom/ToSymbol directions allowed
...
Change-Id: Ib0b3d737cd5d297ac2d3c1ba549902b96e29c18c
2024-02-05 05:08:11 +00:00