-
Notifications
You must be signed in to change notification settings - Fork 271
Improve the rockbuilder build logic and config options #795
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
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
be8c2fd
Updated rockbuilder logic and config options
lamikr 1d89e60
remove patches dir under experimental/rockbuilder
lamikr e152d4f
rockbuilder README.md update
lamikr 7ab3857
pytorch, pytorch vision and pytorch audio examples
lamikr 86395f7
rockbuilder patches for pytorch audio windows build
lamikr 31853ad
code changes based on to code review
lamikr 0f9ded8
python wheel copy to wheels directory
lamikr 0d1a286
rockbuilder update code review changes round2
lamikr 9f7d836
additional README format fix
lamikr 47b18a6
fixes to errors done on previous codereview round
lamikr 04abf3b
remove tabs from pytorch.cfg
lamikr d25c036
more double underscore to single underscore changes
lamikr 83ea600
updated gitignore
lamikr 8e9c7b1
Revert "rockbuilder patches for pytorch audio windows build"
lamikr 670b2c0
disable pytorch vision and audio builds on windows
lamikr b7f4cb2
Updated the rockbuilder documentation
lamikr 28f5dcf
commit check format cleanups
lamikr daf6c1e
more code formatter check cleanups
lamikr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| src_projects | ||
| builddir | ||
| packages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import torch | ||
| import torchaudio | ||
|
|
||
| print("pytorch version: " + torch.__version__) | ||
| print("pytorch audio version: " + torchaudio.__version__) |
14 changes: 14 additions & 0 deletions
14
experimental/rockbuilder/examples/torch_gpu_hello_world.py
|
lamikr marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import torch | ||
|
|
||
| print("Pytorch version: " + torch.__version__) | ||
| print("ROCM HIP version: " + torch.version.hip) | ||
| X_train = torch.FloatTensor([0.0, 1.0, 2.0]) | ||
| print("cuda device count: " + str(torch.cuda.device_count())) | ||
| print("default cuda device name: " + torch.cuda.get_device_name(0)) | ||
| device = torch.device("cuda" if torch.cuda.is_available() else "cpu") | ||
| print("device type: " + str(device)) | ||
| X_train = X_train.to(device) | ||
| print("Tensor training running on cuda: " + str(X_train.is_cuda)) | ||
| print("Running simple model training test") | ||
| print(" " + str(X_train)) | ||
| print("Hello World, test executed succesfully") |
6 changes: 6 additions & 0 deletions
6
experimental/rockbuilder/examples/torch_vision_hello_world.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import torch, torchvision | ||
|
|
||
| print("pytorch version: " + torch.__version__) | ||
| print("pytorch vision version: " + torchvision.__version__) | ||
|
|
||
| print() |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.