Repository navigation
update test distributed - #62796
update test distributed#62796tktrungna wants to merge 10 commits into
Conversation
[ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit bf976dc (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
| Job | Step | Action |
|---|---|---|
| Run tests | 🔁 rerun | |
| Run tests | 🔁 rerun | |
| Run tests | 🔁 rerun | |
| Run tests | 🔁 rerun | |
| Run tests | 🔁 rerun | |
| Doc Build and Push | 🔁 rerun | |
| Run tests | 🔁 rerun | |
| Run tests | 🔁 rerun | |
| Run tests | 🔁 rerun |
ci.pytorch.org: 1 failed
This comment was automatically generated by Dr. CI (expand for details).
Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group.
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Fixes #62380 * update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder * add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208). ### Test plan check if all ci workflows pass Differential Revision: [D30193142](https://our.internmc.facebook.com/intern/diff/D30193142) [ghstack-poisoned]
Fixes #62380 * update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder * add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208). ### Test plan check if all ci workflows pass Differential Revision: [D30193142](https://our.internmc.facebook.com/intern/diff/D30193142) [ghstack-poisoned]
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Fixes #62380 * update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder * add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208). ### Test plan check if all ci workflows pass Differential Revision: [D30193142](https://our.internmc.facebook.com/intern/diff/D30193142) [ghstack-poisoned]
Fixes #62380 * update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder * add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208). ### Test plan check if all ci workflows pass Differential Revision: [D30193142](https://our.internmc.facebook.com/intern/diff/D30193142) [ghstack-poisoned]
| if(INSTALL_TEST) | ||
| install(TARGETS ProcessGroupNCCLTest DESTINATION bin) | ||
| install(TARGETS ProcessGroupNCCLErrorsTest DESTINATION bin) | ||
| install(TARGETS c10d_cuda_test DESTINATION lib) |
There was a problem hiding this comment.
curious why this one is not bin but lib
There was a problem hiding this comment.
I am a cmake beginner so not sure if this is a correct solution, but basically ProcessGroupNCCLTest needs libc10d_cuda_test.so library.
- Currently,
ProcessGroupNCCLTestis built and put atbuild/bin,libc10d_cuda_test.sois compiled and put atbuild/lib - In this PR, I've added installing step, which copies
ProcessGroupNCCLTestto{env}/site-packages/torch/bin, andlibc10d_cuda_test.soto{env}/site-packages/torch/lib(again would have to reluctantly add sym link to make the tests pass)
There was a problem hiding this comment.
i guess the name is confusing it is not exactly a test but a test util library.
but curious where was INSTALL_TEST defined in the first place? was it in another PR?
There was a problem hiding this comment.
INSTALL_TEST must be an option of the top-level CMakeLists.txt defined here https://github.com/pytorch/pytorch/blob/master/CMakeLists.txt#L174
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Fixes #62380 * update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder * add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208). ### Test plan check if all ci workflows pass Differential Revision: [D30193142](https://our.internmc.facebook.com/intern/diff/D30193142) [ghstack-poisoned]
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@tktrungna merged this pull request in 2f5ac9c. |
Summary: Pull Request resolved: #62796 Fixes #62380 * update test functions to call wheel install folder {sitepackages}/torch instead of build/ folder * add symbolic link for shared libraries which are called by the tests (this is a bit hacky and should be fixed the rpath before compiling -- similar to https://github.com/pytorch/pytorch/blob/master/.jenkins/pytorch/test.sh#L204-L208). ### Test plan check if all ci workflows pass Test Plan: Imported from OSS Reviewed By: driazati Differential Revision: D30193142 Pulled By: tktrungna fbshipit-source-id: 1247f9eda1c11c763c31c7383c77545b1ead1a60
Fixes #62380
Test plan
check if all ci workflows pass
Stack from ghstack:
Differential Revision: D30193142