[REVIEW]Make dgl, pytorch optional imports for cugraph_dgl package#2936
Conversation
Codecov ReportBase: 60.80% // Head: 65.03% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## branch-22.12 #2936 +/- ##
================================================
+ Coverage 60.80% 65.03% +4.22%
================================================
Files 122 5 -117
Lines 6891 163 -6728
================================================
- Hits 4190 106 -4084
+ Misses 2701 57 -2644 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
| @@ -0,0 +1,693 @@ | |||
| # This file helps to compute a version number in source trees obtained from | |||
There was a problem hiding this comment.
Automatically generated file by versioneer.py following other sub-packages.
| versionfile_source = cugraph_dgl/_version.py | ||
| versionfile_build = cugraph_dgl/_version.py | ||
| tag_prefix = v | ||
| parentdir_prefix = cugraph_dgl- |
There was a problem hiding this comment.
To create versions consitent with cugraph
| @@ -0,0 +1,2205 @@ | |||
|
|
|||
| # Version: 0.28 | |||
There was a problem hiding this comment.
Automatically generated file by versionieer
| # Assert same values sorted by src | ||
| exp_src_perm = exp_src.argsort() | ||
| exp_src = exp_src[exp_src_perm] | ||
| exp_dst = exp_dst[exp_src_perm] | ||
|
|
||
| cu_src_perm = cu_src.argsort() | ||
| cu_src = cu_src[cu_src_perm] | ||
| cu_dst = cu_dst[cu_src_perm] | ||
|
|
||
| np.testing.assert_equal(exp_dst, cu_dst) | ||
| np.testing.assert_equal(exp_src, cu_src) |
There was a problem hiding this comment.
Sort based on dst and then verify same results.
|
@rlratzel , All reviews addressed , please feel free to review again. |
|
@gpucibot merge |
This PR :
dglandpytorchoptional and makes them a run-time dependency to allow them to built cleanly in the DLFW container environment.Verified locally as following (Can import cugraph_dgl in an environment without torch or dgl) :
versioneerto align the source built packages tag with cugraph.cugraph-dglbuilds onpy-3.8Closes issue: #2939
CC: @rlratzel