Grafico dei commit

340 Commit

Autore SHA1 Messaggio Data
Jaydeep Patel 027f71ccfb SWDEV-374395 - Correct rhs.
Change-Id: I433d60344a6d23bc48f4db58d5501af89bc1989c
2022-12-20 11:38:11 +00:00
Ioannis Assiouras 30e740023b SWDEV-369548 - Disallow opening an ipc mem handle in the originating process.
Change-Id: Icce5e41a220566141bd7d92b7199d477f60bed8e
2022-12-14 04:52:21 -05:00
kjayapra-amd f7c194edf7 SWDEV-371904 - Adding pseudo fine grain flag to hsa memory allocation for device fine grained memory.
Change-Id: I8c605d6bc3ac905bfffc6de3a56911151ef0e663
2022-12-12 11:40:00 -05:00
Ioannis Assiouras 337976febf SWDEV-369581 - Convey copy API metadata to ROCclr
Change-Id: I6fcd2c2dbec887199de538326a7826bd29a25ca0
2022-12-09 00:27:35 -05:00
Jaydeep Patel e2279b3869 SWDEV-366086 - Validations for negative scinerios.
Change-Id: Icca87de775bf7f8c4d18f911f7bee21fafdcff55
2022-12-06 21:27:37 -05:00
Rakesh Roy cbc3a0a652 SWDEV-348820 - Fix hipPointerAttribute_t incompatibility
- Use hipPointerAttribute_t.type instead of hipPointerAttribute_t.memoryType

Change-Id: I3bf1c0758bdae987213ba7de62247dd420ef4cc9
2022-11-29 00:53:24 -05:00
Maneesh Gupta 1c45f257b9 Revert "SWDEV-363069 - Disable sync force for MT"
This reverts commit 52ff4368e5.

Reason for revert: SWDEV-365075, SWDEV-367163, SWDEV-367164, SWDEV-367173

Change-Id: Id2924c60e46e9879038ded358f777c71cd95b2c1
2022-11-17 01:04:44 -05:00
German Andryeyev 55d085ca8c SWDEV-364457 - Don't attempt adding duplicates into the memory map
KMD can enable hipHostRegister optimization  with HMM path.
That will make CPU and GPU pointers matching.

Change-Id: Iad96ceada5cfa3bada20452b906f744f9dbaebbe
2022-11-03 10:04:12 -04:00
pghafari 895473e8d8 SWDEV-362280 - retur NotSupoorted for hip-vulkan
hip-vulkan semaphore on rocm is not supported

Change-Id: I6e01c4f5b192cfb17546a29a1cb17f320c4b1adc
2022-10-24 13:36:18 -04:00
German 52ff4368e5 SWDEV-363069 - Disable sync force for MT
hipMemcpyAsync doesn't require any forced sync even for sysmem

Change-Id: I83951f6118e84d79c74d5671df62678c5db085a8
2022-10-24 10:59:07 -04:00
pghafari d7b27989b4 SWDEV-356557, SWDEV-356558 - matching cuda return
Change-Id: I3b7d50e07bd437bd23a495439d66940ff30f7f07
2022-10-19 09:17:28 -04:00
Ajay be80bf5406 SWDEV-353548 - assert with different behavior for Release vs Debug
assert statement behavior
-Debug: crashes tests with SIGABORT
-Release: continues silently without

