-
Notifications
You must be signed in to change notification settings - Fork 75
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
open log #710
base: ipu_stable_sdk2.2.2
Are you sure you want to change the base?
open log #710
Conversation
update some log type to err & get sdk packagehash in use_default() use assign instead of =& remove useless logic close log
yanwei seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
@@ -62,7 +62,8 @@ odla_status odla_SetComputationItem(odla_computation comp, odla_item_type type, | |||
case ODLA_CACHE_DIR: | |||
comp->opts.cache_dir = (reinterpret_cast<char*>(value)); | |||
break; | |||
case 1001: // load cache directly, need set path of cache file | |||
case 1001: // load cache directly, so need set path of cache file | |||
setenv("POPART_LOG_LEVEL", "INFO", 1); |
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.
how about something like
log=getenv("POPART_LOG_LEVEL");
if (log == nullptr) {
setenv("POPART_LOG_LEVEL", "INFO", 1);
}
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.
another way is adding a separate case:
case ODLA_LOG_LEVEL:
setenv(...)
No description provided.