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
Este commit está contenido en:
Tao Sang
2020-07-14 20:10:24 -04:00
cometido por Tao Sang
padre 2800fc2fa3
commit fdef6f722f
Se han modificado 62 ficheros con 224 adiciones y 227 borrados
+1 -1
Ver fichero
@@ -170,7 +170,7 @@ bool Segment::freeze(bool destroySysmem) {
return result;
}
const static char* Carrizo = "Carrizo";
static constexpr const char* Carrizo = "Carrizo";
HSAILProgram::HSAILProgram(Device& device, amd::Program& owner)
: Program(device, owner),
rawBinary_(nullptr),