Skip to content
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

Open
wants to merge 20 commits into
base: ipu_stable_sdk2.2.2
Choose a base branch
from

Conversation

yanwei-gr
Copy link
Collaborator

No description provided.

@CLAassistant
Copy link

CLAassistant commented Nov 30, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ jackzipu
❌ yanwei
❌ yanwei-gr


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);
Copy link
Collaborator

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);
}

Copy link
Collaborator

@weimingzha0 weimingzha0 Nov 30, 2021

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(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants