kparzysz-quic commented on a change in pull request #5535:
URL: https://github.com/apache/incubator-tvm/pull/5535#discussion_r421501402



##########
File path: apps/cpp_rpc/rpc_env.cc
##########
@@ -67,7 +67,12 @@ namespace {
 namespace tvm {
 namespace runtime {
 RPCEnv::RPCEnv() {
-  base_ = "./rpc";
+  char cwd[PATH_MAX];
+  if (char *rc = getcwd(cwd, sizeof(cwd))) {
+    base_ = std::string(cwd) + "/rpc";
+  } else {
+    base_ = "./rpc";
+  }

Review comment:
       I don't have a convenient way of testing it on Windows right now, so I'm 
just going to #ifdef it.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to