Satyanvesh Dittakavi
51f8fc06e1
SWDEV-306940 - Fix hipamd errors/warnings found by CppCheck
...
Change-Id: Ia93d4f5262ea4269d8031edbfd27033b887e5300
[ROCm/clr commit: 6e562f4d83 ]
2022-02-05 08:42:47 -05:00
Sarbojit Sarkar
2d5abacc5e
SWDEV-320901 - Added HIP_INIT_API_NO_RETURN
...
Change-Id: Ic79acc21f6a92fcb24527d4f121ae96b13192f75
[ROCm/clr commit: 3e2cc04da5 ]
2022-01-31 23:29:29 -05:00
haoyuan2
9735c1b617
SWDEV-290298 - add a flag to indicate the primary context active status
...
Change-Id: Id13d132923fcef697b689e75b6aa04060923a2ad
[ROCm/clr commit: 981ef060fb ]
2021-12-09 23:32:16 -05:00
pghafari
26ddbfd8ec
SWDEV-310292 - checking hip initialization
...
Change-Id: I83c9a0d511699c150abe61c3053cc4de2f7f1205
[ROCm/clr commit: 24e984fd57 ]
2021-11-29 14:59:19 -05:00
Saleel Kudchadker
dd76f98009
SWDEV-299893 - Set preferred node affinity
...
Set affinity to the node nearest to default GPU at init. Afterthat
set it to NUMA node thats nearest to whatever GPU is set with
hipSetDevice
Change-Id: I85749258ea7c25385096ffe4089a70c948f332c7
Change-Id: I99a92c922655e22955bee512073b6ac8e6ced3a2
[ROCm/clr commit: 0d5bc833c3 ]
2021-11-21 01:13:36 -05:00
anusha GodavarthySurya
64799f183f
SWDEV-300471 - updated hipFree to wait for all streams to finish
...
Change-Id: I4983ef48a9e720ed03128d83a8d23ad11024fd8f
[ROCm/clr commit: c9d9fd992a ]
2021-09-02 00:45:24 -04:00
Julia Jiang
6883ccde42
SWDEV-286322 - Remove execution permission
...
Change-Id: I96e603fc8d407c3a76fa1053bad81e45744b59ad
[ROCm/clr commit: 8835b897d5 ]
2021-08-05 14:04:06 -04:00
German Andryeyev
9db25e5985
SWDEV-290384 - Add compilation option for direct disaptch
...
DISABLE_DIRECT_DISPATCH flag will control compilation.
Default is OFF.
Change-Id: I7d4207b8a79f5e3eb61440c5fbe5034c6ce75cce
[ROCm/clr commit: a852370a25 ]
2021-07-27 00:07:27 -04:00
agunashe
fae697b4d6
SWDEV-293742 - Update copyrights end year for hipamd
...
Change-Id: I08f620f84563a9214b59f1b943ed091b67229eab
[ROCm/clr commit: d9d9e81acb ]
2021-07-09 12:08:39 -04:00
German Andryeyev
bd55ad07a9
SWDEV-272496 - Enable direct dispatch
...
Change-Id: I1e550b45d19b4b498af1ffb8f82db70d6a99c908
[ROCm/clr commit: 9fa1d9ebfa ]
2021-06-11 10:34:36 -04:00
Rahul Garg
dd95d3d23c
ROCMOPS-1956 - Push restructured code to hipamd
...
hipamd will have AMD's ROCCLR based HIP backend implementation
Change-Id: Id7de9634519b4ce46fca71a1b61f3d5b1e3fc459
[ROCm/clr commit: 19c84bc604 ]
2021-06-07 21:42:44 +00:00
Tao Sang
6227f3fae2
Remove hip-hcc codes: Part one
...
Remove hip-hcc codes from hip code base
Simplify hip CMakeLists.txt to exclude hip-hcc
Simplify cmake cmd for hip-rocclr building
Some minor fixes
Change-Id: I1ae357ecfd638d6c25bca293c1724b026be21ecd
[ROCm/clr commit: 1cba7ec965 ]
2020-12-09 15:49:47 -05:00
Jeff Daily
68f674205e
consolidate thread local storage ( #915 )
...
* all thread local access now through single struct
* clean up old commented-out code, more use of GET_TLS()
* fewer calls to GET_TLS by passing tls as a funtion argument
* revert unnecessary change to printf
* fix failing tests due to TLS change
* fix merge conflicts in ihipOccupancyMaxActiveBlocksPerMultiprocessor
[ROCm/clr commit: f337ae1edb ]
2019-08-05 09:51:02 +00:00
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
Maneesh Gupta
46ddefedee
Apply .clangformat to all repo source files
...
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
[ROCm/clr commit: 9e47fccc89 ]
2018-03-12 11:29:03 +05:30
Pierre
75a1e24519
Fix missing MARKER_END
...
Logging status of hipCtxSynchronize was missing
Test if hip profiling is active for MARKER_END in ihipPostLaunchKernel
Add MARKER_END after the completion of a kernel launched through
the "grid launch"
[ROCm/clr commit: e60a95d7dd ]
2017-11-13 16:13:19 -05:00
Rahul Garg
687fac97dc
Updated context management logic:
...
1) hipSetDevice sets a flag so that next call to hipCtxGetCurrent returns primary context on current device
2) hipCtxGetCurrent returns primary context on current device if TLS context stack is empty
3) hipCtxPopCurrent falls back to primary context on current device as default
4) hipCtxPushCurrent, hipCtxSetCurrent and hipCtxCreate reset the flag set in hipSetDevice
[ROCm/clr commit: c4e9323877 ]
2017-08-08 07:02:22 +05:30
Aditya Atluri
3651cb672a
added new api hipHccModuleLaunchKernel
...
1. hipHccModuleLaunchKernel is same as hipModuleLaunchKernel with OpenCL workitem model
2. Added copy right
3. Fixed header naming
Change-Id: I6a7c35a3566e2f8d3f5056613e34193775d4b236
[ROCm/clr commit: 1cead6a4cd ]
2017-03-31 12:11:34 -05:00
Rahul Garg
8a5d4a6ab8
Added support for Primary Context Management APIs
...
Change-Id: I70f91b4492e112dd8e12ecf511fdc18a27944a06
[ROCm/clr commit: 33a8cdc6d3 ]
2017-03-26 23:45:54 +05:30
Rahul Garg
b4d190a445
Context management related changes in HIP.
...
-
-Contexts across threads are listed under device
-Device reset cleans up all contexts and re-initializes _primaryCtx
Change-Id: Ie1cfbb26d43a8dc6869be3e6ebaf7344ce374643
[ROCm/clr commit: c837b8d713 ]
2017-02-27 15:24:17 +05:30
Aditya Atluri
a86633f210
changed copyright year from 2016 to 2017 in src directory
...
Change-Id: Idb97db509b2b4b1656b2df7a14a62ade38c9d574
[ROCm/clr commit: e9ff23e5f9 ]
2017-01-11 18:05:41 -06:00
Rahul Garg
8acb6a623d
Mapped hipDevice_t to int
...
Change-Id: I6cfa56c42b7cd04aa0e0bce510c0d72d34ea211a
[ROCm/clr commit: bddaa0e81c ]
2016-12-17 16:53:03 +05:30
Aditya Atluri
59c423b36a
fixed compilation bugs
...
1. Texture functions are now compiling fine
2. Fixed hipFuncCache to hipFuncCache_t
Change-Id: I8f815887e4de43ee115bbaff249905b236541c39
[ROCm/clr commit: 2611de2477 ]
2016-11-21 08:56:30 -06:00
Ben Sander
d6ffcdb9b0
Move some internal headers from "include/hip/" to src.
...
Change-Id: I7041bd5c803d9318979f4a7c1d658445c614691e
[ROCm/clr commit: 403cdf93c3 ]
2016-10-18 22:27:16 -05:00
Maneesh Gupta
2655c96ab9
src/*: Update copyright header
...
Change-Id: I455f5d0d12fe9cb39a3ba873bd22b4c25ed07cbf
[ROCm/clr commit: 88d6cad3fb ]
2016-10-15 22:55:22 +05:30
Maneesh Gupta
46feb7dcf2
Move include/* to include/hip/*
...
Change-Id: I7a7b2839b4df59c7a4c503550f99fdc9e45c0f54
[ROCm/clr commit: bbfc08f419 ]
2016-10-04 22:17:18 +05:30
Aditya Atluri
0862286458
Fixed typo in function return
...
Change-Id: I8905bfdbc162815ac10c926e77a9bab432932c9c
[ROCm/clr commit: c0babe6b0a ]
2016-09-22 09:30:05 -05:00
Rahul Garg
c121b8b535
Added hipRuntimeGetVersion function
...
Change-Id: I59ec2beacb5a94439deed0dcc8eb37d6de1cc900
[ROCm/clr commit: 86e441c769 ]
2016-09-22 15:21:23 +05:30
Ben Sander
98019e5f79
Only use ihipLogStatus from top-level HIP functions.
...
Change-Id: I07e9c088d5c16a79ed52cb008a798889a656016c
[ROCm/clr commit: 9ee9284306 ]
2016-09-02 09:46:59 -05:00
Rahul Garg
04a3cdb846
Removed Doxygen return codes from source file
...
Change-Id: Iaf9f13df73a9c17c494c9ff67203b836ee90648d
[ROCm/clr commit: 093569e611 ]
2016-09-02 18:37:26 +05:30
Rahul Garg
96fd13305a
Added doxygen documentation for hipCtxXXX APIs
...
Change-Id: Id9cf3491e9a8c78cb7bfeb9976c36d6fe565628f
[ROCm/clr commit: 25f3032328 ]
2016-09-01 12:22:37 +05:30
Aditya Atluri
ab83d52bd4
Added HIP_INIT_API for all context apis
...
Change-Id: I3dd8c068236d9572659a58683fdb59d2b9dccaf3
[ROCm/clr commit: cfac62f7e6 ]
2016-08-29 21:36:34 -05:00
Aditya Atluri
fa734c5a6a
Added explicit memory copy direction apis
...
- Fixed stale printf in context api
- Added 4 sync memcpy apis
1. hipMemcpyHtoD
2. hipMemcpyDtoH
3. hipMemcpyDtoD
4. hipMemcpyHtoH
- Added test for added apis
Change-Id: I4a9c382445b62631f8d0bcbb9a670322288b72b1
[ROCm/clr commit: f722a132a4 ]
2016-08-26 13:11:01 -05:00
Rahul Garg
c43c365811
Added logic to update primary ctx when ctx stack is empty, updated hipCtxDestroy and ctxGetCurrent functions
...
Change-Id: Ia0a8943c121bc1279788a1cfa9be59af614b04a6
[ROCm/clr commit: 452108b0e6 ]
2016-08-26 19:03:23 +05:30
Rahul Garg
f1f04949ac
Added support for hipCtxSynchronize and hipCtxGetFlags,modified hipDeviceSynchronize
...
Change-Id: If7bac667a262fa8c0cb3dc93e97f2534855acd07
[ROCm/clr commit: b0ba622ed5 ]
2016-08-22 16:15:27 +05:30
Rahul Garg
84a789c85c
Added further hipCtxXXX Apis
...
Change-Id: I286d962a06cee656c1c652b3f6b45078587fbc41
[ROCm/clr commit: 96de030c2d ]
2016-08-17 16:28:22 +05:30
Rahul Garg
a23ea89cae
Implementation of hipCtxGetDevice
...
Change-Id: I067572e486323c3aad6f744a2c0c4997c8696af6
[ROCm/clr commit: 5eb889f73c ]
2016-08-13 01:17:46 +05:30
Rahul Garg
b55d509790
First implementation of hipCtxXXX functions
...
Change-Id: I4609cbe6bd90a1fff8655bff4fdd773864397aba
[ROCm/clr commit: f734f12411 ]
2016-08-13 00:09:08 +05:30
Ben Sander
a4bfccf628
Context update.
...
- Remove tls_deviceID.
- Add first passing test.
Change-Id: If3e2f254abf589028cfe4f9e6369745f04160de0
[ROCm/clr commit: a9bcee3d77 ]
2016-08-10 08:59:47 -05:00
Ben Sander
0c8ca4b37d
Add initial context implementation.
...
APIs: hipInit, hipCtxCreate.
Track TLS default ctx. Set deviceID now changes the ctx.
Add first context test.
Change-Id: If1cb9989b5a04a36147e25e84904336c7b6f3d88
[ROCm/clr commit: f19f2248bf ]
2016-08-08 17:49:02 -05:00