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
be6e7abd
Commit
be6e7abd
authored
11 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
avoid tag overflows.
Former-commit-id: 5ef797ef0a287cd624f2d47d4adfa89f7c70d66e
parent
540904ec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+6
-6
6 additions, 6 deletions
src/engine.c
with
6 additions
and
6 deletions
src/engine.c
+
6
−
6
View file @
be6e7abd
...
...
@@ -95,9 +95,9 @@ void engine_addtasks_send ( struct engine *e , struct cell *ci , struct cell *cj
if
(
k
<
ci
->
nr_density
)
{
/* Compute the cell's tag. */
tag
=
(
int
)(
ci
->
loc
[
0
]
/
e
->
s
->
dim
[
0
]
*
1024
)
+
((
int
)(
ci
->
loc
[
1
]
/
e
->
s
->
dim
[
1
]
*
1024
)
<<
10
)
+
((
int
)(
ci
->
loc
[
2
]
/
e
->
s
->
dim
[
2
]
*
1024
)
<<
20
);
tag
=
(
int
)(
ci
->
loc
[
0
]
/
e
->
s
->
dim
[
0
]
*
512
)
+
((
int
)(
ci
->
loc
[
1
]
/
e
->
s
->
dim
[
1
]
*
512
)
<<
9
)
+
((
int
)(
ci
->
loc
[
2
]
/
e
->
s
->
dim
[
2
]
*
512
)
<<
18
);
tag
=
tag
*
2
;
/* Create the tasks. */
...
...
@@ -141,9 +141,9 @@ void engine_addtasks_recv ( struct engine *e , struct cell *c , struct task *t_x
if
(
t_xv
!=
NULL
||
c
->
nr_density
>
0
)
{
/* Compute the cell's tag. */
tag
=
(
int
)(
c
->
loc
[
0
]
/
e
->
s
->
dim
[
0
]
*
1024
)
+
((
int
)(
c
->
loc
[
1
]
/
e
->
s
->
dim
[
1
]
*
1024
)
<<
10
)
+
((
int
)(
c
->
loc
[
2
]
/
e
->
s
->
dim
[
2
]
*
1024
)
<<
20
);
tag
=
(
int
)(
c
->
loc
[
0
]
/
e
->
s
->
dim
[
0
]
*
512
)
+
((
int
)(
c
->
loc
[
1
]
/
e
->
s
->
dim
[
1
]
*
512
)
<<
9
)
+
((
int
)(
c
->
loc
[
2
]
/
e
->
s
->
dim
[
2
]
*
512
)
<<
18
);
tag
=
tag
*
2
;
/* Create the tasks. */
...
...
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