Wen-Heng (Jack) Chung
e34b0ccd48
Address code review comments to use hipDeviceptr_t
...
[ROCm/clr commit: 8b7baa0bd9 ]
2019-03-05 05:51:05 +00:00
Wen-Heng (Jack) Chung
2706bf46f2
Add hipMemsetD32 and hipMemsetD32Async
...
Add 2 extra memset functions which fills memory with integer-typed data
Also change the parameters of ihipMemset to better explain the semantic
[ROCm/clr commit: 392271f4db ]
2019-03-04 17:00:33 +00:00
Wilkin Chau
19b361281a
Fix hipMemset3D test
...
Calculate the allocated size based on the width, height and depth.
[ROCm/clr commit: 99540373cf ]
2019-02-28 22:42:46 +00:00
Evgeny
a4df59d819
fixing HSA_INIT_API cid args
...
[ROCm/clr commit: 47625cb8fd ]
2019-01-16 23:45:44 -06:00
Maneesh Gupta
f096437107
Merge pull request #797 from gargrahul/fixhipPointerGetAttributes
...
Fixed hipPointerGetAttributes for hostmalloced ptr
[ROCm/clr commit: a778f7cdf7 ]
2018-12-12 10:16:07 +05:30
Maneesh Gupta
30ce297635
Merge pull request #608 from gargrahul/add_pinned_2d_sdma_copy
...
Added support for pinned 2D SDMA copy
[ROCm/clr commit: 6ce99b066c ]
2018-12-12 07:44:16 +05:30
Rahul Garg
514e5a41e3
Fixed hipPointerGetAttributes for hostmalloced ptr
...
[ROCm/clr commit: 77fd517e09 ]
2018-12-08 01:42:08 +05:30
Maneesh Gupta
938c731b27
Merge pull request #760 from eshcherb/roctracer-hip-frontend-181113
...
Roctracer hip frontend 181113
[ROCm/clr commit: 99bb89b756 ]
2018-11-23 11:08:25 +05:30
Maneesh Gupta
f0976b3c37
Merge pull request #748 from mkuron/getsymboladdress
...
Implement hipGetSymbolAddress and hipGetSymbolSize
[ROCm/clr commit: 40d3184dd1 ]
2018-11-21 10:32:01 +05:30
Michael Kuron
4b77b5c1ba
Merge branch 'master' into getsymboladdress
...
[ROCm/clr commit: e9b88711e2 ]
2018-11-20 12:03:22 +01:00
Rahul Garg
796765d53e
Fix hipHostRegister
...
[ROCm/clr commit: aae87e21d2 ]
2018-11-17 05:38:35 +05:30
Evgeny
96b7f0404e
renaming HIP_INIT_CB_API to HIP_INIT_API
...
[ROCm/clr commit: e362688adf ]
2018-11-13 15:33:26 +00:00
Evgeny
7519b3f75e
adding activity prof layer
...
[ROCm/clr commit: 084a68be63 ]
2018-11-13 15:33:26 +00:00
Rahul Garg
696a6df141
Fixed hipMemcpyToSymbol doesn't work on GPU other than device 0 SWDEV-166881
...
[ROCm/clr commit: ac32566d9b ]
2018-11-13 00:49:20 +05:30
Michael Kuron
a0c35ab823
Use correct trace macro in hipGetSymbolAddress/hipGetSymbolSize
...
[ROCm/clr commit: 357dc8be11 ]
2018-11-06 20:46:30 +01:00
Michael Kuron
a857354072
Introduce ihipModuleGetGlobal
...
[ROCm/clr commit: 4da2d92281 ]
2018-11-06 09:54:34 +01:00
Michael Kuron
a38366c81e
Implement hipGetSymbolAddress and hipGetSymbolSize
...
[ROCm/clr commit: 0b6f5791f8 ]
2018-11-04 10:39:34 +01:00
Siu Chi Chan
e26a728173
Move the global arrays for hip malloc/free
...
from a header into a source file such that
there's only an unique copy in an executable
and prevent wasting static memory on the host
Change-Id: Id5b62766f77809c8d7b47892cb7149c490dcbdb9
[ROCm/clr commit: cdd0109e70 ]
2018-11-01 16:20:35 -04:00
Anton Gorenko
600e5cdb58
Fix allocation size of arrays with multiple and/or non-32-bit channels
...
hipMallocArray and hipMalloc3DArray must use sum of bits
of all components.
[ROCm/clr commit: 6e6297f3cd ]
2018-10-29 18:12:00 +06:00
Rahul Garg
e0efc8a09e
Return hipSuccess when sizeBytes=0 in hipMemset
...
[ROCm/clr commit: bd27310127 ]
2018-09-26 12:47:36 +05:30
Rahul Garg
17e35e382c
Added support for pinned 2D SDMA copy
...
[ROCm/clr commit: 5eb11b58f3 ]
2018-07-31 14:05:35 +05:30
Sarunya Pumma
57c15b815d
Remove device mapping from shareWithAll memory
...
When shareWithAll memory (e.g., host memory) is allocated, set appId
in hc::AmPointerInfo to -1 to indicate that this memory is not mapped
to any device. Peer checking in ihipStream_t::canSeeMemory is not
necessary if memory is shared with all devices. Thus, it is skipped.
Note that earlier host memory is always mapped to device 0 and HIP
always performs peer checking for all kinds of hipMemcpy. Since the
peer checking process requires context locking, hipMemcpy from/to host
memory always grabs device 0's context lock. Therefore, if there is
another thread holding the context lock of device 0 (e.g.,
hipDeviceSynchronize on device 0), hipMemcpy will have to wait for the
lock until it can actually perform memcpy. This can significantly
deteriorate execution performance.
Signed-off-by: Sarunya Pumma <sarunya.pumma@amd.com >
[ROCm/clr commit: 84aadb9274 ]
2018-07-28 23:15:16 -07:00
Rahul Garg
a796eedde9
Revert "Use memcpy kernel for all pinned memory cases in hipMemcpy2DAsync"
...
[ROCm/clr commit: f554e48db3 ]
2018-07-02 14:32:11 +05:30
Rahul Garg
1c2acf1467
TEMP- fix memcpy2dAsync for trsm issue
...
[ROCm/clr commit: 007e2a4b5f ]
2018-06-15 16:08:29 +05:30
Rahul Garg
a41cb78337
Fix stream resolution in memcpy2dasync
...
[ROCm/clr commit: 2ae3be9773 ]
2018-06-14 11:58:56 +05:30
Rahul Garg
dfe8629088
Fix retrieved locked ptr offset
...
[ROCm/clr commit: 68554e155b ]
2018-06-13 23:10:05 +05:30
Maneesh Gupta
e34247ca19
Merge pull request #497 from gargrahul/fix_memcpy3d_fastpath
...
Fix hipMemcpy3D for fast path
[ROCm/clr commit: 53037472ff ]
2018-06-06 14:44:02 +05:30
Rahul Garg
914a0aaf9c
Fix hipMemcpy3D for fast path
...
[ROCm/clr commit: 163d4a5b03 ]
2018-06-05 18:54:33 +05:30
Rahul Garg
3a6e8aadbd
Fix depth value for 3D allocations
...
[ROCm/clr commit: fa6ce7a724 ]
2018-06-04 18:00:22 +05:30
Rahul Garg
84cb355df6
Fix memcpy2D for malloc+ hostRegister
...
[ROCm/clr commit: a3609eaf61 ]
2018-05-31 13:14:27 +05:30
Rahul Garg
0ab5c9d6f1
Use 64x4 grid dims
...
[ROCm/clr commit: 27e0566c3a ]
2018-05-24 23:51:52 +05:30
Rahul Garg
439655d213
Clean up and fix remaining bytes copy
...
[ROCm/clr commit: aed2653857 ]
2018-05-24 23:30:27 +05:30
Rahul Garg
4fc64ff4c5
Fix memcpy2d kernel dims
...
[ROCm/clr commit: 53a7c61e9b ]
2018-05-24 17:00:12 +05:30
Rahul Garg
4e52a634a1
Correct remaining bytes in copy 2d kernel
...
[ROCm/clr commit: 96b4618d26 ]
2018-05-24 08:27:24 +05:30
Rahul Garg
432467d88b
Optimize memcpy2D kernel use
...
[ROCm/clr commit: 2c3d1498d4 ]
2018-05-23 14:43:47 +05:30
Maneesh Gupta
335dad2feb
Merge pull request #464 from gargrahul/fix_memcpy2d_pinned_mem_case
...
Fixed memcpy2D for pinned memory case using 2D kernel
[ROCm/clr commit: 7042fe6067 ]
2018-05-22 10:42:28 +05:30
Rahul Garg
54497d1e2b
Fixed memcpy2D for pinned memory case using 2D kernel
...
[ROCm/clr commit: 40fb44dbe6 ]
2018-05-21 22:14:45 +05:30
Maneesh Gupta
efe6b5e4a0
hipMemcpy returns success if sizeBytes is 0.
...
Fixes SWDEV-153754 & SWDEV-154178.
[ROCm/clr commit: 66d05e6fc3 ]
2018-05-21 15:38:44 +05:30
Rahul Garg
8575112052
Fix for memcpy2DAsync for pinned host memory case
...
[ROCm/clr commit: 4f5bdb071c ]
2018-05-18 21:09:50 +05:30
Maneesh Gupta
106f3f591e
Merge pull request #433 from gargrahul/add_hipmemset3d
...
Added hipMemset3D
[ROCm/clr commit: 1c93e11cdf ]
2018-05-18 14:54:15 +05:30
Rahul Garg
84089036b0
Fixed hipMemcpy2D to handle 1D memcpy case
...
[ROCm/clr commit: 8413fb51e1 ]
2018-05-16 11:07:10 +05:30
Rahul Garg
a7be5be448
Added hipMemset3D
...
[ROCm/clr commit: 78568435da ]
2018-05-07 10:24:30 +05:30
Lakhan Singh
6278830c1a
Null checks added for hipmallocpitch and hipmemcpy apis
...
[ROCm/clr commit: 12d8a47c0c ]
2018-05-03 09:27:50 +05:30
Rahul Garg
6f05c37cde
Fix texture 3D for HIP/NVCC
...
[ROCm/clr commit: 1d76c48e3d ]
2018-05-02 11:56:37 +05:30
Lakhan Singh
06dd83f7f1
SWDEV-141024
...
[ROCm/clr commit: 74faa61d52 ]
2018-04-20 17:40:00 +05:30
Rahul Garg
39a19cc9e8
Added hipMemset2DAsync support
...
[ROCm/clr commit: fcc0866681 ]
2018-04-17 18:27:27 +05:30
Rahul Garg
cf6322da63
Correct missed ihipMemsetCopyDataType change
...
[ROCm/clr commit: 2ee80397f2 ]
2018-04-12 10:27:19 +05:30
Rahul Garg
312b764721
Changed ihipMemsetCopyDataType to ihipMemsetDataType
...
[ROCm/clr commit: 2658963f5b ]
2018-04-12 09:29:22 +05:30
Rahul Garg
aff8d83cdf
Fix hipMemset stream resolution
...
[ROCm/clr commit: 88073a17c1 ]
2018-04-11 19:01:53 +05:30
Rahul Garg
a3bc29976b
hipMemset refactoring
...
[ROCm/clr commit: 40846f6f8e ]
2018-04-11 15:58:48 +05:30