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

[build] Changed setup.py for wheel building to a more stable version #3105

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

afalkenberg1
Copy link
Collaborator

We are using the setup.py to build a wheel as for example in:

CMAKE_GENERATOR=Ninja python setup.py bdist_wheel --dist-dir ./torch-mlir-wheel -v
pip uninstall torch-mlir
pip install torch-mlir-wheel/torch_mlir-0.0.1-cp310-cp310-linux_x86_64.whl

I found that I needed to change setup.py to use clang, ccache and also turn off LTC by setting
TORCH_MLIR_ENABLE_LTC_DEFAULT=False.
This usually led to a version which I can usually build without any additional problems.
Not sure if this might be of general interest and warrant a PR.
Thank you

@afalkenberg1 afalkenberg1 changed the title Changed setup.py for wheel building to a more stable version [build] Changed setup.py for wheel building to a more stable version Apr 3, 2024
@afalkenberg1 afalkenberg1 requested a review from antoniojkim April 4, 2024 20:43
@afalkenberg1
Copy link
Collaborator Author

maybe someone can comment on this ?
@vivekkhandelwal1
@rsuderman

@@ -49,7 +49,7 @@ def check_env_flag(name: str, default=None) -> bool:
PACKAGE_VERSION = os.environ.get("TORCH_MLIR_PYTHON_PACKAGE_VERSION") or "0.0.1"

# If true, enable LTC build by default
TORCH_MLIR_ENABLE_LTC_DEFAULT = True
TORCH_MLIR_ENABLE_LTC_DEFAULT = False
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you need to disable LTC? What build failures do you encounter using clang?

@vivekkhandelwal1
Copy link
Collaborator

Hi @afalkenberg1, do we still need this patch?

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