Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 ディスカッション

oneAPI Classic Fortran Error Message:

Hector56
ビギナー
19,544件の閲覧回数

Installation Details:

Windows: Windows 10 Pro 2004 Build 19041.804
Visual Studio Professional 2019 Version 16.8.5 (New Install on PC, Recommended Installation)
Intel oneAPI Base Toolkit: w_BaseKit_p_2021.1.0.2664 (New Install on PC, Recommended Installation)
Intel oneAPI HPC Toolkit: w_HPCKit_p_2021.1.0.2682 (New Install on PC, Recommended Installation)
Sample oneAPI project: Console1.f90 (Hello Word) 
Both Visual Studio and Intel oneAPI are using the installed default settings for all parameters

When I build the sample Console1.f90 project (Build-> Build Solution), I see the expected output:

Build started...
1>------ Build started: Project: Console1, Configuration: Debug Win32 ------
1>Compiling with Intel® Fortran Compiler Classic 2021.1.1 [IA-32]...
1>Console1.f90
1>Linking...
1>Embedding manifest...
1>
1>Build log written to  "file://C:\Users\Dev\source\repos\Console1\Console1\Debug\BuildLog.htm"
1>Console1 - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

After placing a breakpoint at the last line of the code (To Keep the Command Window Open after Execution), I run the project by selecting Debug-> Start Debugging.  The command window pops up (behind the Visual Studio window) showing the expected “Hello World”.

But when I exit Visual Studio and try to run the Console1.exe under Windows (on the same PC that was used to compile the code), I get the following error message:

“The code execution cannot proceed because libifcoremdd.dll was not found. Reinstalling the program may fix the problem”

The DLL in question was found at the following locations:

C:\Program Files (x86)\Intel\oneAPI\compiler\2021.1.1\windows\redist\ia32_win\compiler
C:\Program Files (x86)\Intel\oneAPI\compiler\2021.1.1\windows\redist\intel64_win\compiler
C:\Program Files(x86)\Intel\oneAPI\intelpython\python3.7\envs\2021.1.1\Library\bin
C:\Program Files (x86)\Intel\oneAPI\intelpython\python3.7\Library\bin
C:\Program Files (x86)\Intel\oneAPI\intelpython\python3.7\pkgs\fortran_rt-2021.1.1-intel_191\Library\bin

It appears that the libifcoremdd DLL is part of the Intel Runtime Library. I would have expected that during Intel oneAPI installation, the proper PATH updates would have been made.  Please advise on the proper steps to correct this error message.

Thanks....

 

 

0 件の賞賛
52 返答(返信)
andrew_4619
名誉コントリビューター III
6,253件の閲覧回数

I think that error is "STATUS_INVALID_IMAGE_FORMAT" which I think is  trying to load a dll of the wrong bitness ( 32 / 64 bit ) .  That could be a build problem.  Post the buildlog.html file so we can see what options are used for compile and link etc.

andrew_4619
名誉コントリビューター III
6,248件の閲覧回数

Also use "Dependencies" or "dependency walker" apps to see what dlls your program wants to call up. The former I have found works better these days. This might give some insight into the problem.

JohnNichols
高評価コントリビューター III
6,238件の閲覧回数

occasionally you get simple error messages after an install that are impossible to solve.  OBDC Connectors on MySQL are quite challenging to get working at times, usually because you are doing something simple wrong or you changed something that did not need to be changed.  32 or 64 bit can be a good example, 

so I remove

Visual Studio

All the Intel API programs - clean up the mess in the directores and then reinstall after restarting 

Hector56
ビギナー
6,229件の閲覧回数

JohnNichols........Does it matter whether you do a Full Install of Visual Studio 2019 Professional? That is, install all the available components or is it better to do a minimum install of only the components required by oneAPI (Visual Studio* C++ Development tools).

Thanks....

Hector56
ビギナー
6,170件の閲覧回数

I finally was able to get the sample "Hello World" project to run in a command window. The steps are shown below. Can someone tell me if this is the normal procedure that needs to be followed or should I just reinstall everything?  Any idea why the x32 version did not run?  Thanks....

1. Open Console1 Project in Visual Studio
2. Select Project -> Console1 Properties
3. Click "Configuration Manager…"
4. In the "Project contexts" section, select "x64" under Platform
5. Click "Close"
6. Click "OK"
7. Select Build -> Clean Solution
8. Select Build -> Build Solution
9. Open Command Prompt (cmd.exe NOT PowerShell) to the following location:
C:\Program Files (x86)\Intel\oneAPI
10. Execute the BAT file: setvars.bat
11. In the same window, change directory to:
C:\Users\Admin\source\repos\Console1\Console1\x64\Debug
12. Execute Console1.exe

Steve_Lionel
名誉コントリビューター III
6,160件の閲覧回数

You should not need steps 9 and later - you could run the program from within Visual Studio.

That the 32-bit program didn't run because of an architecture mismatch is puzzling - 64-bit Windows normally has no problem running 32-bit EXEs.  It would be interesting to see what happens when you try to run the 32-bit version from within VS (Debug > Run without debugging).

I wonder if you have some malware that is corrupting 32-bit EXEs. If the problem persists, please ZIP the EXE and attach the ZIP to a reply here - I want to look at it.

JohnNichols
高評価コントリビューター III
6,137件の閲覧回数

This is not a bad starting point for an install -it gives you all that you really need. 

Capture.PNG

Hector56
ビギナー
6,117件の閲覧回数

Steve,

Here are the results from the tests you requested:

1. Run 32-bit version "Hello World" within Visual Studio (Debug -> Run without debugging)   SUCCESS

2. Copy 32-bit program compiled using Intel Parallel Studio on Windows 7 from another computer to new PC and run. FAILED

3. Copy 32-bit version "Hello World" compiled on new PC to another computer running Windows 7 and run.  SUCCESS

Thanks again everyone for the help....

Steve_Lionel
名誉コントリビューター III
6,121件の閲覧回数

#2 I understand - you need the redistributables installed. #3 you probably already had them installed.

 
 
Hector56
ビギナー
6,103件の閲覧回数

OK....so I did the following tonight:

1. Uninstalled Intel Fortran Compiler Patch Release 2021.1.2

2. Uninstalled Intel oneAPI HPC Toolkit

3. Uninstalled Intel oneAPI Base Toolkit

4. Uninstalled Visual Studio 2019 Professional

5. Clean up Intel oneAPI and Visual Studio files

6. Reinstall Visual Studio 2019 Professional

7. Reinstall Intel oneAPI Base Toolkit

8. Reinstall Intel oneAPI HPC Toolkit

Result: No Change...Same Problem

During the installation of Intel oneAPI Base Toolkit, I saw a warning in the command window about the PATH having spaces and that this might cause problems.  The installation location was the default:

C:\Program Files (x86)\Intel\oneAPI

What are my options at this point? Can I download a free copy of Intel Parallel Studio?

Thanks....

Steve_Lionel
名誉コントリビューター III
6,081件の閲覧回数

Please do the following:

From the Start menu, type "cmd.exe" (no quotes) and open a command window. Do NOT use the shortcut Intel installed. Set default (cd) to a writeable folder, then type:

set path > path.txt

Attach path.txt to a reply here.

Let's try to figure out why you're not getting the right things added to path.

Hector56
ビギナー
6,042件の閲覧回数

As a reminder, here is my configuration details:

Operating System: Windows 10 Pro 2004 Build 19041.804
Visual Studio: Visual Studio Professional 2019 Version 16.8.6 (Latest)
Intel oneAPI Base Toolkit: w_BaseKit_p_2021.1.0.2664_offline.exe (Latest)
Intel oneAPI HPC Toolkit: w_HPCKit_p_2021.1.0.2682_offline.exe (Latest)

Visual Studio Professional 2019 Components installed (no customizations)

1. Python development

2. .NET desktop development

3. Desktop development with C++

4. Data science and analytical applications

5. Linux development with C++

See attachment for current PATH environment variable created using:

cmd.exe

set path > path.txt

 

andrew_4619
名誉コントリビューター III
6,025件の閲覧回数

Well amongst other stuff I have C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\compiler;

An therein lies your problem.

JohnNichols
高評価コントリビューター III
6,021件の閲覧回数

The top section is my path and the bottom section is your path,  mine has 36 entries and yours has 13. 

Steve will know more - but I would think that the top four are required, but then again I am often wrong. 

 

PATH=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\mpirt;
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\mpirt;
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\compiler;
C:\Program Files\Microsoft MPI\Bin\;
C:\Program Files\AdoptOpenJDK\jre-8.0.265.01-hotspot\bin;
C:\Program Files\AdoptOpenJDK\jre-11.0.8.10-hotspot\bin;
C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.265.01-hotspot\bin;
C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Windows\System32\OpenSSH\;
C:\Program Files\dotnet\;
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;\
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\WINDOWS\System32\OpenSSH\;
C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;
C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;
C:\Program Files\Azure Data Studio\bin;
C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;
C:\Program Files\Common Files\Autodesk Shared\Advance\;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\WINDOWS\System32\OpenSSH\;
C:\Program Files\MySQL\MySQL Shell 8.0\bin\;
C:\Users\macne\AppData\Local\Microsoft\WindowsApps;
C:\Users\macne\.dotnet\tools;
c:\dislin\win;
C:\Program Files\Azure Data Studio\bin;

