Jeff Daily
9b44993343
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/hip commit: 1eb3dbf065 ]
2019-08-05 09:51:02 +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
0a58dc9b7b
adding activity prof layer
...
[ROCm/hip commit: b8b1637ef7 ]
2018-11-13 15:33:26 +00:00
Maneesh Gupta
4f42ee762d
Apply .clangformat to all repo source files
...
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
[ROCm/hip commit: 1ba06f63c4 ]
2018-03-12 11:29:03 +05:30
Pierre
d917c6b546
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/hip commit: 6baaed8e48 ]
2017-11-13 16:13:19 -05:00
Rahul Garg
8d254a7113
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/hip commit: 3e84cf4aba ]
2017-08-08 07:02:22 +05:30
Aditya Atluri
ccf799c453
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/hip commit: b9091ba818 ]
2017-03-31 12:11:34 -05:00
Rahul Garg
397088203d
Added support for Primary Context Management APIs
...
Change-Id: I70f91b4492e112dd8e12ecf511fdc18a27944a06
[ROCm/hip commit: ecc0e14cf7 ]
2017-03-26 23:45:54 +05:30
Rahul Garg
4dc60f9990
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/hip commit: bddd6b73c0 ]
2017-02-27 15:24:17 +05:30
Aditya Atluri
5de29029cd
changed copyright year from 2016 to 2017 in src directory
...
Change-Id: Idb97db509b2b4b1656b2df7a14a62ade38c9d574
[ROCm/hip commit: 73fcce26f9 ]
2017-01-11 18:05:41 -06:00
Rahul Garg
ae83f93ba4
Mapped hipDevice_t to int
...
Change-Id: I6cfa56c42b7cd04aa0e0bce510c0d72d34ea211a
[ROCm/hip commit: 263a9614ff ]
2016-12-17 16:53:03 +05:30
Aditya Atluri
75fbf16ca9
fixed compilation bugs
...
1. Texture functions are now compiling fine
2. Fixed hipFuncCache to hipFuncCache_t
Change-Id: I8f815887e4de43ee115bbaff249905b236541c39
[ROCm/hip commit: 2412c9a061 ]
2016-11-21 08:56:30 -06:00
Ben Sander
c11b6f511b
Move some internal headers from "include/hip/" to src.
...
Change-Id: I7041bd5c803d9318979f4a7c1d658445c614691e
[ROCm/hip commit: 9315ac1a29 ]
2016-10-18 22:27:16 -05:00
Maneesh Gupta
dd60b971d1
src/*: Update copyright header
...
Change-Id: I455f5d0d12fe9cb39a3ba873bd22b4c25ed07cbf
[ROCm/hip commit: 8471682f26 ]
2016-10-15 22:55:22 +05:30
Maneesh Gupta
fc58842fcf
Move include/* to include/hip/*
...
Change-Id: I7a7b2839b4df59c7a4c503550f99fdc9e45c0f54
[ROCm/hip commit: b951cc99ed ]
2016-10-04 22:17:18 +05:30
Aditya Atluri
031e406c5a
Fixed typo in function return
...
Change-Id: I8905bfdbc162815ac10c926e77a9bab432932c9c
[ROCm/hip commit: fb03e1c943 ]
2016-09-22 09:30:05 -05:00
Rahul Garg
e729fa1dee
Added hipRuntimeGetVersion function
...
Change-Id: I59ec2beacb5a94439deed0dcc8eb37d6de1cc900
[ROCm/hip commit: bfc033cc3e ]
2016-09-22 15:21:23 +05:30
Ben Sander
d3fb92374d
Only use ihipLogStatus from top-level HIP functions.
...
Change-Id: I07e9c088d5c16a79ed52cb008a798889a656016c
[ROCm/hip commit: db9fe9f494 ]
2016-09-02 09:46:59 -05:00
Rahul Garg
2d6f4cfb81
Removed Doxygen return codes from source file
...
Change-Id: Iaf9f13df73a9c17c494c9ff67203b836ee90648d
[ROCm/hip commit: eada9b4444 ]
2016-09-02 18:37:26 +05:30
Rahul Garg
00b92e6e35
Added doxygen documentation for hipCtxXXX APIs
...
Change-Id: Id9cf3491e9a8c78cb7bfeb9976c36d6fe565628f
[ROCm/hip commit: 94f035d80d ]
2016-09-01 12:22:37 +05:30
Aditya Atluri
d592ef1f4b
Added HIP_INIT_API for all context apis
...
Change-Id: I3dd8c068236d9572659a58683fdb59d2b9dccaf3
[ROCm/hip commit: 5178bd6308 ]
2016-08-29 21:36:34 -05:00
Aditya Atluri
2efa60a37e
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/hip commit: 4152746e26 ]
2016-08-26 13:11:01 -05:00
Rahul Garg
58aa4f61c2
Added logic to update primary ctx when ctx stack is empty, updated hipCtxDestroy and ctxGetCurrent functions
...
Change-Id: Ia0a8943c121bc1279788a1cfa9be59af614b04a6
[ROCm/hip commit: 1211cc931c ]
2016-08-26 19:03:23 +05:30
Rahul Garg
5a1cf6ccfd
Added support for hipCtxSynchronize and hipCtxGetFlags,modified hipDeviceSynchronize
...
Change-Id: If7bac667a262fa8c0cb3dc93e97f2534855acd07
[ROCm/hip commit: a498753041 ]
2016-08-22 16:15:27 +05:30
Rahul Garg
962276c45a
Added further hipCtxXXX Apis
...
Change-Id: I286d962a06cee656c1c652b3f6b45078587fbc41
[ROCm/hip commit: 0962ca43d9 ]
2016-08-17 16:28:22 +05:30
Rahul Garg
e33c5c07e3
Implementation of hipCtxGetDevice
...
Change-Id: I067572e486323c3aad6f744a2c0c4997c8696af6
[ROCm/hip commit: eec9edef80 ]
2016-08-13 01:17:46 +05:30
Rahul Garg
5e91fe9af3
First implementation of hipCtxXXX functions
...
Change-Id: I4609cbe6bd90a1fff8655bff4fdd773864397aba
[ROCm/hip commit: 62d390da58 ]
2016-08-13 00:09:08 +05:30
Ben Sander
0221323977
Context update.
...
- Remove tls_deviceID.
- Add first passing test.
Change-Id: If3e2f254abf589028cfe4f9e6369745f04160de0
[ROCm/hip commit: 89164259ab ]
2016-08-10 08:59:47 -05:00
Ben Sander
db8c7e97bd
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/hip commit: 8f402132ba ]
2016-08-08 17:49:02 -05:00