From 741efb51cc30a3d7faa3b95490b96bfab7b89bee Mon Sep 17 00:00:00 2001 From: Harsha H S Date: Fri, 29 Nov 2024 03:50:24 -0800 Subject: [PATCH] PR #19925: [ROCm] Fix build break with gcc due to `53417984` Imported from GitHub PR https://github.com/openxla/xla/pull/19925 @majnemer This fixes build break on gcc due to https://github.com/openxla/xla/commit/53417984a9baf80ac9b677f13e628867298f8eae Copybara import of the project: -- d5e67855886877638d7bf166f914ed8117b4185a by Harsha HS : [ROCm] Fix build break with gcc due to `53417984` Merging this change closes #19925 COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/19925 from ROCm:ci_fix_devdesc_build_break_20241128 d5e67855886877638d7bf166f914ed8117b4185a PiperOrigin-RevId: 701242995 --- xla/stream_executor/device_description.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xla/stream_executor/device_description.h b/xla/stream_executor/device_description.h index 313ae5e2dca5e..f6bb2e4a41ad4 100644 --- a/xla/stream_executor/device_description.h +++ b/xla/stream_executor/device_description.h @@ -342,7 +342,7 @@ class DeviceDescription { } // Returns the number of threads per warp/wavefront. - const int64_t &threads_per_warp() const { return threads_per_warp_; } + constexpr int64_t threads_per_warp() const { return threads_per_warp_; } // Returns the limit on the total number of registers per core. const int64_t ®isters_per_core_limit() const {