MINE UP
Yours down


Path=
C:\Program Files\SlickEdit Pro 25.0.1\win\;
C:\Program Files (x86)\VMware\VMware Workstation\bin\;
C:\windows\system32;
C:\windows;
C:\windows\System32\Wbem;
C:\windows\System32\WindowsPowerShell\v1.0\;
C:\windows\System32\OpenSSH\;
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
C:\Program Files\dotnet\;
C:\Program Files (x86)\dotnet\;
C:\Users\Admin\AppData\Local\Microsoft\WindowsApps;
C:\Users\Admin\.dotnet\tools

JohnNichols
高評価コントリビューター III
6,013件の閲覧回数

Apologies:

I just realized the list is from an old computer I am using today with Parallel Studio on it -- but ti should be similar in intent. 

Hector56
ビギナー
6,007件の閲覧回数

JohnNichols highlighted a possible issue.  Are we 100% sure the new Intel oneAPI installer is suppose to modify the Windows PATH environment variable?  Given the additional support for various CPU/GPU and the possibility of a extremely long PATH variable, Intel might have decided not to modify the PATH environment variable with oneAPI installation but require the user to execute a setvars.bat file to define the appropriate run environment.

The reason I am having problems and most people are not is this is a new PC without any prior installation of any Intel software.  Most people are able to run as before using the modification to the PATH variable made by previous installation of Parallel Studio. I have not seen an sample PATH variable definition with oneAPI embedded.

So the question for the team is has anyone done a clear installation (like myself) starting with a fresh PATH variable and can verify that the PATH variable was updated by the oneAPI installer? 

Thanks....

andrew_4619
名誉コントリビューター III
6,178件の閲覧回数

OneApi is what I am using. And the redistributables would are required to run programs built with Intel fortran irrespective of if Oneapi is installed on the machine or not. Yes you need the path vars. Install the redist package  and see if that fixes the install problem that you have had. 

Steve_Lionel
名誉コントリビューター III
6,156件の閲覧回数

No, the redist package is NOT required if you have the compiler installed - it is included with the compiler.

The oneAPI install adds the correct location for PATH on my system.

Hector56
ビギナー
6,131件の閲覧回数

Steve....so where do we go from here?  The installation process appears straight forward and there has been no feedback that I made a mistake installing the Intel oneAPI packages.  Doing a complete uninstalling and reinstalling did not solve the problem. The Classic Fortran compiler within Visual Studio appears to work correctly although I have not had time to fully test.  You have indicated that the Intel oneAPI installer does indeed modify your PATH as part of the installation process. So why is this not working in my case?

Any chance we might be able to talk to the person or persons responsible for the installer and ask under what circumstances might the installer not modify your PATH?  Does it try and fail or for some reason skip that step during installation.

The only issue I noticed during the installation process was a message which showed up in one of the pop-up command window saying something about spaces in PATH might cause problems. As far as I can determine, the contents of this command window was not saved or included in the log file. This occurred during the installation of Intel oneAPI Base so might be irrelevant.

Thanks again for all your help....

JohnNichols
高評価コントリビューター III
6,125件の閲覧回数

I suggest you take a screen shot of exactly what you are trying to do when what you want to do does not do 

And post it here -- we can then try and replicate the problem 

Or buy support time 

Hector56
ビギナー
6,102件の閲覧回数

JohnNichols:  Please review the last two pages of responses to this thread.  No need for screen shots.  The problem is easy to explain.  A normal installation of Visual Studio Professional 2019 + Intel oneAPI Base + Intel one API HPC did not modify the system PATH environment variable as expected. This indicates that there was a problem during installation of which the PATH variable may be just one of the installation errors.  PATH variable definition has already been uploaded in a previous response.

andrew_4619:  I have already created a work around so redist package is not required.  Installation of Visual Studio Professional 2019 + Intel oneAPI Base + Intel one API HPC was done as Administrator. The concern is other problems, not yet discovered, are present due to this installation error. 

Unless I missed something, there  is a bug in the Intel oneAPI installation program(s) that appears to be undetected.  As I mentioned in a previous response, I think other people might had this same issue but because there PATH variable had already been modified by previous installations, they did not notice.  My system is brand new with limited third party software installed and no Anti-Virus. A platform you would think would not have a problem like this....not much to interfere with the installation.

返信