Change-Id: I7578eb16a7391ff7f9d68f1cae3bcea7f8225579
2022-10-11 14:00:28 -04:00
Sourabh Betigeri aeeab1c975 SWDEV-357246 - Fixes to return with a error code instead of segfault in alloc failure case
Change-Id: Ie18d50f2f7ef3f4b2c0153152fca057232c1f8a2
2022-10-04 09:38:42 -04:00
Jaydeep Patel e5dff9a140 SWDEV-351054 - Move validation for w & h to hipMemAllocPitch.
Change-Id: Ia624fc99e797baf88dc029d7e36bb80df1bd7d12
2022-09-07 01:00:49 -04:00
Jaydeep Patel cf57f20407 SWDEV-351282 - Null check for desc.
Change-Id: I69d534b6f97442c69b66154476a2637e99c3df77
2022-08-24 13:04:56 -04:00
Jaydeep Patel efadc772db SWDEV-351033 - Change error code to hipErrorHostMemoryNotRegistered
Change-Id: I930bb1e2787e284f335689d1900bdd08d328272e
2022-08-24 07:14:15 -04:00
Jaydeep Patel 349ade7b2e SWDEV-351220 - Revert 366050b14f
Change-Id: I08a06307271d0eccdf4b4876dea5ec70ace07d39
2022-08-24 00:08:53 -04:00
Sarbojit Sarkar b39a56be25 SWDEV-2 - clean-up for hipMemset and other memset APIs
Change-Id: I0270be2843ee5f79c1c476cec7807c0b920869de
2022-08-18 12:04:16 -04:00
Jaydeep Patel adfb40ed42 SWDEV-351285 - Change error.
Change-Id: Ia841a24cf774b2e2d8f6b6e37f3d8f43cb73f8df
2022-08-18 07:07:56 -04:00
Ajay 113cc9ae2a SWDEV-344168 - hipVmm functionality memory check fix
Change-Id: Ia1de96ac9dbcbfb6a94a234aec3bf6cb51961799
2022-08-16 11:04:56 -07:00
Jaydeep Patel 5b6ffb6380 SWDEV-351200 - Validate desc.
Change-Id: Ic8690c9a2134ca42f4bec626ca787587a32856fb
2022-08-11 07:17:21 +00:00
Jaydeep Patel 35051e778d SWDEV-351031 - Any bit other than the rightmost 4 bits shouldn't be set
Change-Id: I6c834f491ce393eb37259eabc603220c5b5f164e
2022-08-10 23:30:22 -04:00
Jaydeep Patel 366050b14f SWDEV-346382 - Don't fall back to sync for hipMemcpyAsync from host to device.
Change-Id: I5aab9041f87c549a03c86e95a39bfa437126a99b
2022-08-05 02:32:55 -04:00
Sarbojit Sarkar 0444d20e07 SWDEV-338732 - Made hipMemset* default async
Change-Id: I0ebf6473b6825162fc828bb8cac47743e14ffd19
2022-08-02 07:14:57 -04:00
sdashmiz d0b9e0a4ff SWDEV-346423 - avoid race condition
- move removing the array from array set earlier to avoid race condition

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I9003c991e3e0f47ed0509ddfdbeaa145b5a1e0f1
2022-07-25 15:17:10 -04:00
Sarbojit Sarkar 7d23707817 SWDEV-346461 - Fix for QMCPack tes failure
Change-Id: I92979f0c16766c28da6b14b6e17364749fe39fe3
2022-07-19 02:13:07 -04:00
Jaydeep Patel 6b3b62f49e SWDEV-343168 - Clean ihipMallocPitch
Change-Id: Iab1c10ac2aea635ca10cc8bc98141df409ec917c
2022-07-14 01:15:08 -04:00
sdashmiz 848ae2c06b SWDEV-345021 - add check for pointer
add check for pAllocateArray

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I6c91295c1fe4cffdf22f6b8c07fe0a592c2f4f70
2022-07-13 10:21:48 -04:00
Sarbojit Sarkar e9961fedd8 SWDEV-323441 - Phase-II : per thread default stream
Change-Id: I3c796ddaebcf0223d7faf50c425c1674de215f9d
2022-07-11 12:22:23 -04:00
Rakesh Roy 4e6e175f16 SWDEV-344168 - Fix hipMemsetAsync API crash
- Return hipErrorInvalidValue if memset size + offset is crossing
  allocated memory size

Change-Id: I18bd7bcf90ccfce992acb4535a00a8560c0f684b
2022-07-11 02:23:37 -04:00
Jaydeep 4aa1ffcc45 SWDEV-343168 - return invalidValue if totalsize is more than device's global memory.
Change-Id: Ie052b9b75c9813d040fc23959df4146af98b96ed
2022-07-11 02:18:54 -04:00
Ajay 01ea934b3e SWDEV-340506 - Unit_hipCreateTextureObject_Pitch2DResource fix
Change-Id: I85431036818a3eb24100b1660e806a1c80d847eb
2022-07-07 13:05:08 -04:00
Rakesh Roy 62069a5ae8 SWDEV-342007 - Fix hipArray Allocation APIs
- Capture error status of ihipImageCreate
- Return hipErrorOutOfMemory when image creation fails

