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

torchao setup.py with cmake #1490

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

metascroy
Copy link
Contributor

Summary:
Initial draft of using cmake in torchao's build process.

Install torchao with:

USE_CPP=1 pip install .

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib. On import of torchao, if this library is found it is loaded.

Differential Revision: D67777662

Copy link

pytorch-bot bot commented Jan 3, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1490

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 8e46608 with merge base cedadc7 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 3, 2025
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

metascroy added a commit to metascroy/ao that referenced this pull request Jan 6, 2025
Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

metascroy added a commit to metascroy/ao that referenced this pull request Jan 6, 2025
Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

metascroy added a commit to metascroy/ao that referenced this pull request Jan 6, 2025
Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

@jerryzh168 jerryzh168 added topic: not user facing Use this tag if you don't want this PR to show up in release notes topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) and removed topic: not user facing Use this tag if you don't want this PR to show up in release notes labels Jan 7, 2025
metascroy added a commit to metascroy/ao that referenced this pull request Jan 7, 2025
Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Reviewed By: drisspg

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

metascroy added a commit to metascroy/ao that referenced this pull request Jan 10, 2025
Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Reviewed By: kimishpatel, drisspg

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

metascroy added a commit to metascroy/ao that referenced this pull request Jan 10, 2025
Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Reviewed By: kimishpatel, drisspg

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

metascroy added a commit to metascroy/ao that referenced this pull request Jan 10, 2025
Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Reviewed By: kimishpatel, drisspg

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

metascroy added a commit to metascroy/ao that referenced this pull request Jan 10, 2025
Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Reviewed By: kimishpatel, drisspg

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

Summary:

Initial draft of using cmake in torchao's build process.

Install torchao with:

```
USE_CPP=1 pip install .
```

If on an arm64 machine, it builds the dynamic library for torchao at site-packages/torchao/libtorchao_ops_aten.dylib.  On import of torchao, if this library is found it is loaded.

Reviewed By: kimishpatel, drisspg

Differential Revision: D67777662
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D67777662

@facebook-github-bot facebook-github-bot merged commit 9c2635b into pytorch:main Jan 10, 2025
45 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants