I need to use uMat and user subroutines in Abaqus.
I installed Abaqus 2020, Visual Studio 2019, Intel oneApi Base Toolkit and Intel oneApi HPC Toolkit (in this order). After successfully linking the Fortran Compiler (Intel Fortran Compiler 2021.4) with VS19 (setting all the path variables and editing the abaqus2020.bat and the abaqus_v6.env) I started Abaqus Command (as admin) and used the command abaqus verify -user .. it PASSED right away.
My main problem is: if I plug in "abaqus info=system" everything is fine except the C++ Compiler.
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
I tried:
different versions of VS
different OS
different Processor
calling the vcvars64.bat in abaqus2020.bat
Installing third party c++ compilers (MinGW)
My current setup:
Processor: AMD Ryzen 5 3600
RAM: 32 GB DDR4 3200
Graphics: MSI NVidea Geforce GTX 1660 Ti
OS: Windows 11
Linker Version: Microsoft Incremental Linker Version 14.29.30137.0
Fortran Compiler: Intel Fortran Compiler 2021.4 MPI MS-MPI 9.0.12497.11
Error Message
Related
I have Matlab 2022b, Windows 11. In Matlab mex -setup cpp yields
MEX configured to use 'Microsoft Visual C++ 2022' for C++ language compilation
At the command prompt, nvcc --version yields:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Mon_Oct_24_19:40:05_Pacific_Daylight_Time_2022
Cuda compilation tools, release 12.0, V12.0.76
Build cuda_12.0.r12.0/compiler.31968024_0
When I try to run this file, I get this error:
Error using mex
Supported compiler not detected. For options, visit https://www.mathworks.com/support/compilers.
Error in mexcuda (line 168)
[varargout{1:nargout}] = mex(mexArguments{:});
Error in mexGPUall (line 7)
mexcuda -largeArrayDims spikedetector3.cu
Selecting 'MinGW64 Compiler (C++)' in Matlab gives the same error.
I found this thread. At least one of the participants is trying to run the same application I am, Kilosort. I tried downloading and installing Visual Studio 2019. Having done that mex -setup cpp does not give me any more options for C++ compilers than I had before.
Does anyone have any idea about how I can install a compiler that will allow me to execute that file, and run Kilosort?
MATLAB used to have a very stringent GPU-hardware/CUDA toolkit/MATLAB version compatibility requirement that went all the way down to the digit after the decimal point.
You may need to check that the version of Visual Studio you install is compatible with your version of CUDA. Simply keeping everything up-to-date will not be enough.
However, Mathworks have been vague on this since R2022.
I suppose you may either use an earlier version with a certain combination of release versions that have been tested to work (we followed that table and got Kilosort up and running), or attempt some variation on the newer versions.
If you were successful, please also share your toolchain configuration so that others may benefit from your experience. .
So I followed all of the instructions on Intel site to get parallel studios and ifort installed on my MacBook Pro. I have confirmed I can correctly compile regular Fortran program and execute them, but I cannot seem to find any distinct answers as to if ifort on Mac supports coarrays.
The compiler documentation for Intel Fortran version 19.1 says there is no support for coarray on macOS. It's available on Windows and Linux though.
I'm having a lot of trouble linking the Intel MKL libraries to my code in C++. I downloaded the MKL library from this link:
https://software.intel.com/content/www/us/en/develop/tools/math-kernel-library/choose-download/windows.html
Then it says to use MKL Link Line Advisor to obtain the proper compiler options, which I'm having a lot of trouble figuring out. For reference, I'm using Windows, g++ 8.1.0 and MinGW-W64. Here is part by part:
Intel product: Intel MKL 2020, since I just downloaded it.
OS: Windows, no issues there.
Compiler: Intel(R) Fortran? I'm using g++ to compile my C++ code, so
I have no idea since that option is not available. Doing some
research in stackoverflow, it seems the right choice is Intel(R)
Fortran
Architecture: Intel(R) 64, since I have a 64-bit OS?
Dynamic/Static Linking: Static linking I guess?
Interface layer: 64-bit, since I have a 64-bit OS?
Threading layer: OpenMP, since my current C++ code uses -fopenmp?
OpenMP library: Intel(R) libiomp5. Only one option, so no issues
here.
Fortran95 Interfaces: BLAS95 and LAPACK95
The above choices give me the following compiler options
/4I8 /module:"%MKLROOT%"\include\intel64/ilp64 -I"%MKLROOT%"\include
And this results in error from the compiler:
/4I8: No such file or directory
Can somebody help me please?
I think you should use -DMKL_ILP64 -I"%MKLROOT%"\include for g++.
You should definitely not pick Intel(R) Fortran for the compiler since you are not compiling Fortran programs.
I am trying to install CUDA on my Mac Pro (15-inch, Mid 2009 with GPU GeForce 9400M).
I have installed from https://developer.nvidia.com/cuda-downloads the toolkit.
nvcc --version returns: ... Cuda compilation tools, release 7.5, V7.5.19
I have installed directly the driver from the package, then from http://www.nvidia.com/object/mac-driver-archive.html. Then from System Preferences > CUDA Preferences, I can see CUDA Driver Version: 7.5.25 (though the update 6.5.51 is proposed (?)).
I can compile a sample (0_Simple/asyncAPI). When I launch it, I get:
[./asyncAPI] - Starting...
CUDA error at ../../common/inc/helper_cuda.h:1111
code=35(cudaErrorInsufficientDriver)
"cudaGetDeviceCount(&device_count)"
Why this error??
The CUDA 7 release cycle removed support for compute capability 1.x devices on all platforms. This includes your Geforce 9400M.
The last version with support of those devices was CUDA 6.5. You will need to work out what XCode version will work with that CUDA toolkit and your OS version and install that instead.
[This answer assembled from comments as a community wiki entry to get this question off the unanswered queue for the CUDA tag].
I want to use ICC (Intel C++ Compiler) with CUDA NVCC (nVidia C++ Compiler) on Linux in the Eclipse-nsight.
I installed CUDA 5.5 with Eclipse-nsight and Intel Cluster Studio 2013 XE
and then I installed plug-ins (ICC toolchain) in the Eclipse-nsight via menu Help-> Install New Software ... https://software.intel.com/en-us/articles/intel-c-compiler-for-linux-using-intel-compilers-with-the-eclipse-ide-pdf
Now I can create Intel C++ project or CUDA C++ project. But how can I create the project which can contain at the same time both. Cpp-files and. Cu-file, and which automatic compile Cpp-files by using ICC and Cu-file by using NVCC?
Which project should I create: Intel C++ or CUDA C++, and what should I do then?
(Or may be someone known how can I create the project in Eclipse-nsight which use both GCC and ICC, and it will help me)
In CUDA project properties, specify the ccbin NVCC command line flag.