Skip to content

Make it possible to use VS2019 as the compiler in binary jobs #445

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

Merged
merged 7 commits into from
May 26, 2020

Conversation

peterjc123
Copy link
Contributor

@peterjc123 peterjc123 commented May 19, 2020

@peterjc123 peterjc123 changed the title Migrate to VS2019 Make it possible to use VS2019 as the host compiler May 23, 2020
@peterjc123 peterjc123 changed the title Make it possible to use VS2019 as the host compiler Make it possible to use VS2019 as the compiler in binary jobs May 23, 2020
@peterjc123 peterjc123 marked this pull request as ready for review May 23, 2020 15:36
@peterjc123
Copy link
Contributor Author

Please merge after pytorch/pytorch#38957 is landed. cc @soumith @seemethere

facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request May 26, 2020
Summary:
To make it configurable  in pytorch/builder#445.
Pull Request resolved: #38957

Differential Revision: D21721933

Pulled By: ezyang

fbshipit-source-id: 510b19e59bed4ff9d6c39173b4d5c5fc69290ed0
$process = Start-Process "${PWD}\vs_installer.exe" -ArgumentList $VS_INSTALL_ARGS -NoNewWindow -Wait -PassThru
Remove-Item -Path vs_installer.exe -Force
$exitCode = $process.ExitCode
if (($exitCode -ne 0) -and ($exitCode -ne 3010)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please copy VSCollect.exe logic here from https://github.com/pytorch/pytorch/blob/master/.circleci/scripts/vs_install.ps1#L25

And this script is not at all used right now, isn't it?

Copy link
Contributor Author

@peterjc123 peterjc123 May 26, 2020

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you please copy VSCollect.exe logic here from https://github.com/pytorch/pytorch/blob/master/.circleci/scripts/vs_install.ps1#L25

Sound reasonable. Will need to upload them as artifacts in binary jobs,

@malfet malfet merged commit eb340b4 into pytorch:master May 26, 2020
facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request May 26, 2020
Summary:
This PR relies on #38957 and pytorch/builder#445.
Tested with #38949 and #38956.
Will need a rebase after the dependent commits go in
Pull Request resolved: #38959

Differential Revision: D21732423

Pulled By: malfet

fbshipit-source-id: 50837a026a575bb3d547526e299db7bcfd7637a8
@peterjc123 peterjc123 deleted the switch_to_vs2019 branch May 27, 2020 08:55
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.

3 participants