Satyanvesh Dittakavi
57dfaab032
SWDEV-263678 - fix rocHPCG mgpu perf drop
...
Change-Id: I33269fe4f6165d1ed172b19033ab9fcb92f338c3
2021-01-05 00:22:12 -05:00
Sarbojit Sarkar
36a6baf829
Revert "Fix hipmemset to match CUDA behavior"
...
This reverts commit 08f827b28b .
Change-Id: I53052b25bac4956f3efd124eadc936197f2e466a
2021-01-01 00:11:58 -05:00
agodavar
d21cabd890
hipmemcpy2D handle height 0
...
Change-Id: I46bf89e81559c3bfccac0dd0ccd78eee9058c7e3
2020-12-31 01:41:56 -05:00
agodavar
c1dedbd3a0
SWDEV-263180 : Fix null ptr dereference
...
Change-Id: Iefc9fa3f195af45a5c5ebe075056246c930a6d84
2020-12-19 02:02:54 -05:00
Rahul Garg
08f827b28b
Fix hipmemset to match CUDA behavior
...
Make hipMemset asynchronous with respect to the host unless
destination pointer refers to pinned host memory.
Change-Id: I5ba230e0cc622aa076dc94692a4c43a57dd2df7b
2020-12-17 19:13:31 +00:00
Satyanvesh Dittakavi
5b10098da9
SWDEV-258754 Fix seg fault hipMemset with device pointer mapped from hipHostRegister
...
Change-Id: Ifab66b67df172812ebb6eb25c2bac71821f4d614
2020-12-15 07:44:34 -05:00
Satyanvesh Dittakavi
a7b5347c90
Fix hipPointerGetAttributes
...
Modified hipPointerGetAttributes to support hipHostRegister ptrs and mapped device ptrs from hipHostRegister
Change-Id: I2f4cf12e09578768308f644123d6d4bdccbd77a8
2020-12-15 01:40:24 -05:00
Sarbojit Sarkar
7c3b1cca22
Updated review comment
...
Change-Id: Ic7f9f33dd23c975f2a7a0f0d485a3d2a457c62bb
2020-12-13 11:30:28 -05:00
agodavar
77e5c4110e
SWDEV-256810 : hipMemcpy2D API handle width, src/dst pitch 0
...
Change-Id: I4f60b220624f4235c0c3daf68adcd5a496e93696
2020-12-03 10:34:12 -05:00
Sarbojit Sarkar
4c1f86699d
SWDEV-258579: hipMemcpy2D better error handling
...
Change-Id: I09378d6e31da99451e22cbe9276a5ff1ad4a1840
2020-12-03 05:50:42 -05:00
Satyanvesh Dittakavi
ee32c0407a
SWDEV-255614: Fix Caffe2 Test Failure
...
Change-Id: I043caa89b2a43dace7f18c739f30d2a7bfa644ca
Fixes the issue when memcpy DtoH is performed on device 0 where the device buffer
is allocated on device1 and the destination pinned buffer is allocated from device 0.
2020-11-20 10:24:50 -05:00
Rahul Garg
0096a215b4
Fix async flag in hipMemset3DAsync
...
Change-Id: I3dc717c14bdd1d46873e03c687bdf57f9202663e
2020-11-18 20:32:18 -05:00
Sarbojit Sarkar
0af33580e6
SWDEV-256325 : Fix for hipMemset2D crash
...
Change-Id: I1f434602fecd4fb935d2bc72f2c72d6a2d4c45fe
2020-10-20 02:54:29 -04:00
German Andryeyev
d9f655f50e
Report managed memory capabilities
...
Change-Id: I241a42e26ee49fb47dcb3ba87c4bd8fb691dffdf
2020-10-13 16:09:43 -04:00
Aryan Salmanpour
c6904623aa
Fix a seg fault when unallocated mem handle passed to hipIpcOpenMemHandle API
...
also validate the flag argument passed to hipIpcOpenMemHandle API and return
error if it is not equal to "hipIpcMemLazyEnablePeerAccess" (defined to 0)
and it is the only supported flag currenlty for this API.
SWDEV-253462
Change-Id: Ie1c8b79c680a29dc72bf262cf53ae5e011fb1247
2020-10-13 11:14:41 -04:00
Vladislav Sytchenko
ad2d55c144
Revert "Revert "Merge branch 'amd-master-next' into amd-npi-next""
...
This reverts commit 374ead1d19 .
Reason for revert: <INSERT REASONING HERE>
Change-Id: I92ceb171e31026ed1864704cef2fc1497b883ef9
2020-10-05 13:20:58 -04:00
Vladislav Sytchenko
374ead1d19
Revert "Merge branch 'amd-master-next' into amd-npi-next"
...
This reverts commit 73558e3363 .
Reason for revert: <INSERT REASONING HERE>
Change-Id: I53322718dadde2c98f96140b8e260ec7ee9ef721
2020-10-05 13:02:39 -04:00
Julia Jiang
9f1a177dc7
SWDEV-247518-fix HPC multi gpu test performance drop
...
Change-Id: I2f07d9ba183cf88b3845d8d61607a8a0462d015f
2020-09-29 12:04:40 -04:00
Aryan Salmanpour
e46dc7b96d
fix a pagefault when wrong argument (extent) passed in hipMemset3D API
...
Change-Id: I779fc14ccd7c942d1ae0a938ebfd3c2e728ff761
2020-09-25 10:57:37 -04:00
Rahul Garg
a3e5e6360f
Return hipMemoryTypeHost as memory type for hipHostRegistered pointer
...
Fixes SWDEV-253741
Change-Id: I42c2c9df00862157314d5767b6f175a0d2f28b47
2020-09-24 12:27:32 -04:00
Satyanvesh Dittakavi
cede497cb2
Print size_t variables with %zu
...
Change-Id: I02bb073b07e9efd03dea2b76b6ba1bd2f552bcaa
Total Memory is not being printed correctly with %u.
%zu represents size_t variables appropriately.
2020-09-18 11:55:41 -04:00
Sarbojit Sarkar
5c7b7d1dd2
Fix for hipPointerGetAttributes [github#2137]
...
Change-Id: I5295575638ecc4d3b7129552a9c26c6f6a7195fc
2020-09-10 10:51:30 -04:00
Rahul Garg
519ef3f22e
Return error when mismatch in copy kind and ptrs
...
Change-Id: I70e4d06e850843697035b42c5d1d56287c874ac8
2020-08-27 20:53:48 -04:00
Payam
39d681b6be
adding duration to print log for hip api calls
...
Change-Id: Icffa8fcacfb8ba24861d980b9553faeee4efec8c
2020-08-06 06:42:21 -04:00
Sarbojit Sarkar
d768406ec4
Added free device memory info
...
Recently there were few OOM(out of Memory) issues poped. Adding trace will help know genuine OOM issue.
Change-Id: Ie2a56bba95cead24caf1af5c807e73c383c2f5d9
2020-08-06 01:16:36 -04:00
Jason Tang
678b3eeed5
SWDEV-243576 - Fix hipMemcpy regression.
...
If the queue device doesn't match the device on any memory object, use the queue device from the memory object.
Change-Id: I5fdcf00494f8391574f4443332c01788b8da44ef
2020-07-28 03:04:00 -04:00
jujiang
448008348e
SWDEV-242344-hipMemcpyAll failed on MGPU
...
Change-Id: I01671e322c84213964d3d48bd6b5dc704dba731a
2020-07-27 13:30:30 -04:00
Vlad Sytchenko
ed26013ec1
2D/3D copy optimizations
...
SWDEV-244798
If {src/dst} ptr is marked as hipMemoryTypeHost, check if the memory was
prepinned. If it was, upgrade the copy type to hipMemoryTypeDevice to
avoid extra pinning.
Change-Id: Id287ef5b14ae67dfbcf80c4caa1b08a311191948
2020-07-23 11:24:16 -04:00
jujiang
3b7e1b928e
SWDEV-242337-Fix hipHostRegister test failure for MGPU
...
Change-Id: I748dac0c5a47fa00184f065d9ef716573aa70b12
2020-07-20 11:40:49 -04:00
Sarbojit Sarkar
b2b5a821df
host pointer check [SWDEV-243104, SWDEV-243206]
...
Change-Id: Id58dabfe5c35e5f8e42d224e700a431a4a97d003
2020-07-14 07:16:12 -04:00
kjayapra-amd
7233bb75da
SWDEV-240165 - Move all amd::MemObjMap_ reference to ROCclr and only allow base ptr to get ipc handle.
...
Change-Id: I4f11e56ba455a7ce5a066c0e9e49657c5220a211
2020-07-09 21:19:50 -04:00
German Andryeyev
f2102adc99
Remove hipMemcpyDeviceToDevice check.
...
There is hipMemcpyDefault that requires validation also.
Change-Id: I5ae0ffa1c023b7774547acbdc049b84a0c2cb4c5
2020-06-30 12:59:54 -04:00
agodavar
93da1b1f11
SWDEV-239297:hipMemset fix, getMemoryObject with unaligned ptr
...
Change-Id: I37b8139c5099d37b42f34d728a3d694fdf9cb55d
2020-06-23 08:56:09 -04:00
Tao Sang
63051ca2e1
Support numa policy set by user
...
Add hipHostMallocNumaUser flag to hipHostMalloc() in order to support
numa policy set by user.
Change-Id: I6d70ed539a5f97f27187f2242b68849c0e27e4d6
2020-06-19 21:23:58 -04:00
Vlad Sytchenko
205e4c1c5f
Support creating textures from user ptr with offset
...
Change-Id: Ied0af9a842fc6ef067e068a9d89dde63ff5dfce1
2020-06-17 14:10:14 -04:00
Tao Sang
7682ec6a7b
Make hipHostMalloc() respect hipSetDevice()
...
Change-Id: I2410240f91b108c24597ee0fa7cf31e7b1f3ac5d
2020-06-15 23:20:09 -04:00
German Andryeyev
f4211c3905
Initial support for HIP managed memory
...
- Call the new ROCclr interfaces for HMM
Change-Id: I2cd1bf438f712a9e9e328340e7d0c025257ca6c1
2020-06-15 18:10:41 -04:00
kjayapra-amd
20f05c4228
SWDEV-236178 - Reorganizing Platform/Modules code for easy access.
...
Change-Id: Ie8920260ffc4ff01e44b48af8cec9ea5aed1aa9b
2020-06-11 10:11:20 -04:00
kjayapra-amd
2f8e180f01
SWDEV-231701 - Remove amd::memory->svm_ptr from MemObj, instead of the ptr to the object.
...
Change-Id: I5aab450a2320cfa5417c284e2a8454102df6f99d
2020-06-10 11:49:02 -04:00
Saleel Kudchadker
2e8c1e9f24
Modify HIP_RETURN to print useful details
...
Change-Id: I23892c2d9a738b0298cdf24106d688a792937c73
2020-06-06 02:05:21 -04:00
agodavar
39ee03f64c
hipMemset dont enqueue command if size bytes is 0
...
Change-Id: I63bf896f9f23edf254acdf7a8c11c92f8b5ac039
2020-05-30 10:33:44 -04:00
kjayapra-amd
aae3e13296
SWDEV-229840 - fixing return HIP_RETURN instances in hip.
...
Change-Id: I48763d7268bf5649bf2242c962c185f5f4af159c
2020-05-29 09:43:58 -04:00
kjayapra-amd
b44ae437bc
SWDEV - 237467 - Return proper hip error codes incase of ROCclr IPC API failures.
...
Change-Id: I2cc8da543f70bb3d8b82520fa9b2f509d20ce3c0
2020-05-23 10:51:37 -04:00
Dittakavi Satyanvesh
c068778062
hipIpcCloseMemHandle checks the status of IpcDetach
...
Change-Id: Ifbe8e5bbda610a1007f881627d0da1c874d03682
2020-05-23 08:47:36 -04:00
Sarbojit Sarkar
87d1101a33
added null check
...
Change-Id: I7631965286bad5684bacb7e38c63031b5c691dc0
2020-05-20 23:08:55 -04:00
agodavar
458a966aa1
Fix hipMemset for unaligned ptr, correct offset required by ROCclr per aligment and testcase to validate unaligned ptr
...
Change-Id: Ib1a0f9d1556d09cf72a12a90cad2e27c6d9c6a1c
2020-05-16 02:38:14 -04:00
Evgeny
5abb8e1a68
API tracing instrumentation
...
Change-Id: I257409b9fe299b009ded3e3a43287322d5f93a70
2020-05-14 11:03:09 -05:00
Christophe Paquot
3ca2d1e6a9
Don't add a null command to waitList in hipMemcpy
...
SWDEV-235345
Change-Id: Ib1abd0ba6414d081891a9f5209df083c45734aee
2020-05-08 12:43:41 -07:00
Payam
c5f76c3de3
name change vdi to rocclr
...
Change-Id: I06d198bbb4a499e153b290b73a92afed3553b252
2020-05-06 09:14:30 -04:00