-
Notifications
You must be signed in to change notification settings - Fork 425
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
[GAE-Java] Automatically load grape_jvm_opt
when create jvm instances through JNI
#2327
Conversation
analytical_engine/core/java/utils.h
Outdated
std::string exec(const char* cmd) { | ||
std::array<char, 128> buffer; | ||
std::string result; | ||
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose); |
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.
Any idea for better way to do this?
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2327 +/- ##
==========================================
+ Coverage 71.66% 72.87% +1.20%
==========================================
Files 89 89
Lines 9956 9956
==========================================
+ Hits 7135 7255 +120
+ Misses 2821 2701 -120
Continue to review full report at Codecov.
|
Previously, GAE Java requires
GRAPE_JVM_OPTS
to create jvm instance, which shall be export to environment withsource ${GRAPHSCOPE_HOME}/conf/grape_jvm_opt
.With this PR, the required env variable will be automatically loaded.
GRAPHSCOPE_HOME
to analytical engine instance.grape_jvm_opt
throughGRAPHSCOPE_HOME
GRAPE_JVM_OPTS
before creating jvm instance through JNI.Update SSSPContext.java, writing result to C++ vertex array, allow the python context getting the result.