Visual studio code debug c prgram9/6/2023 Now, on Visual Sudio 2019, I don't know first if a have to create a fortran project, then I copy my fortran files into it. Then I set up the intel compilers environment by :Ģ) " C:\Program Files (x86)\Intel\oneAPI\setvars.bat"Īfter that, I compile my code using ifort :Ģ) ifort hfaxial7.f vector.f gmatrix.f pn.f newlan.f laso.f -o hfaxial7.exe So, by using only the command lines all works, here are the command I used :ġ) First I go to the directory where the fortran files are. In fact, I don't know how to set up tasks to debug and compile my fortran files. My lack of knowleadges on how to use Visual Code will now appears. In fact, it was the case, because I have now the possibility to create fortran projects, and I secceeded to debug and execute a simple fortran code on 1 file (.f). When I installed the toolkits from intel on windows 10, I wanted to be sure that the additionnal compilers where included in Visual studio 2019. So I just have do clic on debug to compile and run my cpp code. Now, back on Windows, the only way I used Visual studio 2019 was to write a simple C++ script with no dependancies. On linux, by using VS code and gfortran compiler, I create and configure task.json and a Makefile files to debug and compile my code. So I have 7 fortran files(.f), 6 have to be compiled. The aim was to compare the compilation between gfortran from GNU on linux and ifort on a windows computer. Few day ago, I installed the Intel Fortran Compiler (ifort) on Windows 10, by installing the intel oneAPI Base Toolkit and the oneAPI HPC toolkit. I have first to apologize for my poor level in english, I will try to do my best to be understood.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |