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.
Related
I would linke to know if it is possible to use gcc/g++ as the c/c++ compiler in windows based CUDA? Furthermore, how can I compile fortran together with nvcc?
I am running CUDA 10.2 and the mingw gcc 8.1.0.
No it is not possible. The only supported host compiler for use with CUDA on windows is cl.exe, the compiler that ships with visual studio C++.
If you use the WSL2 environment on windows, then you can use gcc/g++ with CUDA in that linux-like environment.
I need a compiler that supports c++20, like GCC 10.1 (used on linux), but to use it in my Windows 10.
I saw posts that recommend Mingw-w64, but does it supports c++20?
In the meantime GCC 10 has been released and MinGW builds are available.
You can download a standalone build of MinGW-w64 with GCC 10 for Windows 32-bit and 64-bit from http://winlibs.com/
You can install Clang and MSVC/Visual Studio on Windows directly. For gcc you need MinGw /Msys2.
I use wsl. With wsl you can check out gcc trunk and build it yourself.
C++20 is not completely supported but you can use most of it like coroutines, concepts...
Other compilers usually lack behind those.
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
I have course in C++ this semester at the university.
They ask us to use Ubuntu for the semester tasks because of compiling reasons.
I have Mac OS. Can I change the compiler to be the same as Ubuntu's?
Thanks.
I don't have much experience with MacOS, but as far as I'm concerned, when you install XCode it automatically installs g++, which is a compiler you can use on Linux and Windows (with mingw).
Also, if you don't want to install XCode, you can get gcc / g++ through homebrew: https://brew.sh/
Another alternative would be clang / clang++.
Is there any way to compile both Windows and Linux versions of Python/distutils/SWIG/C++ extensions under Linux? As far as I understand the problem is at least in obtaining windows version of python-dev.
Thank you.
You could do it in two ways:
Install MingW on your linux system, and cross-compile the extension using it
Compile it in a Windows Virtual Machine (eg. Windows7 on VirtualBox)
I prefer the second option as it gives the opportunity to test that your program is working