diff --git a/docs.it4i/salomon/software/mic/mic_environment.md b/docs.it4i/salomon/software/mic/mic_environment.md index 28b50f4ea1e5a9abec9c303064afa3c64512f5b2..9a938b2bca607811ccff22f10faa3397b8a9fb6e 100644 --- a/docs.it4i/salomon/software/mic/mic_environment.md +++ b/docs.it4i/salomon/software/mic/mic_environment.md @@ -76,7 +76,7 @@ int main(int argc, char* argv[]) To compile a code using Intel compiler run. - * Create source-offload.cpp +* Create source-offload.cpp ```console $ vim source-offload.cpp @@ -99,14 +99,14 @@ int main(int argc, char* argv[]) std::cout << "Pi ~ " << result << '\n'; } ``` - * Compile +* Compile ```console $ ml intel/2017b $ icc source-offload.cpp -o bin-offload ``` - * To execute the code, run the following command on the host +* To execute the code, run the following command on the host ```console $ ./bin-offload @@ -119,7 +119,7 @@ On Salomon cluster we have module `GCC/5.1.1-knc` with cross-compiled support. ( To compile a code using GCC compiler run. - * Create reduce_mul.c +* Create `reduce_mul.c` ```console $ vim reduce_mul.c @@ -135,7 +135,7 @@ double reduce(double* values) } ``` - * A create main.c +* A create main.c ```console vim main.c @@ -168,7 +168,7 @@ int main(int argc, char* argv[]) } ``` - * Compile +* Compile ```console $ ml GCC/5.1.1-knc @@ -178,7 +178,7 @@ $ gcc -std=c99 -O3 -c main.c -o main_gcc.o $ gcc -O3 reduce_mul.o main_gcc.o -o reduce_mul ``` - * To execute the code, run the following command on the host +* To execute the code, run the following command on the host ```console $ micnativeloadex ./reduce_mul @@ -278,24 +278,24 @@ int main() $ icc -xhost -no-offload -fopenmp vect-add.c -o vect-add-host ``` - * To run this code on host, use +* To run this code on host, use ```console $ ./vect-add-host Test passed ``` - * The second example shows how to compile the same code for Intel Xeon Phi +* The second example shows how to compile the same code for Intel Xeon Phi ```console $ icc -mmic -fopenmp vect-add.c -o vect-add-mic ``` - * Execution of the Program in Native Mode on Intel Xeon Phi +* Execution of the Program in Native Mode on Intel Xeon Phi The user access to the Intel Xeon Phi is through the SSH. Since user home directories are mounted using NFS on the accelerator, users do not have to copy binary files or libraries between the host and accelerator. Get the PATH of MIC enabled libraries for currently used Intel Compiler. - * To run this code on Intel Xeon Phi +* To run this code on Intel Xeon Phi ```console $ ssh mic0 @@ -385,7 +385,7 @@ r21u02n578-mic0:~$ ml av After load module `devel_environment` are available modules for architecture k10m-mpss-linux and now exists systems software (gcc, cmake, make, git, htop, vim, ...). - * Example +* Example ```console r21u02n578-mic0:~$ gcc --version @@ -424,7 +424,7 @@ Internet, point your browser at http://www.perl.org/, the Perl Home Page. ... ``` - * Execute previous cross-compiled code `vect-add-mic` +* Execute previous cross-compiled code `vect-add-mic` ```console r21u01n577-mic1:~$ ml devel_environment @@ -436,7 +436,6 @@ Test passed !!! tip PATH of MIC libraries for Intel Compiler set automatically. - ## MPI Load module for devel environment `devel_environment` and load mpi module `impi/2017.3.196-iccifort-2017.4.196-GCC-6.4.0-2.28` (intel/2017b) @@ -514,18 +513,18 @@ r21u01n577-mic0:~$ cat test.mat Compiler - * gcc (GCC) 5.1.1 without gfortran support +* gcc (GCC) 5.1.1 without gfortran support Architecture (depends on compiled software): - * k1om-unknown-linux-gnu - * k1om-mpss-linux-gnu - * x86_64-k1om-linux - * k1om-mpss-linux +* k1om-unknown-linux-gnu +* k1om-mpss-linux-gnu +* x86_64-k1om-linux +* k1om-mpss-linux Configure (for `configure`,`make` and `make install` software) - * specify architecture `--build=` +* specify architecture `--build=` ```console ./configure --prefix=/apps/phi/software/ncurses/6.0 --build=k1om-mpss-linux @@ -533,4 +532,4 @@ Configure (for `configure`,`make` and `make install` software) Modulefile and Lmod - * Read [Lmod](../../../software/modules/lmod/) +* Read [Lmod](../../../software/modules/lmod/)