Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
SWIFTsim
Commits
66109803
Commit
66109803
authored
2 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Plain Diff
Merge branch 'setspecific-cleanup' into 'master'
Remove thread specific seed code. See merge request
!1647
parents
ede26e38
01ae0991
Branches
Branches containing commit
Tags
Tags containing commit
5 merge requests
!1715
Update planetary strength after planetary plus's master rebase
,
!1693
More threapool plotting tweaks
,
!1668
before Mag.Egy in all the flavors
,
!1662
Initial sync from previous months
,
!1647
Remove thread specific seed code.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/runner_main.c
+1
-2
1 addition, 2 deletions
src/runner_main.c
src/scheduler.c
+0
-1
0 additions, 1 deletion
src/scheduler.c
src/scheduler.h
+0
-3
0 additions, 3 deletions
src/scheduler.h
with
1 addition
and
6 deletions
src/runner_main.c
+
1
−
2
View file @
66109803
...
...
@@ -135,8 +135,7 @@ void *runner_main(void *data) {
struct
runner
*
r
=
(
struct
runner
*
)
data
;
struct
engine
*
e
=
r
->
e
;
struct
scheduler
*
sched
=
&
e
->
sched
;
unsigned
int
seed
=
r
->
id
;
pthread_setspecific
(
sched
->
local_seed_pointer
,
&
seed
);
/* Main loop. */
while
(
1
)
{
...
...
This diff is collapsed.
Click to expand it.
src/scheduler.c
+
0
−
1
View file @
66109803
...
...
@@ -2948,7 +2948,6 @@ void scheduler_init(struct scheduler *s, struct space *space, int nr_tasks,
s
->
size
=
0
;
s
->
tasks
=
NULL
;
s
->
tasks_ind
=
NULL
;
pthread_key_create
(
&
s
->
local_seed_pointer
,
NULL
);
scheduler_reset
(
s
,
nr_tasks
);
}
...
...
This diff is collapsed.
Click to expand it.
src/scheduler.h
+
0
−
3
View file @
66109803
...
...
@@ -106,9 +106,6 @@ struct scheduler {
* MPI. */
size_t
mpi_message_limit
;
/* 'Pointer' to the seed for the random number generator */
pthread_key_t
local_seed_pointer
;
/* Total ticks spent running the tasks */
ticks
total_ticks
;
...
...
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