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
This commit is contained in:
committed by
Maneesh Gupta
parent
4bebb52feb
commit
1eb3dbf065
@@ -71,7 +71,8 @@ namespace hip_impl
|
||||
|
||||
if (COMPILE_HIP_DB && HIP_TRACE_API) {
|
||||
std::string fullStr;
|
||||
recordApiTrace(&fullStr, os.str());
|
||||
GET_TLS();
|
||||
recordApiTrace(tls, &fullStr, os.str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user