Skip to content

Fixes CI build script #1350

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 2 commits into from
Jan 26, 2024

Conversation

xinyazhang
Copy link

Fixes Internal #6882

This is caused by two problems in combination.

  1. CMAKE_PREFIX_PATH was set to /opt/conda/lib even if the pytorch uses a different conda environment to build, say /opt/conda/envs/py_3.9
  2. The code to parse /etc/os-release is incorrect and the distribution info was parsed as PRETTY_Ubuntu instead of Ubuntu. libtinfo will not be linked into the binary due to this flaw. Thus, cpp unit tests failed to build because of missing symbols from libtinfo

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.
@xinyazhang xinyazhang marked this pull request as ready for review January 22, 2024 19:12
@pruthvistony
Copy link
Collaborator

I am ok with CMAKE_PREFIX_PATH changes. Want to trigger a CI build with
rocm6.1_internal_testing+this PR + AOTriton enabled
to confirm.

@pruthvistony
Copy link
Collaborator

@pruthvistony pruthvistony merged commit 5d5780c into rocm6.1_internal_testing Jan 26, 2024
pruthvistony pushed a commit that referenced this pull request Mar 12, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
pruthvistony pushed a commit that referenced this pull request Mar 12, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
xinyazhang added a commit that referenced this pull request Mar 12, 2024
1. Configurable CMAKE_PREFIX_PATH in CI script.

CMAKE_PREFIX_PATH should honor $CONDA_PREFIX as described in PyTorch
build instructions.

2. Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.
pytorchmergebot pushed a commit that referenced this pull request Mar 19, 2024
1. Configurable CMAKE_PREFIX_PATH in CI script.

CMAKE_PREFIX_PATH should honor $CONDA_PREFIX as described in PyTorch
build instructions.

2. Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.
pytorchmergebot pushed a commit that referenced this pull request Apr 10, 2024
1. Configurable CMAKE_PREFIX_PATH in CI script.

CMAKE_PREFIX_PATH should honor $CONDA_PREFIX as described in PyTorch
build instructions.

2. Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.
pruthvistony pushed a commit that referenced this pull request Apr 23, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
pytorchmergebot pushed a commit that referenced this pull request Apr 30, 2024
1. Configurable CMAKE_PREFIX_PATH in CI script.

CMAKE_PREFIX_PATH should honor $CONDA_PREFIX as described in PyTorch
build instructions.

2. Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.
dnikolaev-amd pushed a commit that referenced this pull request Jun 20, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
pruthvistony pushed a commit that referenced this pull request Aug 12, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
dnikolaev-amd pushed a commit that referenced this pull request Sep 16, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
jithunnair-amd pushed a commit that referenced this pull request Oct 3, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
jithunnair-amd pushed a commit that referenced this pull request Oct 11, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
jithunnair-amd pushed a commit that referenced this pull request Oct 11, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
jithunnair-amd pushed a commit that referenced this pull request Oct 11, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
jithunnair-amd pushed a commit that referenced this pull request Nov 19, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
pruthvistony pushed a commit that referenced this pull request Dec 2, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
pruthvistony pushed a commit that referenced this pull request Dec 21, 2024
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.
dnikolaev-amd pushed a commit that referenced this pull request Apr 17, 2025
* Fix the parsing of /etc/os-release

The old code parses OS_DISTRO as 'PRETTY_Ubuntu' on Ubuntu and thus
never links to libtinfo correctly.

* Configurable CMAKE_PREFIX_PATH in CI script.

(cherry picked from commit 090d95f)
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