Change-Id: If127a515447cc362d55fccd3eae304271da252d5
2022-06-30 00:28:47 -04:00
Saleel Kudchadker cf07633dc8 SWDEV-301667 - Early return if src == dst for 1D copy
Change-Id: Icaa334c6579bb5e70e92347f8bc37edcf5adf796
2022-06-28 14:21:40 -04:00
Jaydeep 26d8603bf3 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: I5f9eb55cede5dff5a9e428d41fe081f043df7049
2022-06-21 00:10:19 -04:00
Jaydeep 1032581ded SWDEV-336548 - Check for valid hipArray pointer in hipFreeArray
Change-Id: Icf0d47eeca7b5dd390a6a9c53b622b3680688ca4
2022-06-18 00:56:33 -04:00
Sourabh Betigeri 3ca4c7edf7 SWDEV-341994 - Fixes to returns the right error code to match CUDA spec for hipHostUnregister()
Change-Id: Ied9b5a15e841d4c201042d116b0ed535f07c17fc
2022-06-17 12:16:52 -04:00
Jaydeep 0ad84364e0 SWDEV-336542 - Return InvalidValue error for hipArrayCubemap flag.
Change-Id: I4ca996d7643158d5ccf8cb48ceaead3ceaf9aedf
2022-06-17 00:25:18 -04:00
Jaydeep Patel a527c241a2 SWDEV-333581 - Pass free and/or total size_t as nullptr.
Change-Id: Ib83467a351b6df22ef641c0e82284c7e0fac32e3
2022-06-15 23:46:34 -04:00
haoyuan2 cfe1efd6b0 SWDEV-338564 - fix test hang issue
only check task finish with valid queue

Change-Id: Ib2bd1360235a07f825a09c57453ccbff7951f17f
2022-06-14 15:34:30 -04:00
pghafari 8e28413a9e SWDEV-337703 - nullptr check for hipMallocArray
Change-Id: I3b1077e236ccda346d337109014ef7fd2e693ec6
2022-05-31 11:19:59 -04:00
pghafari 2870b7ddd5 SWDEV-336550 - added nullptr check for svm
Change-Id: Icfd7dab1c7818958108385261542526d4545721d
2022-05-30 16:58:45 -04:00
Rakesh Roy 01a5ddebe6 SWDEV-337119 - Validate width isn't exceeding either dpitch or spitch in
ihipMemcpy2D

Change-Id: I8ac68e033762616a42585b26f0b3aa5bbb29ce9c
2022-05-18 23:25:14 +05:30
Satyanvesh Dittakavi 8a333a989b SWDEV-332606 - SWDEV-333585 - Fix hipMemcpySymbol* and hipGetSymbol* APIs
This also fixes the QMCPack staging (SWDEV-335826) test failures related
to hipMemcpyToSymbol

Change-Id: Icc3ff04fb1e17999f5bddf12e1a7266e2289032f
2022-05-16 04:27:02 -04:00
Rakesh Roy 84c46047e5 Revert "SWDEV-332606 - SWDEV-333585 - Fix hipMemcpySymbol* and hipGetSymbol* APIs"
This reverts commit f1fb612774 due to QMCPack test failure (SWDEV-335826)

Change-Id: I40397b345aa60f43afc17853bc72426daf385cf7
2022-05-10 11:20:36 +05:30
Rakesh Roy 4e86d538e5 SWDEV-333598 - Use flags field of amd::Memory UserData for hip flags
Change-Id: I492c7fe54dba4380fcc53eed1df36bf5ac0af852
2022-05-06 13:42:19 +05:30
sdashmiz 8ed471f210 200~SWDEV-333583 : hipMallocArray bad channel format
- channel format should be consistent accross parameters

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I1e7680ab9262a66e7bea4aaa21f061044b0f7956
2022-04-29 09:15:41 -04:00
Satyanvesh Dittakavi 06203c251e SWDEV-330667 - SWDEV-333599 - Fix hipHostRegister and hipMallocPitch APIs
- hipHostRegister should return hipErrorInvalidValue when size is 0 or
size doesn't match the actual allocated size
- hipMemAllocPitch should return hipErrorInvalidValue when width or height
is 0 and elementSizeBytes should be 4, 8 or 16

Change-Id: I43c9fe4ac1ef0a6ac2f953908d301508a7bc5aa3
2022-04-28 13:07:08 +00:00
Ajay 1abd0d6ecf SWDEV-332522 - ipcEvents Avoid deadlock b/w streamWait & Event
Using device write to set 0 to signal while streamWaitEvent is checking
the signal.
Use app in SWDEV-314307 to verify this fix
Requires vdi #668012 change to work

Change-Id: Ie329a29cfaeb5d144b92cda36773646f913ca73d
2022-04-26 11:59:01 -04:00
Satyanvesh Dittakavi f1fb612774 SWDEV-332606 - SWDEV-333585 - Fix hipMemcpySymbol* and hipGetSymbol* APIs
- hipMemcpy[From/To]Symbol APIs to return hipErrorInvalidMemcpyDirection
if the copy kind is incorrect
- hipGetSymbolSize and hipGetSymbolAddress APIs to return hipErrorInvalidValue
if the pointer is null

Change-Id: I32f428045c804b1e4f648e91b507f749f60c09d0
2022-04-25 08:25:29 -04:00