-
Notifications
You must be signed in to change notification settings - Fork 105
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
Looking for pthread.h - not found #10
Comments
Even after my cmake build isnt successful and got these errors (tfod) E:\Documents\Projects\neo-ai-dlr\build>cmake ..; make -j4; cd ..
does not contain a CMakeLists.txt file. -- Looking for clock_gettime in rt -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- Looking for pthread.h I tried running the (tfod) E:\Documents\Projects\neo-ai-dlr\python>python setup.py install |
Still got this error after you fixed the issue #3 -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- Looking for pthread.h Please see these |
@zubairahmed-ai POSIX Thread ( |
Also, this line won't work in Windows: Lines 63 to 64 in a5ca866
TODO: test DLR in Windows |
Did you see that your colleague fixed the |
No, this is a different issue. |
Alright so please test it on windows, I really need to have it working on Windows. Thanks |
Any update to this? |
Working on it. |
@zubairahmed-ai I've submitted two patches to get Windows builds working: neo-ai/treelite#1, neo-ai/tvm#1. With these patches, I was able to build Once the patches are reviewed and merged, we'll let you know. |
Sweet. Please do update the instructions to use this on Windows if required |
@zubairahmed-ai How do you plan to compile ML models? (Keep in mind that DLR is a runtime only, so compilation will need to occur somewhere.) Currently, Amazon SageMaker Neo only supports Linux targets: So to compile ML models to run in Windows machines, we'll need to use TVM and Treelite directly. Would you be able to explain your potential use cases, so that we can provide some pointers as to how to proceed with compilation. |
Thanks for the explanation, is it possible to use these models on mobile devices? |
Yes, we currently support 4 edge device targets (Jetson TX 1/2, DeepLens, Raspberry Pi 3b). Edge devices generally run a variant of Linux, so we have been focusing on Linux support mainly.
Not yet. Running ML models on mobile devices requires close collaboration with phone makers. There is active effort under way toward this end. |
Alright make sense, then I will try running them on Windows itself with TVM and Treelite, please do let me know how to do that exactly |
Treelite lets you compile XGBoost (decision tree ensemble) models in a few lines of code: import treelite
model = treelite.Model.load('my_model.model', model_format='xgboost')
model.export_lib(toolchain='msvc', libpath='./mymodel.dll', verbose=True) (from Treelite Quick Start) TVM lets you compile deep learning models written in MXNet, TensorFlow, etc. Here is the link for tutorials. Compiling deep learning models is considerably more complex than XGBoost models, and not all models may be supported (due to existence of many DL operators). Which DL framework are you using, and what kind of DL architecture are you planning to use? In general, computer vision models are well supported. |
I am using SSD MobileNet v2 mostly, but the one I'm struggling with most is RetinaNet because its huge in size, would this be supported? I used Keras with Tensorflow backend to train RetinaNet and SSDMobileNetv2 is trained with Tensorflow using its configuration file Thanks for the links |
Thanks for your reply. I will reach out to my teammates and get back to you regarding SSD and RetinaNet support. |
@zubairahmed-ai To answer your question:
|
Tough luck |
* Fix Windows build Fixes #10. * Use correct paths for model artifacts * Further refine library detection logic * Ignore subdirectories in model artifact directory, don't throw
Resolving this now, since Windows support has been added. Will follow up with another PR to add build instructions for Windows |
Thanks |
CMakeError.log
CMakeOutput.log
I am getting the errors below
CMake Error at CMakeLists.txt:131 (add_subdirectory):
The source directory E:/Documents/Projects/neo-ai-dlr/3rdparty/neo-ai-treelite does not contain a CMakeLists.txt file.
I tried git clone of
neo-ai-treelite
in this but then I still get this error-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- TVM_RUNTIME_LINKER_LIBS:
-- Configuring incomplete, errors occurred!
See also "E:/Documents/Projects/neo-ai-dlr/build/CMakeFiles/CMakeOutput.log".
See also "E:/Documents/Projects/neo-ai-dlr/build/CMakeFiles/CMakeError.log".
Not sure how to fix this
The text was updated successfully, but these errors were encountered: