Apply constexpr on global constant varaibles

When HIP_ENABLE_DEFERRED_LOADING=0, many global variables will be
referenced but they are not initialized in that early time. The patch
will use constexpr to initialze global constant varables in compile
time.

Change-Id: I9d538b7abc6a0ce700ec3332b97fc144db5fc1ef
Цей коміт міститься в:
Tao Sang authored and Tao Sang committed 2020-07-22 22:14:13 -04:00
1 джерело 2800fc2fa3
коміт fdef6f722f
62 files changed
+224 -227

No files matched your search

+1 -1
Переглянути файл
@@ -276,7 +276,7 @@ static int32_t CL_API_CALL SetICDDispatchTable(vdi_agent* agent, const cl_icd_di
} // namespace agent
vdi_agent Agent::entryPoints_ = {agent::GetVersionNumber,
const vdi_agent Agent::entryPoints_ = {agent::GetVersionNumber,
agent::GetPlatform,
agent::GetTime,
agent::SetCallbacks,