Skip to content

Commit

Permalink
Fix non-portable path warning (pytorch#129474)
Browse files Browse the repository at this point in the history
MacOS uses case-insensitive filesystem by default, but it's better to specify include path using proper capitalization

Should fix
```
MultiTensorApply.h:4:10: warning: non-portable path to file '<ATen/native/mps/operations/FusedOptimizerOps.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include <Aten/native/mps/operations/FusedOptimizerOps.h>
```

Pull Request resolved: pytorch#129474
Approved by: https://github.com/albanD, https://github.com/atalman, https://github.com/qqaatw
  • Loading branch information
malfet authored and pytorchmergebot committed Jun 25, 2024
1 parent cb1c56c commit fd4af87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aten/src/ATen/native/mps/operations/MultiTensorApply.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#include <ATen/core/Tensor.h>
#include <ATen/mps/MPSProfiler.h>
#include <Aten/native/mps/operations/FusedOptimizerOps.h>
#include <ATen/native/mps/operations/FusedOptimizerOps.h>

namespace at::native {
namespace mps {
Expand Down Expand Up @@ -187,4 +187,4 @@ static void multi_tensor_apply_for_fused_adam(
}

} // namespace mps
} // namespace at::native
} // namespace at::native

0 comments on commit fd4af87

Please sign in to comment.