-
Notifications
You must be signed in to change notification settings - Fork 106
Enable saving run stats from low-level API #904
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
Conversation
…pt struct + move stats update to background worker (post process) from main thread
Codecov Report
@@ Coverage Diff @@
## master #904 +/- ##
==========================================
+ Coverage 81.30% 81.36% +0.06%
==========================================
Files 54 54
Lines 8201 8206 +5
==========================================
+ Hits 6668 6677 +9
+ Misses 1533 1529 -4
Continue to review full report at Codecov.
|
…ery subprocess to get a unique id
… to logs (this has occurred when running with GPU)
@@ -15,6 +15,10 @@ int RAI_InitBackendTF(int (*get_api_fn)(const char *, void *)) { | |||
get_api_fn("RedisModule_Realloc", ((void **)&RedisModule_Realloc)); | |||
get_api_fn("RedisModule_Strdup", ((void **)&RedisModule_Strdup)); | |||
|
|||
// Set min logging level to 3 (out of 5) - this is workaround since if TF is writing extensively | |||
// log messages that to stderr, it may cause the system to be stuck. | |||
RedisModule_Assert(putenv("TF_CPP_MIN_LOG_LEVEL=3") == 0); |
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.
not 5?
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.
I saw that it's working with 3 as well, so I left it like that (not really matters...)
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.
Well Done!
RAI_RunStats
object and APIThis also include some refactor of the
run_test_multiproc
util, that now allows every sub-process that represent a client to have a unique id (to enable some communications between the parent and children)