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

Bump numpy >= 1.20 to avoid MKL error in conda env, and add --upgrade for pip install app sdk #211

Merged
merged 1 commit into from Nov 26, 2021

Conversation

MMelQin
Copy link
Collaborator

@MMelQin MMelQin commented Nov 26, 2021

It was found out that when running Jupyter-lab within a environment set up using conda, pytorch encountered error related to MKL, see pytorch issue.

A previous PR modified the Jupyter notebook adding env var ['MKL_THREADING_LAYER'] = 'GNU' to work around the MKL issue, which is one of the suggested fixes.

A cleaner fix, as also stated in the said issue, is to upgrade to numpy 1.20 to avoid the MKL issue without needing the env var workaround.

The example segmentation examples had already been tested with numpy >= 1.20, so it is the safe and correct fix to bump the numpy version >= 1.20, in the apps, as well as in the Jupyter notebooks that copied the app code.

Also added --upgrade option for pip install monai-deploy-app-sdk, in case the env had an earlier version of the sdk installed.

…all monai-deploy-app-sdk

Signed-off-by: mmelqin <mingmelvinq@nvidia.com>
Copy link
Collaborator

@gigony gigony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ming! Looks good to me!

@MMelQin MMelQin merged commit 0444d4d into main Nov 26, 2021
@gigony gigony mentioned this pull request Jan 25, 2022
@MMelQin MMelQin added this to In progress in v0.2.1 via automation Apr 15, 2022
@MMelQin MMelQin moved this from In progress to Done in v0.2.1 Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants