User Tools

Site Tools


devs:install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devs:install [2021/06/22 11:23]
helene [2.2 Intel Fortran compiler]
devs:install [2024/02/29 13:16] (current)
carlos
Line 13: Line 13:
  
 === 1.2.1 Generating an SSH key pair === === 1.2.1 Generating an SSH key pair ===
-In order to work with GitLab, you will need to create a local copy of the Lagamine project on your computer. The first step to connect your computer to GitLab is to generate an SSH key pair allowing for secure connection between the GitLab server (online) and your computer (local). To generate the SSH key, simply follow the instructions from the GitLab documentation:​ [[https://​docs.gitlab.com/​ee/​ssh/README.html]] (use an ED25519 SSH key)+In order to work with GitLab, you will need to create a local copy of the Lagamine project on your computer. The first step to connect your computer to GitLab is to generate an SSH key pair allowing for secure connection between the GitLab server (online) and your computer (local). To generate the SSH key, simply follow the instructions from the GitLab documentation:​ [[https://​docs.gitlab.com/​ee/​user/ssh.html]] (use an ED25519 SSH key)
 === 1.2.2 Cloning the Lagamine repository === === 1.2.2 Cloning the Lagamine repository ===
 First of all, you should choose where you want to place your local Lagamine repository. To do this, you will use the “cd” command in **Git Bash**, followed by the address of the folder where you wish to put your Lagamine project. If your path contains spaces (for instance, a folder called My folder) put the folder name containing spaces in quotations (C:/”My folder”). In my case, I used the following command: \\ First of all, you should choose where you want to place your local Lagamine repository. To do this, you will use the “cd” command in **Git Bash**, followed by the address of the folder where you wish to put your Lagamine project. If your path contains spaces (for instance, a folder called My folder) put the folder name containing spaces in quotations (C:/”My folder”). In my case, I used the following command: \\
Line 59: Line 59:
 On the next step of the installation,​ integrate the toolkit with Visual Studio. \\ On the next step of the installation,​ integrate the toolkit with Visual Studio. \\
 \\ \\
-For the __HPC toolkit__, use the recommanded ​installation. \\+For the __HPC toolkit__, use the recomended ​installation. \\
 \\ \\
-Once the installation is complete, you will need to add the folder containing libiomp5md.dll to the PATH of your computer. ​For Windows 8 and 10, do the following:+Once the installation is complete, you will need to add the folder containing ​**libiomp5md.dll** to the PATH of your computer. ​
   - In Search, search for and then select: System (Control Panel)   - In Search, search for and then select: System (Control Panel)
   - Click the "​Advanced system settings"​ link   - Click the "​Advanced system settings"​ link
   - Click on the "​Environment Variables"​ box. In the section System Variables, you should have a variable called "​IFORT_COMPILERXX"​ (XX is a number that depends on your version of OneAPI). This variable directs to a folder created during the OneAPI installation. ​   - Click on the "​Environment Variables"​ box. In the section System Variables, you should have a variable called "​IFORT_COMPILERXX"​ (XX is a number that depends on your version of OneAPI). This variable directs to a folder created during the OneAPI installation. ​
-  - Find the PATH environment variable and select it. Click "​Edit"​.  +  - Find the **Path** ​environment variable and select it. Click "​Edit"​.  
-  - In the window that opened, click "​New"​ and write: %IFORT_COMPILERXX%redist\intel64_win\compiler. (N.B. replace XX with the number corresponding to the aforementioned variable).+  - In the window that opened, click "​New"​ and write: ​ 
 + 
 +^ For WIndows 8-10 & older verisons of oneAPI (2021-2022)^ 
 +|%IFORT_COMPILERXX%redist\intel64_win\compiler. (N.B. replace XX with the number corresponding to the aforementioned variable)
 +^ For WIndows 11 & oneAPI 2024.0.1.--^ 
 +|The directory where the library is located (e.g.: "​C:​\Program Files (x86)\Intel\oneAPI\..."​ )|
 You may need to restart your computer for Visual Studio to recognize the Intel® Fortran compiler. You may need to restart your computer for Visual Studio to recognize the Intel® Fortran compiler.
 +An example of the environment variables edition process on windows 11 is given in <imgref image3>
 +
 +<​imgcaption image3|Editing of environment variables in Win11>​{{:​devs:​fig_envars_cru.png?​800|}}</​imgcaption>​
  
 ==== 2.3 Create the Lagamine, Prepro, & Select projects ==== ==== 2.3 Create the Lagamine, Prepro, & Select projects ====
Line 80: Line 88:
 For now, you just created an empty project. To add the source files, right-click on the “Source files” folder in the Solution explorer, and select Add⟶Existing item (see <imgref image2>​). Select the source files (*.F) from the Lagamine folder created in your local Git repository (see 1.2.2). Visual Studio will automatically detect that these sources are linked to a Git repository. \\ \\ For now, you just created an empty project. To add the source files, right-click on the “Source files” folder in the Solution explorer, and select Add⟶Existing item (see <imgref image2>​). Select the source files (*.F) from the Lagamine folder created in your local Git repository (see 1.2.2). Visual Studio will automatically detect that these sources are linked to a Git repository. \\ \\
 <​imgcaption image2|>​{{ :​devs:​instal_fig1.png?​nolink&​600 |}}</​imgcaption>​ <​imgcaption image2|>​{{ :​devs:​instal_fig1.png?​nolink&​600 |}}</​imgcaption>​
 +If you want Visual Studio to generate the exe files with an icon, right-click on "​Resource files" and select '​Lagamine.rc'​ from the source folder. \\
 +Note: with the resource file, you may need to install an additional VS component. Open the VS installer, click on "​Modify"​. Then on the right-hand panel, in the C++ category, select 'C++ MFC for latest v142 build tools (x86 & x64)' (name may vary depending on your version of VS).
  
 === 2.3.2 Prepro and Select === === 2.3.2 Prepro and Select ===
devs/install.1624353789.txt.gz · Last modified: 2021/06/22 11:23 by helene