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


[ROCm/clr commit: fdef6f722f]
This commit is contained in:
Tao Sang
2020-07-14 20:10:24 -04:00
committad av Tao Sang
förälder 11f8a869f1
incheckning 44eb207f8d
62 ändrade filer med 224 tillägg och 227 borttagningar
+1 -1
Visa fil
@@ -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 {