Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture materials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
generic software skills
lecture materials
Commits
2ac97b39
Commit
2ac97b39
authored
10 months ago
by
Georgiana Mania
Browse files
Options
Downloads
Patches
Plain Diff
remove -O3 from hands-on
parent
7b714ae6
No related branches found
Branches containing commit
No related tags found
1 merge request
!72
Draft: Compute devices lecture
Pipeline
#70243
passed
10 months ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lectures/parallelism/slides.qmd
+2
-2
2 additions, 2 deletions
lectures/parallelism/slides.qmd
with
2 additions
and
2 deletions
lectures/parallelism/slides.qmd
+
2
−
2
View file @
2ac97b39
...
...
@@ -126,12 +126,12 @@ module load gcc
```
2. Compile and run the serial example
```bash
gcc
-O3
main.c -o serial.x -lm
gcc main.c -o serial.x -lm
time ./serial.x # use `time` to check the runtime
```
3. Compile and run the example using OpenMP
```bash
gcc
-O3
-fopenmp main.c -o parallel.x -lm
gcc -fopenmp main.c -o parallel.x -lm
export OMP_NUM_THREADS=2
time ./parallel.x
```
...
...
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