From 3fa56865ccb617fec87303e66f3adc94916316bc Mon Sep 17 00:00:00 2001 From: Sarbojit Sarkar Date: Fri, 22 Jan 2021 05:54:45 -0500 Subject: [PATCH] SWDEV-265469 - added constexpr constructor for dim3 Change-Id: I2e23a403f272d1ff0ade24fec11190d2f3244e5f [ROCm/hip commit: 09b1eb8c9f976f0d157836a36e122f036db55e07] --- projects/hip/include/hip/amd_detail/hip_runtime_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/amd_detail/hip_runtime_api.h b/projects/hip/include/hip/amd_detail/hip_runtime_api.h index 498d4f583e..a8f7792d27 100644 --- a/projects/hip/include/hip/amd_detail/hip_runtime_api.h +++ b/projects/hip/include/hip/amd_detail/hip_runtime_api.h @@ -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;