Skip to content

[ROCm] Fix compiler unwrapping step in jenkins build scripts for Caffe2/PyTorch on ROCm#25409

Closed
iotamudelta wants to merge 11 commits intopytorch:masterfrom
iotamudelta:fix_regex_twodigit_clang
Closed

[ROCm] Fix compiler unwrapping step in jenkins build scripts for Caffe2/PyTorch on ROCm#25409
iotamudelta wants to merge 11 commits intopytorch:masterfrom
iotamudelta:fix_regex_twodigit_clang

Conversation

@iotamudelta
Copy link
Copy Markdown
Contributor

Fix the regex (requires enabling extglob) for two digit clang releases.

While there, also fix it for three digit releases with the hope that I
do not need to touch it for some time.

Unfortunately, this regex requires extglob to be enabled in the shell.

While there, also fix it for three digit releases with the hope that I
do not need to touch it for some time.
@iotamudelta iotamudelta added module: rocm AMD GPU support for Pytorch open source labels Aug 29, 2019
@iotamudelta iotamudelta requested review from bddppq and ezyang August 29, 2019 18:15
@pytorchbot pytorchbot added the module: ci Related to continuous integration label Aug 29, 2019
@iotamudelta
Copy link
Copy Markdown
Contributor Author

@pytorchbot retest this please

Copy link
Copy Markdown
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

lol

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Aug 29, 2019

@pytorchbot rebase this please

@pytorchbot
Copy link
Copy Markdown
Collaborator

Sorry, I can't merge this because there are conflicts. To merge this yourself, run the commands below:

git fetch origin master
git fetch git@github.com:iotamudelta/pytorch.git fix_regex_twodigit_clang
git checkout FETCH_HEAD
git merge origin/master
git push git@github.com:iotamudelta/pytorch.git HEAD:fix_regex_twodigit_clang

(To learn more about this bot, see Bot commands.)

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Aug 29, 2019

Kinnae have a rebase

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Aug 29, 2019

@pytorchbot rebase this please

@pytorchbot
Copy link
Copy Markdown
Collaborator

There's nothing to do! This branch is already up to date with master (1ea1d7f).

(To learn more about this bot, see Bot commands.)

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Aug 29, 2019


Aug 29 20:10:03 ./.jenkins/caffe2/build.sh: line 282: syntax error near unexpected token `('

@ailzhang
Copy link
Copy Markdown
Contributor

ailzhang commented Sep 4, 2019

@pytorchbot rebase this please

@pytorchbot
Copy link
Copy Markdown
Collaborator

Sorry, I can't merge this because there are conflicts. To merge this yourself, run the commands below:

git fetch origin master
git fetch git@github.com:iotamudelta/pytorch.git fix_regex_twodigit_clang
git checkout FETCH_HEAD
git merge origin/master
git push git@github.com:iotamudelta/pytorch.git HEAD:fix_regex_twodigit_clang

(To learn more about this bot, see Bot commands.)

@li-roy
Copy link
Copy Markdown
Contributor

li-roy commented Sep 6, 2019

@pytorchbot retest this please

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Sep 9, 2019

@pytorchbot rebase this please

@pytorchbot
Copy link
Copy Markdown
Collaborator

Sorry, I can't merge this because there are conflicts. To merge this yourself, run the commands below:

git fetch origin master
git fetch git@github.com:iotamudelta/pytorch.git fix_regex_twodigit_clang
git checkout FETCH_HEAD
git merge origin/master
git push git@github.com:iotamudelta/pytorch.git HEAD:fix_regex_twodigit_clang

(To learn more about this bot, see Bot commands.)

@iotamudelta
Copy link
Copy Markdown
Contributor Author

@pytorchbot retest this please

@iotamudelta
Copy link
Copy Markdown
Contributor Author

@pytorchbot rebase this please

@pytorchbot
Copy link
Copy Markdown
Collaborator

Sorry, I can't merge this because there are conflicts. To merge this yourself, run the commands below:

git fetch origin master
git fetch git@github.com:iotamudelta/pytorch.git fix_regex_twodigit_clang
git checkout FETCH_HEAD
git merge origin/master
git push git@github.com:iotamudelta/pytorch.git HEAD:fix_regex_twodigit_clang

(To learn more about this bot, see Bot commands.)

Copy link
Copy Markdown
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

Builds appear to be failing

@iotamudelta
Copy link
Copy Markdown
Contributor Author

yes, the failures seem real. they fall through to the ROCm line (?!) and since shopt extglob was not enabled, the syntax is unknown.

@ezyang any ideas/suggestions here?

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Sep 13, 2019

Maybe shopt has to be placed in the actual source file itself, as it affects parsing?

@iotamudelta
Copy link
Copy Markdown
Contributor Author

the ROCm tests which should be the only ones affected by the change pass though

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Sep 16, 2019

Oh, I bet it's something dumb like, we're running different versions of bash/sh in the CI jobs, and ROCm's is new enough to understand the syntax, but the other ones aren't. Are you sure you can't rewrite this test to do something else?

@iotamudelta
Copy link
Copy Markdown
Contributor Author

I've moved it into a helper script that enables extglob - let's see if that does the trick!

Hardcode everything to bash
@iotamudelta
Copy link
Copy Markdown
Contributor Author

@zou3519 can you revisit? Thanks!

@cpuhrsch cpuhrsch added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Sep 17, 2019
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@bddppq is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@iotamudelta iotamudelta deleted the fix_regex_twodigit_clang branch September 17, 2019 20:57
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@bddppq merged this pull request in 71d3457.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…rch on ROCm (pytorch#25409)

Summary:
Fix the regex (requires enabling extglob) for two digit clang releases.

While there, also fix it for three digit releases with the hope that I
do not need to touch it for some time.

Unfortunately, this regex requires extglob to be enabled in the shell.
Pull Request resolved: pytorch#25409

Differential Revision: D17431786

Pulled By: bddppq

fbshipit-source-id: a50b2ff525d9b6046deae9c8725c92d67119599a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: ci Related to continuous integration module: rocm AMD GPU support for Pytorch open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants