Only use ihipLogStatus from top-level HIP functions.

Change-Id: I07e9c088d5c16a79ed52cb008a798889a656016c


[ROCm/hip commit: db9fe9f494]
This commit is contained in:
Ben Sander
2016-09-01 17:58:24 -05:00
parent 85ae05c401
commit d3fb92374d
5 changed files with 7 additions and 10 deletions
+2 -7
View File
@@ -29,16 +29,11 @@ THE SOFTWARE.
// Stack of contexts
thread_local std::stack<ihipCtx_t *> tls_ctxStack;
hipError_t ihipCtxStackUpdate()
void ihipCtxStackUpdate()
{
//HIP_INIT_API();
hipError_t e = hipSuccess;
if(tls_ctxStack.empty()) {
tls_ctxStack.push(ihipGetTlsDefaultCtx());
tls_ctxStack.push(ihipGetTlsDefaultCtx());
}
return ihipLogStatus(e);
}
hipError_t hipInit(unsigned int flags)