Skip to content

Commit f466df6

Browse files
danzimmpytorchmergebot
authored andcommitted
[torch] Address -Wreturn-type warning when compiling for AMD (pytorch#138951)
Summary: Yep yep see title Test Plan: CI Differential Revision: D64971115 Pull Request resolved: pytorch#138951 Approved by: https://github.com/cyyever, https://github.com/adamomainz
1 parent 817e57f commit f466df6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torch/csrc/distributed/c10d/CUDASymmetricMemory-inl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ __device__ __forceinline__ uint32_t
5959
cas(uint32_t* addr, uint32_t compare, uint32_t val) {
6060
#if defined(USE_ROCM) || (defined(__CUDA_ARCH__) && (__CUDA_ARCH__ < 800))
6161
CUDA_KERNEL_ASSERT(false);
62+
return 0;
6263
#else
6364
uint32_t old_val;
6465
if constexpr (Sem == MemOpSem::Relaxed) {

0 commit comments

Comments
 (0)