Angel-ML / PyTorch-On-Angel

PyTorch On Angel, arming PyTorch with a powerful Parameter Server, which enable PyTorch to train very big models.
165 stars 51 forks source link

make failed #4

Closed XingweiChen closed 3 years ago

XingweiChen commented 5 years ago

I follow the instruction[Compilation & Deployment Instructions] to compile and deploy on my mac. But the following error occurred. image image Seems "jni_md.h" is not found on the specified directory. How can deal with it?

ouyangwen-it commented 5 years ago

I follow the instruction[Compilation & Deployment Instructions] to compile and deploy on my mac. But the following error occurred. image image Seems "jni_md.h" is not found on the specified directory. How can deal with it?

set include path in CMakeList.txt.

leleyu commented 5 years ago

This problem is caused by "cannot find jni_md.h" and jni_md.h is existed under the directory of Headers/darwin. So maybe you can add one "include_directories(${JAVA_INCLUDE_PATH}/darwin)" line in the CMakeLists.txt

XingweiChen commented 5 years ago

Thank you for your reply. However after add "include_directories(${JAVA_INCLUDE_PATH}/darwin)" line, I got following error. image