CNTK: Failed to load DLL 'libacml_mp_dll.dll'; Module not found
Built using VS 2013 on Win10 and testing Simple2d example:
Validating network. 17 nodes to process in pass 2.
Validating network, final pass.
12 out of 25 nodes do not share the minibatch layout with the input data.
Post-processing network complete.
evalNodeNames are not specified, using all the default evalnodes and training criterion nodes.
Allocating matrices for forward and/or backward propagation.
UCIFastReader: Starting at epoch 0, counting lines to determine record count...
603 records found.
starting epoch 0 at record count 0, and file position 0
already there from last epoch
CNTK: Failed to load DLL 'libacml_mp_dll.dll'.
CNTK: Caught Win32 exception 0xc06d007e: Module not found.
libacml_mp_dll.dll is in path Documents\CNTK-master\x64\Release Any suggestions how to remedy?
I rebuilt the binary and noticed the following warning message:
Warning 1 warning LNK4199: /DELAYLOAD:libacml_dll.dll ignored; no imports found from libacml_dll.dll C:\user\username\Documents\CNTK-master\Source\Math\LINK Math
Is this expected?
Since the build process went fine on Win 10, I was curious why the libacml_mp_dll.dll could not be found during Simple2d runtime so I made a debug build type and traced the Win32 exception to the sgemm() call within the CPUMatrix method of CPUMatrix.cpp line 4184.
#pragma warning(suppress : 4244)
#ifdef USE_ACML
**sgemm**(BLAS_COLMAJOR transA, transB, m, n, k, alpha, reinterpret_cast<float*>(a.m_pArray), lda, reinterpret_cast<float*>(b.m_pArray), ldb, beta, reinterpret_cast<float*>(c.m_pArray), ldc);
#else
cblas_sgemm((CBLAS_ORDER) BLAS_COLMAJOR mklTransA, mklTransB, m, n, k, alpha, reinterpret_cast<float*>(a.m_pArray), lda, reinterpret_cast<float*>(b.m_pArray), ldb, beta, reinterpret_cast<float*>(c.m_pArray), ldc);
#endif
I followed the instructions in the code and Windows Setup in the wiki regarding the ACML install:
#ifdef USE_ACML
// Download ACML 5.3.1 (e.g., acml5.3.1-ifort64.exe) or above
// from http://developer.amd.com/tools/cpu-development/amd-core-math-library-acml/acml-downloads-resources/
// Install the ifort64_mp variant (compiled with intel compiler) of the library
// Set Environment variable ACML_PATH to C:\AMD\acml5.3.1\ifort64_mp or the folder you installed acml
// to point to your folder for the include file and link library
#include <acml.h> // requires ACML 5.3.1 and above
And set paths accordingly.
ACML_PATH=C:\AMD\acml5.3.1\ifort64_mp
PATH=C:\repos\CNTK-master\x64\Debug (among others)
I see the instructions suggests "Download ACML 5.3.1 (e.g., acml5.3.1-ifort64.exe) or above". Don't know if this suggests I should use ACML 6.1 for Windows 10.
Any suggestions?
After much trial and error I was unable to resolve the runtime error of my own CNTK build:
CNTK: Failed to load DLL 'libacml_mp_dll.dll'.
CNTK: Caught Win32 exception 0xc06d007e: Module not found.
Until I noticed in the windows binary instructions had the following requirements:
Visual C++ Redistributable Package for Visual Studio 2013 Visual C++ Redistributable Package for Visual Studio 2012
Sure enough, I had inadvertently removed the VS 2012 redistributable when I removed VS 2012 per the suggestion to not have competing VS versions installed although I have retained VS 2015 for other work.
We found that if you have VS 2013 and VS 2012 or VS 2010 installed simultaneously it may cause build failures. Therefore we recommend to have a "clean" installation of Visual Studio 2013.
Once the missing redistributable was installed, the runtime executed simple2d without issue.
Please update "Setup CNTK on Windows" instructions. Also, is the development team also running a Win10 test bed?
Thanks!
Mark, thank you for posting this. I will update instructions, the way you suggest (actually, if you just install a Visual Studio, you automatically get runtimes for the preceding versions; but in your case you were doing manual removals - hence the issues).
And about tested configurations. I plan to post complete configurations we use for testing this week. Shortly, they are Windows 8.1, Windows Server 2012 R2 (same Windows 8.1 kernel) and Ubuntu 14.03 based.
I will close this issue now and thank you a lot once again. Alexey
Thanks Alexey.
I am surprised there is not a Windows 10 configuration in the mix given recent trends in developer OS use.
[(http://stackoverflow.com/research/developer-survey-2016#technology-desktop-operating-system )]
Thanks for all you do to make CNTK a great solution!
Mark, thank YOU! Of course, we’re planning to start regularly testing on Windows 10, but believe me, we are a small (but rather energetic ☺) team, so we need to prioritize tasks. So, stay tuned.
And thank you one more time! Alexey
From: Mark Whiting [mailto:[email protected]] Sent: Monday, March 28, 2016 2:10 PM To: Microsoft/CNTK [email protected] Cc: Alexey Orlov [email protected] Subject: Re: [CNTK] CNTK: Failed to load DLL 'libacml_mp_dll.dll'; Module not found (#290)
Thanks Alexey.
I am surprised there is not a Windows 10 configuration in the mix given recent trends in developer OS use.
[(http://stackoverflow.com/research/developer-survey-2016#technology-desktop-operating-systemhttps://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fstackoverflow.com%2fresearch%2fdeveloper-survey-2016%23technology-desktop-operating-system&data=01%7c01%7calexeyo%40064d.mgd.microsoft.com%7c436b8211ba9849ab7d4e08d35701f0d2%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=2O9HqRO5rS2RiswAk5Cuv2M%2byL25CHBjhDVAvuATiHI%3d )]
Thanks for all you do to make CNTK a great solution!
— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/CNTK/issues/290#issuecomment-202358351