Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated HIP flags #360

Closed
wants to merge 3 commits into from
Closed

Conversation

jataylo
Copy link
Contributor

@jataylo jataylo commented May 11, 2023

Removes the outdated HIP flags appended to HIP_CXX_FLAGS

The will help remove the following warnings in the pytorch build log

[6238/6889] Building CXX object caffe2/CMakeFiles/torch_hip.dir/__/aten/src/ATen/native/cudnn/hip/Conv_v8.cpp.o
cc1plus: warning: command line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: warning: unrecognized command line option ‘-Wno-unused-command-line-argument’
cc1plus: warning: unrecognized command line option ‘-Wno-exceptions’
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
cc1plus: warning: unrecognized command line option ‘-Wno-macro-redefined’

(There is a similar change also required in pytorch/cmake/Dependencies.cmake to fully remove these warnings)

This PR also replaces the deprecated --amdgpu-target hip flag with --offload-arch as previously updated in pytorch https://github.com/pytorch/pytorch/pull/97620/files

cc: @pruthvistony

Removes the outdated HIP flags appended to HIP_CXX_FLAGS

The will help remove the following warnings in the pytorch build log

```
[6238/6889] Building CXX object caffe2/CMakeFiles/torch_hip.dir/__/aten/src/ATen/native/cudnn/hip/Conv_v8.cpp.o
cc1plus: warning: command line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: warning: unrecognized command line option ‘-Wno-unused-command-line-argument’
cc1plus: warning: unrecognized command line option ‘-Wno-exceptions’
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
cc1plus: warning: unrecognized command line option ‘-Wno-macro-redefined’
```

There is a similar change also required in `pytorch/cmake/Dependencies.cmake` to fully remove these warnings
@jataylo jataylo marked this pull request as ready for review May 11, 2023 14:04
@jataylo jataylo marked this pull request as draft May 11, 2023 14:04
@jataylo jataylo marked this pull request as ready for review May 11, 2023 14:18
@jataylo
Copy link
Contributor Author

jataylo commented May 19, 2023

Hey @malfet are you able to take a look at this or point me in the right direction to get this approved. Thank you!

cc: @pruthvistony

@facebook-github-bot
Copy link

@malfet has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

@malfet merged this pull request in 597accf.

lisaong pushed a commit to lisaong/gloo that referenced this pull request Feb 19, 2024
Summary:
Removes the outdated HIP flags appended to HIP_CXX_FLAGS

The will help remove the following warnings in the pytorch build log

```
[6238/6889] Building CXX object caffe2/CMakeFiles/torch_hip.dir/__/aten/src/ATen/native/cudnn/hip/Conv_v8.cpp.o
cc1plus: warning: command line option ‘-Wno-duplicate-decl-specifier’ is valid for C/ObjC but not for C++
cc1plus: warning: unrecognized command line option ‘-Wno-unused-command-line-argument’
cc1plus: warning: unrecognized command line option ‘-Wno-exceptions’
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
cc1plus: warning: unrecognized command line option ‘-Wno-macro-redefined’
```

(There is a similar change also required in `pytorch/cmake/Dependencies.cmake` to fully remove these warnings)

This PR also replaces the deprecated `--amdgpu-target` hip flag with `--offload-arch` as previously updated in pytorch https://github.com/pytorch/pytorch/pull/97620/files

cc: pruthvistony

Pull Request resolved: facebookincubator#360

Reviewed By: zou3519

Differential Revision: D46023158

Pulled By: malfet

fbshipit-source-id: 1444a6ccae27f008a8ca7f5dd95df026c15b48dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants