-
Notifications
You must be signed in to change notification settings - Fork 648
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
[Refactor][tools] Add prebuild tools. #347
Conversation
Codecov Report
@@ Coverage Diff @@
## dev-v0.5.0 #347 +/- ##
==============================================
+ Coverage 59.18% 62.47% +3.29%
==============================================
Files 233 221 -12
Lines 7739 7366 -373
Branches 1186 1136 -50
==============================================
+ Hits 4580 4602 +22
+ Misses 2835 2434 -401
- Partials 324 330 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Remove dependency in |
Note that new api might require some features from this PR. |
import os | ||
old_cuda_device = os.environ.get('CUDA_DEVICE', None) | ||
os.environ['CUDA_DEVICE'] = str(device_id) | ||
import pycuda.autoinit # noqa:F401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may add pycuda to requirements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I tested on Jetson, I only install successful with pycuda==2019.1
. I haven't look up why yet.
I suggest we do not using lastest version of pycuda, we can set it to 2019.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found that pycuda has been released not so often. Have you tried version of 2021.1?
The builder has been moved here. |
Me too. |
I am afraid the package will explode if we put backend as a part of the package name.
|
In windows, after running the prebuild scripts, a |
It is a copy of |
If they are not necessary for our users, I think we can remove it safely. |
* move to lib * optional import pytorch rewriter * reduce torch dependancy of tensorrt export * remove more mmcv support * fix pytest * remove mmcv logge * Add `mmdeploy.utils.logging` * Improve the common of the `get_logger` * Fix lint * onnxruntim add try catch to import wrapper if pytorch is available * Using `mmcv.utils.logging` in all files under `mmdeploy/codebase` * add __init__ * add prebuild tools * support windows * for comment * exit if failed * add exist * decouple * add tags * remove .mmdeploy_python * read python version from system * update windows config * update linux config * remote many * better build name * rename python tag * fix pyhon-tag * update window config * add env search * update tag * fix build without CUDA_TOOLKIT_ROOT_DIR Co-authored-by: HinGwenWoong <[email protected]>
* move to lib * optional import pytorch rewriter * reduce torch dependancy of tensorrt export * remove more mmcv support * fix pytest * remove mmcv logge * Add `mmdeploy.utils.logging` * Improve the common of the `get_logger` * Fix lint * onnxruntim add try catch to import wrapper if pytorch is available * Using `mmcv.utils.logging` in all files under `mmdeploy/codebase` * add __init__ * add prebuild tools * support windows * for comment * exit if failed * add exist * decouple * add tags * remove .mmdeploy_python * read python version from system * update windows config * update linux config * remote many * better build name * rename python tag * fix pyhon-tag * update window config * add env search * update tag * fix build without CUDA_TOOLKIT_ROOT_DIR Co-authored-by: HinGwenWoong <[email protected]>
This PR provides tools to build prebuilt tools. Some other files are also modified to support the pre-build packaging.
Has been tested on linux-x64, both PC and jetson. TesnorRT on both platform and ONNXRuntime on PC.
Usage:
You might need to edit your own config file to build a different package.
Windows package can also be built, but it has not been tested.