Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

'ONEAPI_ROOT' is not valid

jimdempseyatthecove
Honored Contributor III
5,463 Views

I just installed the oneAPI Base and HPC 2023.2 toolkits (upgraded from 2023.1). This is on Windows and MS VS 2019

 

Upon launch of MSVS, opening up a Fortran Solution, I get:

jimdempseyatthecove_0-1696794350750.png

C:\Users\Jim>set onea
ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI\

I use the MS VS debugger, so this hasn't concerned me too much.

 

However, from an existing Solution with Fortran Project, as well as, new Solution with Fortran Project, I am unable to switch from ifort to ifx.

 

ifx is installed, as launching the oneAPI CMD x64 command prompt, I can access ifx.

 

It is the integration into MS VS that is an issue.

 

Additional info follows

 

Jim Dempsey

 

 

 

Microsoft Visual Studio Professional 2019
Version 16.10.3
VisualStudio.16.Release/16.10.3+31424.327
Microsoft .NET Framework
Version 4.8.09037

Installed Version: Professional

Visual C++ 2019 00435-20310-66783-AA966
Microsoft Visual C++ 2019

ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools

ASA Service Provider 1.0

ASP.NET and Web Tools 2019 16.10.526.50910
ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019 16.10.526.50910
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 16.10.526.50910
Azure App Service Tools v3.0.0

Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio 2.6.1000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools 16.10.526.50910
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio 2.6.1000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 3.10.0-4.21318.11+7ceb633154acb9d716fd3eb2b6df1a0468d8e416
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter 16.10.21111.19
Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Fabric.DiagnosticEvents 1.0
Fabric Diagnostic Events

Intel Libraries for oneAPI 2023.2
Intel Libraries for oneAPI 2023.2, Copyright © 2019-2023 Intel Corporation. All rights reserved.

Intel® Advisor 2023.2 614264
Intel® Advisor 2023.2, (build 614264), Copyright © 2009-2023 Intel Corporation. All rights reserved.

Intel® C++ Compiler 2023.2
Intel® C++ Compiler 2023.2, Copyright © 2002-2023 Intel Corporation. All rights reserved.

Intel® C++ Compiler Classic 2021.10
Intel® C++ Compiler Classic 2021.10, Copyright © 2002-2023 Intel Corporation. All rights reserved.

Intel® DPC++ Compatibility Tool 2023.2
Intel® DPC++ Compatibility Tool 2023.2, Copyright © 2019-2023 Intel Corporation. All rights reserved.

Intel® Fortran Compiler 2023.2
Intel® Fortran Compiler 2023.2, Copyright © 2002-2023 Intel Corporation. All rights reserved.

Intel® Inspector 2023.2 606569
Intel® Inspector 2023.2, (build 606569), Copyright © 2009-2023 Intel Corporation. All rights reserved.

Intel® oneAPI DPC++ Compiler 2023.2
Intel® oneAPI DPC++ Compiler 2023.2, Copyright © 2019-2023 Intel Corporation. All rights reserved.

Intel® oneAPI Menu & Samples 10.10.392.9731
Intel® oneAPI Visual Studio Menu & Samples Extension

Intel® Parallel Studio XE 2020 Composer Edition for C++ Windows* Package ID: w_comp_lib_2020.0.166
Intel® Parallel Studio XE 2020 Composer Edition for C++ Windows* Integration for Microsoft* Visual Studio* 2019, Version 19.1.0.16, Copyright © 2002-2019 Intel Corporation. All rights reserved.
* Other names and brands may be claimed as the property of others.

Intel® VTune™ Profiler 2023 1.3.18
Intel® VTune™ Profiler 2023, (Plugin Version 1.3.18), Copyright © 2009-2023 Intel Corporation. All rights reserved.

IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info

Linux Core Dump Debugging 1.0.9.31313
Enables debugging of Linux core dumps.

Microsoft Azure HDInsight Azure Node 2.6.1000.0
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service 2.6.1000.0
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio 16.10
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service 2.6.1000.0
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node 1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.40423.1

Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager 2.1.113+g422d40002e.RR
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers 1.2
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

Node.js Tools 1.5.30310.1 Commit Hash:e550dd1b679956810ccace4368dbc7a64443213b
Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager 5.10.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Office Developer Tools for Visual Studio 16.0.31130.00
Microsoft Office Developer Tools for Visual Studio

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Python 16.10.21111.19
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Python - Conda support 16.10.21111.19
Conda support for Python projects.

Python - Django support 16.10.21111.19
Provides templates and integration for the Django web framework.

Python - Profiling support 16.10.21111.19
Profiling support for Python projects.

Razor (ASP.NET Core) 16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 16.0.62106.24090
Microsoft SQL Server Data Tools

Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

ToolWindowHostedEditor 1.0
Hosting json editor into a tool window

TypeScript Tools 16.0.30429.2002
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 3.10.0-4.21318.11+7ceb633154acb9d716fd3eb2b6df1a0468d8e416
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Linux Development 1.0.9.31313
Visual C++ for Linux Development

