Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
e1e23b59
Commit
e1e23b59
authored
14 years ago
by
John Romein
Browse files
Options
Downloads
Patches
Plain Diff
bug 225:
Optimized core/pset remapping for BG/P.
parent
2f2f8a5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RTCP/Interface/src/CN_Mapping.cc
+9
-6
9 additions, 6 deletions
RTCP/Interface/src/CN_Mapping.cc
with
9 additions
and
6 deletions
RTCP/Interface/src/CN_Mapping.cc
+
9
−
6
View file @
e1e23b59
...
...
@@ -28,12 +28,15 @@ namespace RTCP {
unsigned
CN_Mapping
::
mapCoreOnPset
(
unsigned
core
,
unsigned
pset
)
{
#if defined HAVE_BGP
// TODO: there may be better mappings for partitions larger than one midplane
static
unsigned
char
mapX
[]
=
{
0
,
2
,
6
,
4
};
static
unsigned
char
mapY
[]
=
{
0
,
1
,
5
,
4
};
static
unsigned
char
mapZ
[]
=
{
0
,
1
,
3
,
2
};
return
core
^
mapX
[(
pset
>>
0
)
&
3
]
^
mapY
[(
pset
>>
2
)
&
3
]
^
mapZ
[(
pset
>>
4
)
&
3
];
// TODO: there may be better mappings for partitions larger than one rack
static
unsigned
char
mapX
[]
=
{
0
,
12
};
static
unsigned
char
mapY
[]
=
{
0
,
2
,
10
,
8
};
static
unsigned
char
mapZ
[]
=
{
0
,
1
,
3
,
2
,
6
,
7
,
5
,
4
};
return
core
^
mapX
[((
pset
&
0x08
)
>>
3
)]
^
mapY
[((
pset
&
0x01
)
>>
0
)
|
((
pset
&
0x10
)
>>
3
)]
^
mapZ
[((
pset
&
0x03
)
>>
1
)
|
((
pset
&
0x20
)
>>
3
)];
#else
(
void
)
pset
;
...
...
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