Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

In the tutorial below you will have to replace everything that is in cursive red with your own personal names. The rest is just copy-paste.

Execute the following in the same terminal/window!

1) Create directory

First you should come up with a name for your executable. To make the rest of this tutorial easier set the variable 'My_Abs' to the name of your choice:

             My_Abs=name_of_my_executable

Then create yourself a directory under your home(!) (so it gets backup up) in which you want to create the executable.

...

             git clone full_Abs_directory_of_sourcecode_to_clone/gem

Or you can clone my latest verison with:

             git clone ~winger/gem/v_5.1.1/Abs/UQAM_latest/gem

If you get something like the following your cloning was successful:

Volet
Cloning into 'gem'...
done.
Updating files: 100% (2367/2367), done.

b) Uncommited changes

Only ifthere were uncommited changes to the code you would like to get as well you will have to copy the modified files by hand. This is not elegant at all, but if you want to make sure you got all modifications you can also remove your source code and then copy the source code you want by hand. For example:

...

            mkdir -p ${work_space}/${My_Abs}/build
            mkdir -p ${work_space}/${My_Abs}/work
            ln -s ${work_space}/${My_Abs}/build
            ln -s ${work_space}/${My_Abs}/work

d) Check directory content

Execute a simple 'ls' command to check if your directory content looks okay:

            ls -al

If the list you are getting looks like the following your initial setup looks fine:

Volet
drwxr-xr-x.  ...  25600 Jul 17 14:20 .
drwxr-xr-x.  ...  25600 Jul 17 14:09 ..
drwxr-xr-x.  ...  25600 Jul 17 14:09 .git
-rw-r--r--.  ...    145 Jul 17 14:09 .gitignore
-rw-r--r--.  ... 109127 Jul 17 14:09 Doxyfile
-rw-r--r--.  ..   8903 Jul 17 14:09 README.md
-rw-r--r--.  ...      6 Jul 17 14:09 VERSION
lrwxrwxrwx.  ...     68 Jul 17 14:20 build -> /project/def-jtheriau/pnf000/GEM_WORK_DIR/UQAM_P3_Margaux_2024/build
drwxr-xr-x.  ...  25600 Jul 17 14:09 configurations
drwxr-xr-x.  ...  25600 Jul 17 14:09 doc
-rwxr-xr-x.  ...   1421 Jul 17 14:09 download-dbase.sh
-rw-r--r--.  ...    558 Jul 17 14:09 goas-devel.code-workspace
drwxr-xr-x.  ...  25600 Jul 17 14:09 project
drwxr-xr-x.  ...  25600 Jul 17 14:09 scripts
drwxr-xr-x. ...  25600 Jul 17 14:14 src
-rwxr-xr-x.  ...     89 Jul 17 14:09 vstudio
lrwxrwxrwx.  ...     67 Jul 17 14:20 work -> /project/def-jtheriau/pnf000/GEM_WORK_DIR/UQAM_P3_Margaux_2024/work

3) Create the executable

a) Acquire compiler

(Only needed once per window/terminal.)!
You can used the same alias used to acquire the compiler to run GEM:

            module add intel/2021.2.0 fftw-intel-2021511

b) If you are not already in it, go into the 'gem' directory of your abs-directory:

...