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

[XLA:GPU] Fix compilation failures under MSVC. #5501

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

[XLA:GPU] Fix compilation failures under MSVC.

Two problems:

  • 1L is not int64 sized on Windows, leading to a template argument deduction problem.
  • MSVC limits string literals to 16K characters. However, you can use string literal concatenation to concatenate shorter literals into a long literal. Do that instead.

@@ -522,7 +522,8 @@ static const char* buffer_compare_ptx = R"(
$L__BB1_9:
ret;

}
})"
R"(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it better to add some comment in between in case someone try to merge it back...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants