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

solve mklml memory leak on windows #24015

Merged
merged 3 commits into from
May 1, 2020
Merged

solve mklml memory leak on windows #24015

merged 3 commits into from
May 1, 2020

Conversation

luotao1
Copy link
Contributor

@luotao1 luotao1 commented Apr 20, 2020

IF(WIN32)
SET(MKLML_VER "mklml_win_${TIME_VERSION}" CACHE STRING "" FORCE)
Copy link
Contributor

Choose a reason for hiding this comment

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

报错在这个地方 http://10.87.145.41:8111/viewLog.html?buildId=332739&buildTypeId=PaddleWindows_PrWindowsCi&tab=buildLog&branch_PaddleWindows=pull%2F24015&_focus=993
新的mklml比原来版本少了个msvcr120.dll,导致在这个地方
https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/pybind/CMakeLists.txt#L69-L74 拷贝出错了,需要看以下是要改mklml.cmake还是op_function_cmd这里

Copy link
Contributor Author

Choose a reason for hiding this comment

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

新的mklml比原来版本少了个msvcr120.dll

@yinghu5 能帮忙看下这个msvcr120.dll是不是不需要了?

@yinghu5
Copy link

yinghu5 commented Apr 28, 2020

Hi Tao,
the msvcr120.dll is some old version of Microsoft C runtime library, it should be not needed as we assume that most running windows machine should have such of library by default.
Thanks
Ying

@zhwesky2010 zhwesky2010 mentioned this pull request Apr 29, 2020
IF(WIN32)
SET(MKLML_VER "mklml_win_${TIME_VERSION}" CACHE STRING "" FORCE)
SET(MKLML_VER "mklml_win_2019.0.5.20190502" CACHE STRING "" FORCE)
SET(MKLML_URL "https://paddlepaddledeps.bj.bcebos.com/${MKLML_VER}.zip" CACHE STRING "" FORCE)
SET(MKLML_LIB ${MKLML_LIB_DIR}/mklml.lib)
SET(MKLML_IOMP_LIB ${MKLML_LIB_DIR}/libiomp5md.lib)
Copy link
Contributor

Choose a reason for hiding this comment

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

可以不需要,编译没问题。把依赖MKLML_SHARED_LIB_DEPS的地方去掉,有4个地方。另外demo_ci/CMakeLists.txt中有一个msvcr120.dll也需要去掉,共5个位置。

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Apr 30, 2020
@PaddlePaddle PaddlePaddle unlocked this conversation Apr 30, 2020
@luotao1 luotao1 requested a review from Superjomn April 30, 2020 06:21
Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 9eedf05 into PaddlePaddle:develop May 1, 2020
@luotao1 luotao1 deleted the mklml_win branch May 1, 2020 14:28
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.

5 participants