Skip to content

Replace all COMPILER_MSVC to _MSC_VER and _WIN32 accordingly - #18448

Merged
mrry merged 3 commits into
tensorflow:masterfrom
rongjiecomputer:compiler_msvc
Apr 12, 2018
Merged

mrry merged 3 commits into
tensorflow:masterfrom
rongjiecomputer:compiler_msvc

Conversation

@rongjiecomputer

Copy link
Copy Markdown
Contributor

-D compile flag should be avoided as much as possible. Many Google projects like Chromium follow (which uses CMake or GN) only define macro in header file like below and always include the header file to get the macro (IWYU).

#ifdef _MSC_VER
#define COMPILER_MSVC
#endif

However, such rule is not easy to implement for Tensorflow as Bazel require strict header dependency. It is easier to just use _MSC_VER and _WIN32 directly.

Other stuff:

  • Remove ARRAYSIZE macro in tensorflow/stream_executor/platform/port.h (only used in tensorflow/stream_executor/cuda/cuda_driver.cc, which is now replaced with TF_ARRAYSIZE from tensorflow/stream_executor/platform/macros.h).

@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Apr 12, 2018
@rongjiecomputer

Copy link
Copy Markdown
Contributor Author

@mrry I fixed one more ARRAYSIZE -> TF_ARRAYSIZE. PTAL and re-trigger CI test.

@rongjiecomputer

Copy link
Copy Markdown
Contributor Author

@meteorcloudy For some reason, I got the email notification that you pinged @tensorflow-jenkins for CI test, but your comment is missing in Github web and the CI test is not triggered.

@meteorcloudy

Copy link
Copy Markdown
Member

That's right.. I deleted the comment because I just realized TF is not using Jenkins to do presubmit anymore, I don't know how to trigger a retest. @mrry Can you do that?

@mrry mrry added the kokoro:force-run Tests on submitted change label Apr 12, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Apr 12, 2018
@mrry

mrry commented Apr 12, 2018

Copy link
Copy Markdown
Contributor

@meteorcloudy Sure: for future reference, you now have to apply the "kokoro:force-run" label to the PR to kick off the tests.

@meteorcloudy

Copy link
Copy Markdown
Member

@mrry Got it, thanks!

@rongjiecomputer

Copy link
Copy Markdown
Contributor Author

Last commit fixes the remaining failing CI tests ("GPU CC", "GPU Python3" and "XLA"), caused by including non-existing header file. Sorry for the spam.

@mrry mrry added the kokoro:force-run Tests on submitted change label Apr 12, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Apr 12, 2018
@mrry
mrry merged commit 7bf6efa into tensorflow:master Apr 12, 2018
@rongjiecomputer
rongjiecomputer deleted the compiler_msvc branch April 12, 2018 22:37
armasanea pushed a commit to armasanea/tensorflow that referenced this pull request Jul 6, 2018
…low#18448)

* Replace all COMPILER_MSVC to _MSC_VER and _WIN32 accordingly

* One more ARRAYSIZE to TF_ARRAYSIZE

* Delete non-existing include
copybara-service Bot pushed a commit that referenced this pull request Oct 29, 2024
Imported from GitHub PR openxla/xla#18448

First part of splitting up #17982
Copybara import of the project:

--
8ecc06c64422558094c5d1a913d4b425ca453435 by chaser <[email protected]>:

Don't inline stream annotated kCalls

Merging this change closes #18448

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#18448 from chaserileyroberts:chase/stream_call_noinline 8ecc06c64422558094c5d1a913d4b425ca453435
PiperOrigin-RevId: 691070675
copybara-service Bot pushed a commit that referenced this pull request Nov 1, 2024
Imported from GitHub PR openxla/xla#18448

First part of splitting up #17982
Copybara import of the project:

--
8ecc06c64422558094c5d1a913d4b425ca453435 by chaser <[email protected]>:

Don't inline stream annotated kCalls

Merging this change closes #18448

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#18448 from chaserileyroberts:chase/stream_call_noinline 8ecc06c64422558094c5d1a913d4b425ca453435
PiperOrigin-RevId: 691070675
copybara-service Bot pushed a commit that referenced this pull request Nov 7, 2024
Imported from GitHub PR openxla/xla#18448

First part of splitting up #17982
Copybara import of the project:

--
8ecc06c64422558094c5d1a913d4b425ca453435 by chaser <[email protected]>:

Don't inline stream annotated kCalls

Merging this change closes #18448

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#18448 from chaserileyroberts:chase/stream_call_noinline 8ecc06c64422558094c5d1a913d4b425ca453435
PiperOrigin-RevId: 691070675
copybara-service Bot pushed a commit that referenced this pull request Nov 7, 2024
Imported from GitHub PR openxla/xla#18448

First part of splitting up #17982
Copybara import of the project:

--
8ecc06c64422558094c5d1a913d4b425ca453435 by chaser <[email protected]>:

Don't inline stream annotated kCalls

Merging this change closes #18448

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#18448 from chaserileyroberts:chase/stream_call_noinline 8ecc06c64422558094c5d1a913d4b425ca453435
PiperOrigin-RevId: 691070675
copybara-service Bot pushed a commit that referenced this pull request Nov 8, 2024
Imported from GitHub PR openxla/xla#18448

First part of splitting up #17982
Copybara import of the project:

--
8ecc06c64422558094c5d1a913d4b425ca453435 by chaser <[email protected]>:

Don't inline stream annotated kCalls

Merging this change closes #18448

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#18448 from chaserileyroberts:chase/stream_call_noinline 8ecc06c64422558094c5d1a913d4b425ca453435
PiperOrigin-RevId: 691070675
copybara-service Bot pushed a commit that referenced this pull request Nov 8, 2024
Imported from GitHub PR openxla/xla#18448

First part of splitting up #17982
Copybara import of the project:

--
8ecc06c64422558094c5d1a913d4b425ca453435 by chaser <[email protected]>:

Don't inline stream annotated kCalls

Merging this change closes #18448

PiperOrigin-RevId: 694522066
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants