SWDEV-265469 - added constexpr constructor for dim3

Change-Id: I2e23a403f272d1ff0ade24fec11190d2f3244e5f


[ROCm/clr commit: cee3e1aa37]
Cette révision appartient à :
Sarbojit Sarkar a créé et Sarbojit Sarkar a révisé 2021-01-28 13:23:51 -05:00
1 Parent 4987cc7052
révision 962dff6a61
1 fichier modifié
+1 -1
+1 -1
Voir le fichier
@@ -313,7 +313,7 @@ typedef struct dim3 {
uint32_t y; ///< y
uint32_t z; ///< z
#ifdef __cplusplus
__host__ __device__ dim3(uint32_t _x = 1, uint32_t _y = 1, uint32_t _z = 1) : x(_x), y(_y), z(_z){};
constexpr __host__ __device__ dim3(uint32_t _x = 1, uint32_t _y = 1, uint32_t _z = 1) : x(_x), y(_y), z(_z){};
#endif
} dim3;