***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VSC Intro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASC Public
Training Materials
VSC Intro
Commits
c0044582
Commit
c0044582
authored
1 year ago
by
Zabloudil, Jan
Browse files
Options
Downloads
Patches
Plain Diff
updated for new intel compilers
parent
56eafeeb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiling/compiling.md
+8
-8
8 additions, 8 deletions
compiling/compiling.md
compiling/compiling.pdf
+0
-0
0 additions, 0 deletions
compiling/compiling.pdf
with
8 additions
and
8 deletions
compiling/compiling.md
+
8
−
8
View file @
c0044582
...
@@ -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
`ic
c
`
, type
`which ic
c
`
to see which compiler is
Since both are called
`ic
x
`
, type
`which ic
x
`
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 |
`ic
c
`
|
`gcc`
|
`clang`
|
| C |
`ic
x
`
|
`gcc`
|
`clang`
|
| C++ |
`icp
c
`
|
`g++/c++`
|
`clang++`
|
| C++ |
`icp
x
`
|
`g++/c++`
|
`clang++`
|
| Fortran |
`if
ort`
|
`gfortran`
|
`flang`
|
| Fortran |
`if
x`
|
`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:~
$
ic
c
-O0
hello.c
-o
hello_c
zen trainee00@l55:~
$
ic
x
-O0
hello.c
-o
hello_c
zen trainee00@l55:~
$
ic
c
-O3
-xHost
hello.c
-o
hello_c
zen trainee00@l55:~
$
ic
x
-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:~
$
ic
c
-qopenmp
hello_openmp.c
-o
hello_openmp_c
zen trainee00@l55:~
$
ic
x
-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
```
```
...
...
This diff is collapsed.
Click to expand it.
compiling/compiling.pdf
+
0
−
0
View file @
c0044582
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment