Commit Graph

887 Commits

Author SHA1 Message Date
lmoriche a9d82ed57b Merge pull request #899 from lmoriche/hip_clang
Add code-object-v3 support for the HIP-Clang path.

[ROCm/hip commit: 005e09f5b9]
2019-02-06 19:50:51 -08:00
Laurent Morichetti 1bbb9d455b Add code-object-v3 support for the HIP-Clang path.
[ROCm/hip commit: 6ab8711f02]
2019-02-05 14:43:26 -08:00
Rahul Garg 089077a8b7 Revert "Fixed issue of GPU device losing access to host pinned memory"
[ROCm/hip commit: 3120db15e4]
2019-02-04 22:45:13 -08:00
Rahul Garg 7aafa0da9f Fixed issue of GPU device losing access to host pinned memory
[ROCm/hip commit: bab3a94b33]
2019-01-22 06:25:43 +05:30
Evgeny 3f7ff3450e fixing HSA_INIT_API cid args
[ROCm/hip commit: 0164464bcc]
2019-01-16 23:45:44 -06:00
Alex Voicu e2911291dd Ensure that static structures are populated
[ROCm/hip commit: 0b57f50855]
2019-01-09 17:21:53 +00:00
Wen-Heng (Jack) Chung 2f9021afd3 Introduce hash key to HIP module implementation
A hash calculated via FNV-1a algorithm is introduced in ihipModule_t, the
internal of hipModule_t. The hash is used by HIP module APIs such as

- read_agent_global_from_module

to determine whether the agent-scope globals for a module have been iterated.

This commit fixes one issue that applications which load / unload modules
frequently would occasionally fail. After deep investigation of the issue it
turns out the old implementation in read_agent_global_from_module uses
hipModule_t as the key, which is not robust enough, as hipModule_t instances
are allocated dynamically so there are cases that one memory address may be
used by multiple hipModule_t instances. The real solution is to introduce a
uniquely identifiable hash for the code object associated with the HIP module.
And that's the rationale behind this commit.


[ROCm/hip commit: b4d658a48f]
2019-01-08 17:33:40 +00:00
Alex Voicu 587745b841 Hook into the creaky lazy-reinit machinery. Try to minimise race-risk.
[ROCm/hip commit: ec14daa7ce]
2019-01-01 11:01:16 +05:30
Alex Voicu e127990e23 More blobs, more problems.
[ROCm/hip commit: 340674ceb6]
2019-01-01 11:01:07 +05:30
Alex Voicu 7bcb83a05f Start re-working 731 for 2.0.
[ROCm/hip commit: 25c7e5d609]
2019-01-01 11:00:57 +05:30
Maneesh Gupta 3cf96f31d0 Merge pull request #797 from gargrahul/fixhipPointerGetAttributes
Fixed hipPointerGetAttributes for hostmalloced ptr

[ROCm/hip commit: 56ce3e37d5]
2018-12-12 10:16:07 +05:30
Maneesh Gupta 07dcdff9e5 Merge pull request #608 from gargrahul/add_pinned_2d_sdma_copy
Added support for pinned 2D SDMA copy

[ROCm/hip commit: 0dd26b4f63]
2018-12-12 07:44:16 +05:30
Rahul Garg b304ff5210 Fixed hipPointerGetAttributes for hostmalloced ptr
[ROCm/hip commit: 5f12067708]
2018-12-08 01:42:08 +05:30
Siu Chi Chan bca8022aa0 Revert "Rely on code object metadat for kernarg arguments alignof and sizeof."
This reverts commit 6d64f5e112.


[ROCm/hip commit: 1fbf639962]
2018-11-29 11:38:37 -05:00
Siu Chi Chan a72a54996e Revert "Handle the very confusing dual encoding of the symbol name."
This reverts commit 2a69dd1fb6.


[ROCm/hip commit: 71189c10c1]
2018-11-29 11:38:36 -05:00
Siu Chi Chan 8bf51361e4 Revert "If we've already seen a __global__ function we do not need to re-parse"
This reverts commit d3beba42d3.


[ROCm/hip commit: 09f87e41d9]
2018-11-29 11:38:35 -05:00
Siu Chi Chan a715dea79c Revert "Missing handling nullary __global__ functions for mixed arity cases."
This reverts commit 51c47fcc2e.


[ROCm/hip commit: 8eb9b38e76]
2018-11-29 11:38:31 -05:00
Siu Chi Chan 954535e0b5 Revert "Fix issue in kernarg metadata parsing due to early finalization"
This reverts commit 48c2d69d32.


[ROCm/hip commit: 909609773c]
2018-11-29 11:35:00 -05:00
Yaxun Sam Liu 95802a836b Let hip-clang support --genco
[ROCm/hip commit: 450f093231]
2018-11-27 15:55:50 -05:00
Maneesh Gupta 28c52ae091 Merge pull request #772 from scchan/kernarg_metadata_early_finalize
Fix issue in kernarg metadata parsing due to early finalization

[ROCm/hip commit: 9a1d8137eb]
2018-11-26 08:55:19 +05:30
Maneesh Gupta e317a9a1fa Merge pull request #773 from fronteer/master
Support of printing process ID for HIP tracing 

[ROCm/hip commit: 7ce082415b]
2018-11-23 11:16:22 +05:30
Maneesh Gupta 05e09614be Merge pull request #760 from eshcherb/roctracer-hip-frontend-181113
Roctracer hip frontend 181113

[ROCm/hip commit: 160c509e23]
2018-11-23 11:08:25 +05:30
Qianfeng Zhang 724a1e6dc5 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP
[ROCm/hip commit: 91e8ec9e4b]
2018-11-22 19:11:49 +08:00
Qianfeng Zhang 26b7fef858 Add support of printing process ID for HIP Tracing
[ROCm/hip commit: 81cf7cabfa]
2018-11-22 18:58:06 +08:00
Siu Chi Chan 48c2d69d32 Fix issue in kernarg metadata parsing due to early finalization
The logic to parse the kernel metadata is unaware that enabling
of early finalization could result in multiple code blobs in a
single .kernel section.  This teaches the HIP runtime to handle
that.

Change-Id: I1581b42f0da8b30233d7898014f7468728c1d489


[ROCm/hip commit: 19acf86cef]
2018-11-21 12:09:46 -05:00
Maneesh Gupta e2bc3e49a5 Merge pull request #748 from mkuron/getsymboladdress
Implement hipGetSymbolAddress and hipGetSymbolSize

[ROCm/hip commit: bcea027bf1]
2018-11-21 10:32:01 +05:30
Michael Kuron c35dfb71d5 Merge branch 'master' into getsymboladdress
[ROCm/hip commit: 8610128c3e]
2018-11-20 12:03:22 +01:00
Rahul Garg 89efed29d7 Fix hipHostRegister
[ROCm/hip commit: 1a038879a9]
2018-11-17 05:38:35 +05:30
Maneesh Gupta 700a8183f8 Merge pull request #755 from gargrahul/fix_memcpy_symb_nonzerodev
Fixed hipMemcpyToSymbol doesn't work on GPU other than device 0

[ROCm/hip commit: b4e4aafc16]
2018-11-14 13:22:22 +05:30
root dbc30b7800 rebase to master, tracer related changes
[ROCm/hip commit: 091124a766]
2018-11-13 15:50:34 +00:00
Evgeny 73e3c4ec42 renaming HIP_INIT_CB_API to HIP_INIT_API
[ROCm/hip commit: e5ba097afd]
2018-11-13 15:33:26 +00:00
Evgeny 7f6832cbe5 hip_prof_(api/str).h moving under hcc_detail dir
[ROCm/hip commit: 47f1d059d1]
2018-11-13 15:33:26 +00:00
Evgeny c6dbcf8d48 adding lost i the merge change
[ROCm/hip commit: cba2d42bbf]
2018-11-13 15:33:26 +00:00
Evgeny 0a58dc9b7b adding activity prof layer
[ROCm/hip commit: b8b1637ef7]
2018-11-13 15:33:26 +00:00
Rahul Garg 30c4fd3875 Fixed symbol tracking device index
[ROCm/hip commit: 6b3cbc65ad]
2018-11-13 07:01:17 +05:30
Rahul Garg ecea878072 Fixed hipMemcpyToSymbol doesn't work on GPU other than device 0 SWDEV-166881
[ROCm/hip commit: 11e7ab8879]
2018-11-13 00:49:20 +05:30
Alex Voicu 51c47fcc2e Missing handling nullary __global__ functions for mixed arity cases.
[ROCm/hip commit: 4ebc229b9a]
2018-11-12 01:51:59 +00:00
Alex Voicu 9698438260 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
[ROCm/hip commit: eddb783e9b]
2018-11-11 22:37:09 +00:00
Yaxun Sam Liu aaf12143ae Add more checks for fatbin
[ROCm/hip commit: a31b6b78d5]
2018-11-08 16:46:01 -05:00
Alex Voicu 9e2269c8db Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
[ROCm/hip commit: aa6815cdc8]
2018-11-08 06:53:06 -08:00
Maneesh Gupta 774be2f94f Merge pull request #730 from yxsamliu/dbg-fatbin
Add more checks and debug outputs for fat binary

[ROCm/hip commit: 0a1584b075]
2018-11-08 11:44:27 +05:30
Maneesh Gupta e599773b9a Merge pull request #721 from fronteer/my-fix
Make correct checking of the returned hipDeviceptr_t from read_global…

[ROCm/hip commit: e672dc8a55]
2018-11-08 11:42:08 +05:30
Maneesh Gupta 79861d3eeb Merge pull request #742 from gargrahul/fix_module_global_tracking
Fixes global symbols tracking in hip_module

[ROCm/hip commit: 8d8d12f65d]
2018-11-08 11:41:35 +05:30
Michael Kuron f69866eecc Use correct trace macro in hipGetSymbolAddress/hipGetSymbolSize
[ROCm/hip commit: 6ebcc2922c]
2018-11-06 20:46:30 +01:00
Michael Kuron cbba8221ee Introduce ihipModuleGetGlobal
[ROCm/hip commit: 31acf1c268]
2018-11-06 09:54:34 +01:00
Michael Kuron bc455ccf50 Implement hipGetSymbolAddress and hipGetSymbolSize
[ROCm/hip commit: 73616582d6]
2018-11-04 10:39:34 +01:00
Alex Voicu 9cd4a9dbb1 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
[ROCm/hip commit: f28cde3f98]
2018-11-01 23:17:27 +00:00
Siu Chi Chan 1159b4aa05 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/hip commit: 0ff408a56c]
2018-11-01 16:20:35 -04:00
Maneesh Gupta d17d335d6f Merge pull request #733 from ex-rzr/fix_array_alloc_size
Fix allocation size of arrays with multiple and/or non-32-bit channels

[ROCm/hip commit: 9199fe21dd]
2018-10-31 14:08:58 +05:30
Maneesh Gupta ac071f5390 Merge pull request #714 from aaronenyeshi/remove-static-hip-device
Remove libhip_device.a static library

[ROCm/hip commit: 0b86b421c1]
2018-10-31 14:08:29 +05:30