Visual F# Tools 16.10.0-beta.21262.7+1b23bbeda88ea3cb9be9af777f4c99fa8663df81
Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions 1.0
View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake

Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers

Visual Studio Tools for Kubernetes 1.0
Visual Studio Tools for Kubernetes

Visual Studio Tools for Unity 4.10.3.0
Visual Studio Tools for Unity

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

 

 

 

0 Kudos
1 Solution
jimdempseyatthecove
Honored Contributor III
3,482 Views

I believe I found and resolved the issue. The issue was:

jimdempseyatthecove_0-1699451241873.png

The solution was:

jimdempseyatthecove_1-1699451364205.png

FWIW, the affected system does not have an Offload supported GPU.

 

Jim Dempsey

 

View solution in original post

0 Kudos
20 Replies
JohnNichols
Valued Contributor III
5,438 Views

Your VS is very old, perhaps it might help to update to 16.11.30 from Version 16.10.3.

VS 2019 is not giving me any trouble and I have been using it all day.  

Thanks for the note on Infinity.  It is all just fun. 

 

0 Kudos
JohnNichols
Valued Contributor III
5,435 Views

However the latest VS 2022 preview has a lot of problems - even I gave up.  

Hitherto unknown. 

It does not let you look at array values in debug mode and it leaves crap on the screen. 

0 Kudos
jimdempseyatthecove
Honored Contributor III
5,385 Views
0 Kudos
jimdempseyatthecove
Honored Contributor III
4,318 Views

Still get error/warning message.

 

FWIW

I tried encapsulating the "Program Files..." in quotes, and replacing the "\" with Linux "/"

in CMD window

then launch MS VS via devenv

Still receive error/warning.

 

Jim

0 Kudos
JohnNichols
Valued Contributor III
4,304 Views

You can load and run VS 2022 at the same time, I would try that first or shoot along a copy of the code and let us try it.  

The latest VS Preview is fine, 

0 Kudos
jimdempseyatthecove
Honored Contributor III
4,291 Views

What VS Preview number is your "latest"?

I am worried that MS will update VS Preview (and break oneAPI integration).

 

Jim

0 Kudos
Steve_Lionel
Honored Contributor III
4,282 Views

Try a reboot, or log out and in. I have seen cases where a product install updating environment variables doesn't "take" until you do that. ONEAPI_ROOT is defined on my system.

0 Kudos
jimdempseyatthecove
Honored Contributor III
4,263 Views

I've rebooted a couple of times. Still get it.

Maybe it is related to one of the add-on tools. From the MS VS Help About I notice:

 

Linux Core Dump Debugging 1.0.9.31313
Enables debugging of Linux core dumps.

 

Not sure how that got in there.

 

Jim Dempsey

 

0 Kudos
JohnNichols
Valued Contributor III
4,178 Views

Jim:

 

The three versions of VS will exist beside each other without trouble.  I have 12 computers with all three VS on them and all are kept up to date.  They do not interact nor do they have an issue with ONEAPI

I use VS 2022 Preview, VS 2022 and VS 2019.  I normally use the latest and the latest preview appears to have solved all the problems created a few months ago.  The preview and the vsix has made it a nice system.   If one has problems, you move down the list until you are using 2019, but that is not often. 

I also use Windows 11, I have several computers that cannot be updated to Windows 11, Windows 11 is much better than 10.

As Al notes, it is not as fast as Windows 10, but the difference is not worth worrying about. 

John 

0 Kudos
jimdempseyatthecove
Honored Contributor III
4,153 Views

In hope of untangling a mess, I installed MS VS Community, I uninstalled Base and HPC (Add Remove Programs showed two copies??).

Downloaded fresh copies of Base and HPC, and

Starting installation of Base integrating to both VS 2019 and VS 2022 (this takes a very long time on my system, gets stuck at 96%, for about 2 hours).

After Base finishes install, will progress to HPC.

 

RE: Windows 11

 

On a different system,  one I got a few years ago, it is a SuperMicro Ninja with Intel Xeon Phi Knights Landing.

This system runs fine in Linux and Windows 7. Maybe a year ago (could be earlier), I installed Windows 10. Windows 10 will boot up, but there appears to be an unhandled interrupt occurring, as echo backs from keystrokes takes about 10 seconds.

On a whim, I went out and bought a Windows 11 Pro DVD, tried install, and installation refused stating the system has insufficient capacity or some crap. 64 Cores, 96GB RAM. So back to keeping this system only as Linux (Ubuntu).

 

Decided to fresh install Ubuntu, its basic utilities, Eclipse, then oneAPI Base and oneAPI HPC.

Installation worked.

Then I performed the integration of oneAPI into Eclipse.

Moderate success.

I can build and run a oneAPI icx C++ application

But, the Eclipse integration of Intel Fortran (either ifort or ifx) is incomplete. The IDE shows Intel Fortran for a project tool chain, but cannot locate some (all) of the plugins.

 

I can build and run a "Hello World" from the command line (both ifort and ifx).

 

I will make a separate post regarding the Fortran Eclipse integration.

 

Jim Dempsey

0 Kudos
jimdempseyatthecove
Honored Contributor III
4,116 Views

