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 cometimento está contido em:
Tao Sang criou e Tao Sang cometeu 2020-07-22 22:14:13 -04:00
1 ascendente 2800fc2fa3
cometimento fdef6f722f
62 ficheiros modificados
+224 -227

Não existem ficheiros que correspondam à sua pesquisa

+1 -1
Ver ficheiro
@@ -46,7 +46,7 @@ class DeviceQueue;
class CommandQueue : public RuntimeObject {
public:
static const uint RealTimeDisabled = 0xffffffff;
static constexpr uint RealTimeDisabled = 0xffffffff;
enum class Priority : uint { Low = 0, Normal , Medium, High };
struct Properties {