Rahul Garg
|
7cd1d5e644
|
Revert "Use memcpy kernel for all pinned memory cases in hipMemcpy2DAsync"
|
2018-07-02 14:32:11 +05:30 |
|
Rahul Garg
|
cd23905897
|
TEMP- fix memcpy2dAsync for trsm issue
|
2018-06-15 16:08:29 +05:30 |
|
Rahul Garg
|
069e2c34c9
|
Fix stream resolution in memcpy2dasync
|
2018-06-14 11:58:56 +05:30 |
|
Rahul Garg
|
00f8a36bc7
|
Fix retrieved locked ptr offset
|
2018-06-13 23:10:05 +05:30 |
|
Maneesh Gupta
|
9e9c039ee4
|
Merge pull request #497 from gargrahul/fix_memcpy3d_fastpath
Fix hipMemcpy3D for fast path
|
2018-06-06 14:44:02 +05:30 |
|
Rahul Garg
|
a46ff2afd5
|
Fix hipMemcpy3D for fast path
|
2018-06-05 18:54:33 +05:30 |
|
Rahul Garg
|
276c948a16
|
Fix depth value for 3D allocations
|
2018-06-04 18:00:22 +05:30 |
|
Rahul Garg
|
8d6357669d
|
Fix memcpy2D for malloc+ hostRegister
|
2018-05-31 13:14:27 +05:30 |
|
Rahul Garg
|
d8cb47242b
|
Use 64x4 grid dims
|
2018-05-24 23:51:52 +05:30 |
|
Rahul Garg
|
4ff059d641
|
Clean up and fix remaining bytes copy
|
2018-05-24 23:30:27 +05:30 |
|
Rahul Garg
|
981e56a68f
|
Fix memcpy2d kernel dims
|
2018-05-24 17:00:12 +05:30 |
|
Rahul Garg
|
dc179e0c33
|
Correct remaining bytes in copy 2d kernel
|
2018-05-24 08:27:24 +05:30 |
|
Rahul Garg
|
9a76d5b94c
|
Optimize memcpy2D kernel use
|
2018-05-23 14:43:47 +05:30 |
|
Maneesh Gupta
|
323a6226b0
|
Merge pull request #464 from gargrahul/fix_memcpy2d_pinned_mem_case
Fixed memcpy2D for pinned memory case using 2D kernel
|
2018-05-22 10:42:28 +05:30 |
|
Rahul Garg
|
f47a8236d7
|
Fixed memcpy2D for pinned memory case using 2D kernel
|
2018-05-21 22:14:45 +05:30 |
|
Maneesh Gupta
|
0180a82963
|
hipMemcpy returns success if sizeBytes is 0.
Fixes SWDEV-153754 & SWDEV-154178.
|
2018-05-21 15:38:44 +05:30 |
|
Rahul Garg
|
afe62e7030
|
Fix for memcpy2DAsync for pinned host memory case
|
2018-05-18 21:09:50 +05:30 |
|
Maneesh Gupta
|
03ac8e6a92
|
Merge pull request #433 from gargrahul/add_hipmemset3d
Added hipMemset3D
|
2018-05-18 14:54:15 +05:30 |
|
Rahul Garg
|
8f010ac68e
|
Fixed hipMemcpy2D to handle 1D memcpy case
|
2018-05-16 11:07:10 +05:30 |
|
Rahul Garg
|
da302c3e93
|
Added hipMemset3D
|
2018-05-07 10:24:30 +05:30 |
|
Lakhan Singh
|
6411ca1f6d
|
Null checks added for hipmallocpitch and hipmemcpy apis
|
2018-05-03 09:27:50 +05:30 |
|
Rahul Garg
|
9de5f23d54
|
Fix texture 3D for HIP/NVCC
|
2018-05-02 11:56:37 +05:30 |
|
Lakhan Singh
|
1c2509dc04
|
SWDEV-141024
|
2018-04-20 17:40:00 +05:30 |
|
Rahul Garg
|
3cfb9c0d40
|
Added hipMemset2DAsync support
|
2018-04-17 18:27:27 +05:30 |
|
Rahul Garg
|
16c89d101a
|
Correct missed ihipMemsetCopyDataType change
|
2018-04-12 10:27:19 +05:30 |
|
Rahul Garg
|
3d6eb75828
|
Changed ihipMemsetCopyDataType to ihipMemsetDataType
|
2018-04-12 09:29:22 +05:30 |
|
Rahul Garg
|
294bf50f68
|
Fix hipMemset stream resolution
|
2018-04-11 19:01:53 +05:30 |
|
Rahul Garg
|
412a35be20
|
hipMemset refactoring
|
2018-04-11 15:58:48 +05:30 |
|
Maneesh Gupta
|
03eca1c57e
|
hipMemcpyAsync returns success when trying to copy 0 bytes
Change-Id: I4c0ee7ccc7563e2df657b50356cdd7fec9a1ef15
|
2018-04-09 12:39:44 +05:30 |
|
Maneesh Gupta
|
1ba06f63c4
|
Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
|
2018-03-12 11:29:03 +05:30 |
|
Alex Voicu
|
dc7560ef22
|
Change directory name to match HIP lowercase style.
|
2018-02-22 13:15:10 +00:00 |
|
Maneesh Gupta
|
4b8ae78891
|
Merge pull request #321 from gargrahul/hipMemcpyArray_Functions
Added support for hipMemcpy Array functions-
|
2018-02-12 10:36:38 +05:30 |
|
Rahul Garg
|
24ab820a11
|
Fixed host allocated globals address lookup for host usage
Fixed texture driver APIs failure
|
2018-01-30 18:06:31 +05:30 |
|
Rahul Garg
|
487a430b5a
|
Added support for -
- hipMemcpyFromArray
- hipMemcpyAtoH
- hipMemcpyHtoA
|
2018-01-16 11:44:19 +05:30 |
|
Rahul Garg
|
115c7f2b79
|
Added support for
- 3D texture driver APIs
- hipMalloc3D
- hipMemcpy3D for destination other than array
|
2017-12-05 14:11:13 +05:30 |
|
Ben Sander
|
9bba97fdcc
|
Fix some cppcheck style issues.
|
2017-12-01 20:45:34 +00:00 |
|
Ben Sander
|
4313686d6e
|
Fix warning from default cppchek.
|
2017-12-01 20:45:33 +00:00 |
|
Alex Voicu
|
7c0b9a005b
|
Fix legacy mode detection of the address of an agent allocated variable. In this mode, there exist two executables per each code object, one created by HCC and one created by HIP. Since we dispatch through HCC in legacy mode, we should obtain the address for an agent allocated variable from the latter's executable. Also add two omitted validity checks, whose absence could lead to segfaults when the current process had no .kernel section and / or when an invalid or empty blob was extracted from the latter.
|
2017-11-30 03:29:04 +00:00 |
|
Alex Voicu
|
32e11e7dc6
|
Revert "Revert adoption of CUDA indexing in general - this can only work with later versions of the compiler, just like module based dispatch, and thus must be guarded against usage in earlier (e.g. 1.6) versions."
This reverts commit d2fd1f5
|
2017-11-29 21:49:10 +00:00 |
|
Alex Voicu
|
fbaf729f88
|
Revert "Revert adoption of CUDA indexing in general - this can only work with later versions of the compiler, just like module based dispatch, and thus must be guarded against usage in earlier (e.g. 1.6) versions."
This reverts commit d2fd1f5
|
2017-11-29 21:36:29 +00:00 |
|
Alex Voicu
|
6e4ca3fbb4
|
Change memset kernel to use memcpy instead of placement new. Simplify indexers.
|
2017-11-28 19:45:47 +00:00 |
|
Alex Voicu
|
dc67ca3feb
|
Merge remote-tracking branch 'origin/master' into feature_use_module_based_dispatch_instead_of_pfe
# Conflicts:
# src/hip_module.cpp
|
2017-11-28 17:29:11 +00:00 |
|
Rahul Garg
|
56862b1c35
|
Fixed review comments
|
2017-11-21 21:19:06 +05:30 |
|
Rahul Garg
|
9866fa250d
|
Changed function hipMemcpy_2D to hipMemcpyParam2D
|
2017-11-21 12:36:24 +05:30 |
|
Alex Voicu
|
9d088d2283
|
Refactor the __device__ versions of memset and memcpy to be less awkward i.e. not return nullptr as opposed to the destination pointer (it can only be assumed it was done for maximum confusion) and actually unroll as they claim to. Change all of the {to, from}Symbol functions to use hipModuleGetGlobal, as opposed to hc::accelerator::get_symbol_address which is no longer valid with module based dispatch.
|
2017-11-21 02:40:34 +00:00 |
|
Rahul Garg
|
ef09c4918d
|
Texture driver APIs support
|
2017-11-09 22:10:55 +05:30 |
|
Alex Voicu
|
d8e323d4b5
|
Clean up trailing whitespace so as to reduce noise in #246.
|
2017-11-08 00:08:55 +00:00 |
|
Alex Voicu
|
bb1176001f
|
Merge remote-tracking branch 'origin/master' into feature_use_module_based_dispatch_instead_of_pfe
# Conflicts:
# src/hip_module.cpp
|
2017-11-03 10:53:39 +00:00 |
|
Alex Voicu
|
2cacda91bb
|
Correctly deal with functions from shared objects, wherein the program visible VA == so_base_va + st_value(function_symbol). Remove quaint usage of pfe for hipMemset (which is actually fill_n).
|
2017-11-01 22:33:13 +00:00 |
|
Alex Voicu
|
c2482d1255
|
This switches HIP from its currently convoluted macro + pfe based dispatch mechanism to a more natural one partially based on the existing module API. The basic idea is that HCC will always correctly emit __global__ functions: as empty-bodied stubs, on host, and as kernels, on device. It then becomes trivial to obtain the mangled name on host, at dispatch, from the function's address, and then to use the mangled name to retrieve the kernel. This should address all problems stemming from serialisation, dubious mismatches due to the manufactured functor, macro-isms et al. It also immediately enables support for generalised globals as a consequence of that being available in the module API. Finally, it will make debug much easier, since the actual names of the __global__ functions will automatically be used in traces etc. One detail is that due to how dispatch works now (hipLaunchKernel and hipLaunchKernelGGL are themselves variadic function templates which deduce the function type of the callee), in certain cases it may be necesssary to insert explicit casts to ensure that the variadic argument list selects a viable overload - this can be observed in some unit tests. Eventually we may be able to remove this limitation, but for now it does not appear terribly onerous. The code is not extremely HIPpie, nor is it fully optimised, but rather is intended as a starting point for the HIP team to make its own.
|
2017-11-01 15:09:59 +00:00 |
|