Abaqus unable to locate C++ compiler. I need to setup an interface between Abaqus and Intel Parallel Studio which requires Visual Studio. No matter what installations or settings I use, Abaqus fails to locate a C++ compiler. The crucial component is Intel Fortran Compiler which can be located.
I tried different versions of Visual Studio:
2017 community,
2017 enterprise,
2015 community,
2013 community.
Parallel Studio:
XE 2019
Abaqus:
2018 Research license
Operating system:
Windows 10 LTSC
All that is running in a Virtual Machine (KVM) in an OpenStack Cloud.
Steps for testing in cmd.exe:
Implementing the Paths to Visual Studio and Parallel Studio
vcvars64.bat (Visual Studio)
cl.exe prog.cpp works fine
ifortvars.bat (Parallel Studio)
Fortran compiler works fine
abaqus info=system (Abaqus)
This finds all crucial components but one, output of the significant section:
Processor: Intel Xeon Processor (Skylake, IBRS)
Number of CPUs: 4
Physical Memory: 46080 MB
Virtual Memory: 47807 Available / 52737 Total Mbytes
OS Version: Windows 10 Enterprise N LTSC 2019 (Build 17763)
C++ Compiler: Unable to locate or determine the version of a
C++ compiler on this system. If a C++ compiler is installed on this system, please load vcvars64.bat file before running Abaqus
Linker Version: Microsoft (R) Incremental Linker Version 14.16.27031.1 > Fortran Compiler: Intel Fortran Compiler 19.0
MPI: MS-MPI 5.0.12435.6
Browser: Firefox 66.0.3.0
you have to execute:
ifortvars.bat intel64 vs2013
the parameters depend on your system and the visual studio version required. If you have default abaqus environment configuration this command does everything you need.
Where the bat file is located depends on version of intel compiler and your installation. In my case it is in:
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016\windows\bin\ifortvars.bat
you execute this command before launching abaqus command in the command prompt or you have to add a call to it to abaqus.bat file
Related
I am using CMAKE to build Open Source Projects (like those are available at GitHub etc.) and I also have installed Visual Studio 2019. There is a problem that CMAKE can not find Fortran compiler in my system whereas I've installed MinGW with Fortran compiler. The error is:
**The Fortran compiler identification is unknown**
**No CMAKE_Fortran_COMPILER could be found.**
How can I solve this problem and make CMAKE be aware of Fortran compiler?
Note: I tried other projects that does not require Fortran compiler and those are built successfully.
Installed software:
CMAKE 3.18.5,
Visual Studio 2019,
MinGW
You need to show where your fortran executable file to CMakeList.txt like
set(CMAKE_Fortran_COMPILER "C:/MinGW/bin/gfortran.exe")
EDIT 2 for Visual studio 2019:
If you want to produce Visual Studio 2019 solution
Download Intel® oneAPI HPC Toolkit here.
If cmake cannot find Fortran compiler add a cmake flag CMAKE_Fortran_COMPILER with the value of ifort.exe path that u installed above. Like %install_path%/Intel/oneAPI/compiler/2021.1.1/windows/bin/intel64/ifort.exe
Configure and generate solution.
EDIT:
Alright, now I understand why you get this error. The Visual Studio generator does not support MinGW gfortran. They are totally separate ecosystems.
Remove your build directory and create a fresh one. Then use cmake .. -G "MinGW Makefiles" instead. I tried from CLI prompt of msys and successfully obtained the libraries from Windows machine.
If you are using Intel processors, you should first set-up Fortran environment for Visual Studio 2019
Better to check compilation guide and some troubleshooting Fortran Integration Issues with visual studio
So I was trying to install the Intel C++ Compiler (in the Parallel Studio XE 2018 bundle) and when I go to install it comes up with the warning "Intel C++ Compiler will not work because none of the supported environments is found on your computer," among others. However, one of those supported environments is Microsoft Visual Studio 2017, which I have installed.
I read online that there's some issue with the most recent versions of Visual Studio and that the compiler only works with versions 15.6 and below. I have 15.5.6, but of the Community version. I'm not sure if the Professional version is required; if it is I don't have it installed and I can't figure how to install a previous version.
If there is no way to make this work (or there is, but it's too much of a pain), suggestions for other C++ compilers would be appreciated.
You could see this document about “Troubleshooting Fortran Integration Issues with Microsoft Visual Studio*”:
https://software.intel.com/en-us/articles/troubleshooting-fortran-integration-issues-with-visual-studio/
It shared the version of Visual Studio that is supported by the Intel Parallel Studio XE now.
I'm trying to build binary files of the LAPACK 3.7.0 using CMAKE based on what is told here. In order to use them in my Visual Studio 2013 C++ project.
But I really don't know which option should I choose here?
And also which compilers should I choose in the following?
Because I can't find them in the suggested directories within Program Files or Program File(x86) folders.
my machine uses a dual-core Intel(R) Core(TM) 2 Duo CPU
When using Visual Studio < 2015, a common solution is to run CMake GUI from Visual Studio Command line.
Use windows start menu to run "Visual Studio Command Prompt"
Run cmake-gui from command line. If the folder is in your path, simply launch cmake-gui. If not, launch it using the full path
Locate the source folder of your project (the folder containing the top-level CMakeLists.txt) and create a new build folder (ex c:/my-project/build_32). Generating an environment in the source folder is discouraged)
Generate your project selecting the right MSVC version. In your case, it will be "Visual Studio 12 2013". In my case, this is MSVC 2010.
That's all. Click on finish button and it should generate the compilation environment, solutions, projetcs, etc.
This will generate environment for compiling x86 application. If you also need to compile a x64 version of your project, simply follow again that process, generating in a new build folder and selection "Visual Studio 12 2013 Win64".
By default, if you have a paid version of Visual Studio you have both x86 and Win64 compiler installed. If you have the express version, you only have the x86 compiler (so generation using MSVC Win64 will fail).
I recently installed the Cuda 8.0 toolkit in my windows 10 desktop (after removing all v7.5 components). Despite previous versions being incompatible with Visual Studio 2015 I was happy to see that Nsight could actually create a CUDA project and samples came with VS 2015 versions of the .sln files.
The problem is that when compiling the samples I get errors like this one:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations\CUDA 8.0.targets(168,9): error MSB4062: The "Nvda.Build.CudaTasks.SanitizePaths" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations\Nvda.Build.CudaTasks.v8.0.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
The other strange thing is that earlier today I was able to compile the CUDA samples in my laptop that differs only in that it has VS2015 Community Edition installed. Any suggestions?
PS
The deviceQuery sample that contains the cuda headers :
#include <cuda_runtime.h>
#include <helper_cuda.h>
in its single cpp file (but no actual .cu files) is the only one that compiles and runs fine (I do have a CUDA compatible graphics card if that's what you're wondering, as matter of fact all the pre-install actions described in the installation guide were followed).
System Details
Windows 10 Pro
Cuda compilation tools, release 8.0, V8.0.44
MS Visual Studio Enterprise 2015 / Version 14.0.25431.01 Update 3
Microsoft Visual Studio Enterprise 2015 / Version 14.0.25431.01 Update 3 / Microsoft .NET Framework / Version 4.6.01586
NVIDIA CUDA 8.0 Wizards 8.0
Wizards to create new NVIDIA CUDA projects and source files.
NVIDIA Nsight Visual Studio Edition 5.2.0.16223
... even a report from someone succeeding / failing with the same setup would be helpful
Nvda.Build.CudaTasks.v8.0.dll assembly dependent on MS .NET Framework 3.5, on it's Microsoft.Build.Utilities.v3.5.dll and Microsoft.Build.Framework.dll assembles.
Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Error means you don't have MS .NET Framework 3.5 installed or installation is corrupted.
To check is it installed or not type "Turn Windows features on or off" in Start menu or go to Control Panel -> Programs and Features -> Turn Windows features on or off. If .NET Framework 3.5 is not checked, install it.
Otherwise you should verify and repair installation. Use .NET Framework Setup Verification tool. It verifies the installation state of one or more versions of the MS .NET Framework. If errors found use .NET Framework Cleanup Tool to remove MS .NET Framework 3.5 and install it again.
I am trying to compile this Hello World program in Windows 7 with Visual Studio 2010 installed, but I get the following error message when I run nvcc hellocuda.cu:
nvcc fatal : nvcc cannot find a supported cl version. Only MSVC 8.0 and MSVC 9.0 are supported
How can I compile this CUDA program ?
NVCC checks VC++ compiler version from Visual Studio environment variables. NVCC says it supports only MSVC 8.0 and 9.0 compilers. In your case, you have MSVC 10.0 compiler. There seems to be a workaround to this issue, check out post #7 in this thread:
http://forums.nvidia.com/index.php?showtopic=179531 and also
http://forums.nvidia.com/index.php?showtopic=88585
If you keep having problems getting it working with MSVC10, bear in mind that you can download the Express version of MSVC9 (i.e. the 2008 version) for free -- so you can always download it and compile with that instead. But I would try swatkat's workaround first :)
Here's the link:
http://www.microsoft.com/express/Downloads/
Visual Studio 2008 Express was needed. (Thanks sgolodetz)
So with Visual Studio 2010 Professional (maybe 2010 Express works too?), NVIDIA Parallel Nsight, CUDA Toolkit, Developer Drivers, and GPU Computing SDK code samples (toolkit, drivers, and sdk can be downloaded here) I was able to run the example Hello World in CUDA program.
How to create/upgrade a CUDA project in VS2008 and VS2010 to work with Nsight 1.5 and CUDA 3.2 was very helpful in starting a new VS 2010 CUDA project with the proper settings.
Side note: I was never able to get the command line nvcc to work correctly, but I rather use VS 2010 IDE instead.
Update: How do I start a new CUDA app in visual studio 2008?'s answer was also useful
With CUDA 4.0 you can use the VC10 toolchain. See this answer for a step-by-step.