SWDEV-265469 - added constexpr constructor for dim3
Change-Id: I2e23a403f272d1ff0ade24fec11190d2f3244e5f
[ROCm/hip commit: 09b1eb8c9f]
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Sarbojit Sarkar
γονέας
e7b6c05a3c
υποβολή
3fa56865cc
@@ -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;
|
||||
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user