Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HPC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandru Dura
HPC
Commits
36db08c6
Commit
36db08c6
authored
Feb 21, 2020
by
Alexandru Dura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the initialization values
parent
e5a4853a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
exercise_04/norm/norm-orphan.c
exercise_04/norm/norm-orphan.c
+1
-1
exercise_04/norm/norm.c
exercise_04/norm/norm.c
+1
-1
No files found.
exercise_04/norm/norm-orphan.c
View file @
36db08c6
...
...
@@ -32,7 +32,7 @@ void NOINLINE initialize(double *d, int n, double val) {
#pragma omp for NOWAIT \
schedule(SCHEDULE, CHUNK_SIZE)
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
d
[
i
]
=
val
;
d
[
i
]
=
i
;
}
}
...
...
exercise_04/norm/norm.c
View file @
36db08c6
...
...
@@ -27,7 +27,7 @@ void NOINLINE initialize(double *d, int n, double val) {
#pragma omp parallel for \
schedule(SCHEDULE, CHUNK_SIZE)
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
d
[
i
]
=
val
;
d
[
i
]
=
i
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment