Fix windows builds with TheRock which doesn't accept "/Zc:preprocessor" TheRock#4463#9475
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9475
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ⏳ 7 Pending, 2 Unrelated FailuresAs of commit 3bddf04 with merge base b9ee001 ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Hi @astrelsky! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
I'm not sure why I had to sign it for BOTH torch and vision if it is supposed to cover all Meta open source projects. I quoted the bot for context. |
|
I'm going go on a whim and say that the macos failures are unrelated to this change. 😂 |
|
Thanks for the fix — the One minor issue: if "nvcc" in extra_compile_args:
if not IS_ROCM:
extra_compile_args["nvcc"].append("-Xcompiler")
extra_compile_args["nvcc"].append("/Zc:preprocessor")
extra_compile_args["nvcc"].append("-DCCCL_IGNORE_MSVC_TRADITIONAL_PREPROCESSOR_WARNING")The two macOS CI failures ( |
Oh, thank you. I didn't realize that was CCCL/CUDA-specific, since it's a preprocessor macro and could be used somewhere in the code. |
a01c261 to
3627665
Compare
3627665 to
fe221d0
Compare
|
@NicolasHug or @atalman would you please review/land this PR? It's blocking our ROCm Windows builds. Thanks. |
|
Hey @NicolasHug! You merged this PR, but no labels were added. |
This fixes the recent build failures on windows using rocm due to #9465 where
hipccis used in place ofnvccand uses clang which does not accept/Zc:preprocessor. See #9465 (comment)Fixes ROCm/TheRock#4463
I have confirmed this fixes the build locally.