Skip to content

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

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

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>
@MMelQin MMelQin requested review from gigony and vikashg November 26, 2021 03:19
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 deleted the mqin/update_numpy_version_to_avoid_conda_MKL_issue branch February 3, 2025 23:11
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.

2 participants