*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit c0044582 authored by Zabloudil, Jan's avatar Zabloudil, Jan
Browse files

updated for new intel compilers

parent 56eafeeb
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ zen trainee00@l55:~$ module load compiler/latest ...@@ -119,7 +119,7 @@ zen trainee00@l55:~$ module load compiler/latest
cuda-zen trainee00@l55:~$ module load compiler/latest cuda-zen trainee00@l55:~$ module load compiler/latest
``` ```
Since both are called `icc`, type `which icc` to see which compiler is Since both are called `icx`, type `which icx` to see which compiler is
now loaded. now loaded.
...@@ -162,7 +162,7 @@ zen trainee00@l55:~$ module avail aocc ...@@ -162,7 +162,7 @@ zen trainee00@l55:~$ module avail aocc
zen trainee00@l55:~$ module load aocc/4.1.0-gcc-12.2.0-rir6635 zen trainee00@l55:~$ module load aocc/4.1.0-gcc-12.2.0-rir6635
``` ```
GNU compilers for `cuda-zen`: AOCC compilers for `cuda-zen`:
```bash ```bash
None None
...@@ -176,9 +176,9 @@ on `cuda-zen` instead. ...@@ -176,9 +176,9 @@ on `cuda-zen` instead.
| Language | Intel | GNU | AOCC | | Language | Intel | GNU | AOCC |
|----------|---------|------------|-----------| |----------|---------|------------|-----------|
| C | `icc` | `gcc` | `clang` | | C | `icx` | `gcc` | `clang` |
| C++ | `icpc` | `g++/c++` | `clang++` | | C++ | `icpx` | `g++/c++` | `clang++` |
| Fortran | `ifort` | `gfortran` | `flang` | | Fortran | `ifx` | `gfortran` | `flang` |
# Serial code examples # Serial code examples
...@@ -208,8 +208,8 @@ zen trainee00@l55:~$ module load compiler/latest ...@@ -208,8 +208,8 @@ zen trainee00@l55:~$ module load compiler/latest
Compile without/with optimization: Compile without/with optimization:
```bash ```bash
zen trainee00@l55:~$ icc -O0 hello.c -o hello_c zen trainee00@l55:~$ icx -O0 hello.c -o hello_c
zen trainee00@l55:~$ icc -O3 -xHost hello.c -o hello_c zen trainee00@l55:~$ icx -O3 -xHost hello.c -o hello_c
``` ```
Run the resulting binary: Run the resulting binary:
...@@ -278,7 +278,7 @@ Hello World ...@@ -278,7 +278,7 @@ Hello World
## Compiling parallel C code with OpenMP using Intel/GNU/AOCC ## Compiling parallel C code with OpenMP using Intel/GNU/AOCC
```bash ```bash
zen trainee00@l55:~$ icc -qopenmp hello_openmp.c -o hello_openmp_c zen trainee00@l55:~$ icx -qopenmp hello_openmp.c -o hello_openmp_c
zen trainee00@l55:~$ gcc -fopenmp hello_openmp.c -o hello_openmp_c zen trainee00@l55:~$ gcc -fopenmp hello_openmp.c -o hello_openmp_c
zen trainee00@l55:~$ clang -fopenmp hello_openmp.c -o hello_openmp_c zen trainee00@l55:~$ clang -fopenmp hello_openmp.c -o hello_openmp_c
``` ```
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment