From 6df7116273a88adae07ec040f8c3ea7bc7a48c26 Mon Sep 17 00:00:00 2001 From: Junjie Bai Date: Wed, 13 Mar 2019 16:01:45 -0700 Subject: [PATCH] Fix missing return in HIPStreamMasqueradingAsCUDA::operator<< (#17961) Summary: ``` In file included from /var/lib/jenkins/workspace/aten/src/ATen/native/hip/BatchLinearAlgebra.hip:3: In file included from /var/lib/jenkins/workspace/aten/src/ATen/hip/HIPContext.h:5: /var/lib/jenkins/workspace/aten/src/ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h:107:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 1 warning generated. ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/17961 Reviewed By: houseroad Differential Revision: D14436421 Pulled By: bddppq fbshipit-source-id: 962665602178699d7c7b55f4ca7ff1eb72ee0349 --- aten/src/ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h | 1 + 1 file changed, 1 insertion(+) diff --git a/aten/src/ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h b/aten/src/ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h index f37aa22..77176a3 100644 --- a/aten/src/ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h +++ b/aten/src/ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h @@ -104,6 +104,7 @@ inline void setCurrentHIPStreamMasqueradingAsCUDA(HIPStreamMasqueradingAsCUDA st inline std::ostream& operator<<(std::ostream& stream, const HIPStreamMasqueradingAsCUDA& s) { stream << s.hip_stream() << " (masquerading as CUDA)"; + return stream; } }} // namespace c10::hip -- 2.7.4