Installation finished at 6:15PM. ~8 hours to uninstall/install both packages... uggh!

 

Now to test to see if VTune is behaving itself....

 

jimdempseyatthecove_0-1697243154986.png

Same problem with ONEAPI_ROOT

Well, this is disappointing. 

jimdempseyatthecove_1-1697243662807.png

The CPU is an E5-2620 v2

 

And:

jimdempseyatthecove_2-1697243793017.png

 

So it looks like I will not be able to use hardware sampling on this machine (CPU). 

Not a show stopper.

But this is more of a concern, unable to use CPU sampling on OpenMP code:

jimdempseyatthecove_3-1697244538766.png

The above was single threaded application in Admin mode

Next try in user (non-Admin) mode

??? Data collection completed successfully.... but no data

jimdempseyatthecove_4-1697244952898.png

I will try a longer run (than 15 seconds)

45 seconds.

I get the Data collection is completed successfully, but, no new VTune Profiler Results were added.

 

Will try MSVS 2019 (after new install of oneAPI)

When I went to MS VS 2019, the VTune Profiler results (from VS 2022) that did NOT appear in results window, show up in the VS 2019 results window.

Making a new VTune run in MS VS 2019 has the same symptom (run tab shows the run and with no data) but Results window does not show the new run. On a whim (I still have those fleeting moments), I double-clicked on the last run from MS VS 2022, and walla! the data was there (the single thread data).

Now, back to MS VS 2022, to see if I can view the results data (and work around the missing runs in the Profiler Results window).

Yes, I can open up a prior run. Now, lets see if I can: close the current run tab, refresh Results window's list of runs (F5 or close and reopen).

Closing the rnnnhs file and Profiler Results window, then starting a new VTune Configure Analysis did not show the new run data.

But, closing the Solution, and reopening the Solution does refresh the Profiler Results list and shows the run data.

Double clicking on the new run data in the Profiler Results list brings up the Hot Spot data.

 

While this is annoying, it is not a show stopper.

 

Jim Dempsey

 

 

 

0 Kudos
jimdempseyatthecove
Honored Contributor III
4,113 Views

A paste goofed up on the above report.

On this CPU (not supported), in Admin mode, even CPU sampling of single threadded program fails.

In user mode, VTune of single threaded program works, multi-threaded does not.

 

Trying on newer CPU, Core i7-10710U, MS VS 2019, OpenMP

The run appears to launch, and run (console shows valid output)

Collection Log shows success,

Finalization shows success

But what should be the results summary shows Error: Cannot display data

(trying close Solution/Open Solution thing)

That did not work.

Hardware collection, OpenMP messed up

Trying  non-Admin OpenMP on newer processor...

This works.

 

Admin mode seems to be an issue with Core i7-10710U (and E5-2620 even with software sampling).

 

Jim Dempsey

0 Kudos
Steve_Lionel
Honored Contributor III
4,084 Views

Interesting. Open a cmd prompt (just cmd.exe, not a Fortran command prompt) and type the command: 

set oneapi

What does it show?

0 Kudos
JohnNichols
Valued Contributor III
3,982 Views

You may need to use the VSIX installer for VS 2022 that was supplied by Intel.  It is somewhere on this forum.  

You should not have to set any oneapi ev, but if so on Windows load it directly into the environment variables cache, there is a system window for that exercise. 

If you have updated oneapi, it will show as two copies in the program place, Intel use a system of having a current directory to find the current latest one, quite clever, 

On a NUC with i3 I can do a complete install of all of that in under 2 hours.  I do it at least once a month, sometimes more. 

If you are using LINUX, then God help you because I cannot. 

0 Kudos
jimdempseyatthecove
Honored Contributor III
3,942 Views
C:\Users\Jim>set oneapi
ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI\

Jim

0 Kudos
jimdempseyatthecove
Honored Contributor III
3,941 Views

I've installed on Linux....

.... but the integration into Eclipse only integrated the icx, not Fortran???

I can run command line builds, and runs (haven't tried VTune), so it is a pain for development.

Have posted on different thread, will see if anyone can help with the Eclipse integration.

I am open to using a different IDE (not just a windowed editor).

 

Jim Dempsey

 

0 Kudos
Steve_Lionel
Honored Contributor III
3,929 Views

OK - ONEAPI_ROOT is correctly defined. Does the folder it points to exist? I wonder what is deciding it isn't "valid"?

0 Kudos
jimdempseyatthecove
Honored Contributor III
3,916 Views

Yes it does exist. I can build and run applications. Just an issue with VTune (as discussed earlier).

 

Jim Dempsey

0 Kudos
Steve_Lionel
Honored Contributor III
3,911 Views

Maybe take that to the VTune forum?

0 Kudos
jimdempseyatthecove
Honored Contributor III
3,483 Views

I believe I found and resolved the issue. The issue was:

jimdempseyatthecove_0-1699451241873.png

The solution was:

jimdempseyatthecove_1-1699451364205.png

FWIW, the affected system does not have an Offload supported GPU.

 

Jim Dempsey

 

0 Kudos
Reply