Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7287 讨论

FFT, DftiCommitDescriptor error: Module not found

Serjio
新分销商 I
4,296 次查看

tried to use FFT from MKL and got an error.

I'm using Win10, VS2019 and mkl 2021.2.0 from intel.oneapi.win.BaseKit.package.

 

I run official one-dimensional In-place FFT example ( see basic_dp_complex_dft_1d.c ) in c++ console application and defined an error.

 

status = DftiCommitDescriptor(hand); // Error is here

 Here it is an error message - "Exception adress 0x76C2A6E2 (KernelBase.dll) in test.exe: 0xC06D007E: Module not found ".

 

Could please help me to fix this problem?

 

0 项奖励
1 解答
MRajesh_intel
主持人
4,216 次查看

Hi,

 

When you set debug to x86 mode, automatically 32-bit implementation of the compiler is added to the environment.

 

If not done automatically set the path to:

 

PATH=C:\Program Files (x86)\Intel\oneAPI\compiler\2021.2.0\windows\redist\ia32_win\compiler;C:\Program Files (x86)\Intel\oneAPI\mkl\2021.2.0\redist\ia32;%PATH%

 

 

 

I hope this answers your query. Please let us know if you have any other issues. If not, can we proceed further to close this thread?

 

Regards

Rajesh.

 

在原帖中查看解决方案

0 项奖励
6 回复数
MRajesh_intel
主持人
4,255 次查看

Hi,

 

Can you please share the Visual Studio version and the settings used? In the meanwhile, try setting the environment details in Debugging section, in the Configuration Properties section to:

PATH=C:\Program Files (x86)\Intel\oneAPI\compiler\2021.2.0\windows\redist\intel64_win\compiler;C:\Program Files (x86)\Intel\oneAPI\mkl\2021.2.0\redist\intel64;%PATH%

 

 

Let us know if you face any issues.

 

Regards

Rajesh.

 

0 项奖励
Serjio
新分销商 I
4,250 次查看

Hi, Rajesh.

 

My Visual Studio version: Community 2019 v16.9.4

 

It seems to me, that my project needs to be configured correctly.

When I specify the environment details in Debugging section, in the Configuration Properties section to:

 

PATH=C:\Program Files (x86)\Intel\oneAPI\compiler\2021.2.0\windows\redist\intel64_win\compiler;C:\Program Files (x86)\Intel\oneAPI\mkl\2021.2.0\redist\intel64;%PATH%

 

debugging.jpg

I get an error when debugging starts:
"Error while starting the application (0xc000007b)"

So, please help me set up Visual Studio to use Intel OneMKL.

Let's start by setting the environment variables as I haven't set any variables since installing Intel oneAPI.win.BaseKit.
This is how my Visual Studio settings look like:

VS2019_settings1.jpg

VS2019_settings2.jpg

VS2019_settings3.jpg

 

VS2019_settings4.jpg

VS2019_settings5.jpg

VS2019_settings6.jpg

VS2019_settings7.jpg

Do I need to use the setvars.bat script from Intel oneAPI to set system variables in Windows?

Sorry there are so many questions))

0 项奖励
MRajesh_intel
主持人
4,243 次查看

Hi,

 

Also, try setting the Debug setting to x64 and let us know if that works.

 

Debug Setting.PNG

Regards

Rajesh.

 

0 项奖励
Serjio
新分销商 I
4,236 次查看

If I set "Solution Platforms" to x64, then the FTF calculation works fine!

VisualStudio2019_Ok.jpg


Thanks, Rajesh.
But... if I need to do my project in x32 mode? How to make debug in x32 mode?

0 项奖励
MRajesh_intel
主持人
4,217 次查看

Hi,

 

When you set debug to x86 mode, automatically 32-bit implementation of the compiler is added to the environment.

 

If not done automatically set the path to:

 

PATH=C:\Program Files (x86)\Intel\oneAPI\compiler\2021.2.0\windows\redist\ia32_win\compiler;C:\Program Files (x86)\Intel\oneAPI\mkl\2021.2.0\redist\ia32;%PATH%

 

 

 

I hope this answers your query. Please let us know if you have any other issues. If not, can we proceed further to close this thread?

 

Regards

Rajesh.

 

0 项奖励
MRajesh_intel
主持人
4,206 次查看

 Hi,

 

Thanks for accepting as a Solution.

 

As this issue has been resolved, we will no longer respond to this thread. If you require any additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.

 

Have a Good day.

 

Regards

Rajesh

 

0 项奖励
回复