SWDEV-351969 - TLS Optimization

- Aggregate all TLS(Thread Local Storage) variables into a single class
- This is to improve cache accesses per thread

Change-Id: Ic8361eaeae290fff00254684e309471958365eb9
Este commit está contenido en:
Rakesh Roy authored and Rakesh Roy committed 2022-10-09 22:08:14 -04:00
1 padre f83ba8cd23
commit 8b391ef18c
9 files changed
+145 -115

No files matched your search

+3 -3
Ver fichero
@@ -25,15 +25,15 @@
hipError_t hipGetLastError()
{
HIP_INIT_API(hipGetLastError);
hipError_t err = hip::g_lastError;
hip::g_lastError = hipSuccess;
hipError_t err = hip::tls.last_error_;
hip::tls.last_error_ = hipSuccess;
return err;
}
hipError_t hipPeekAtLastError()
{
HIP_INIT_API(hipPeekAtLastError);
hipError_t err = hip::g_lastError;
hipError_t err = hip::tls.last_error_;
HIP_RETURN(err);
}