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

Support CUDA for matmul #131

Closed
wants to merge 1 commit into from
Closed

Support CUDA for matmul #131

wants to merge 1 commit into from

Conversation

jeffreysijuntan
Copy link
Contributor

Summary:
This diff does the two following thing:

  1. Implement a encoder for LongTensor that embed fixed-point arithmetic into floating-point arithmetic. It enables us to utilize existing CUDA kernel for floating points to compute matrix multiplication for LongTensor.

  2. Add a new test file test_cuda.py for future CUDA related testing

The encoder currently only supports matmul. Conv2d will be supported in future diffs.

The API design is based on: D21860688

Differential Revision: D21882865

Summary:
This diff does the two following thing:

1. Implement a encoder for LongTensor that embed fixed-point arithmetic into floating-point arithmetic. It enables us to utilize existing CUDA kernel for floating points to compute matrix multiplication for LongTensor.

2.  Add a new test file test_cuda.py for future CUDA related testing

The encoder currently only supports matmul. Conv2d will be supported in future diffs.

The API design is based on: D21860688

Differential Revision: D21882865

fbshipit-source-id: 3f6084c3b1b7fe804b2428c8cc7ab199e6c7d524
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jun 4, 2020
@facebook-github-bot
Copy link
Contributor

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

@knottb knottb closed this Jun 30, 2020
tanjuntao pushed a commit to tanjuntao/CrypTen that referenced this pull request Nov 27, 2023
Summary:
Pull Request resolved: fairinternal/CrypTen#131

Pick build through URL

(Note: this ignores all push blocking failures!)

Reviewed By: marksibrahim

Differential Revision: D17843600

fbshipit-source-id: 4f1fefd557f0fd0ce4be179e0e6f2c28f640bb7f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants