Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
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
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
6134c424
Commit
6134c424
authored
2 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
CHAM_tile_t: add a rank field to store the rank of the tile at initialization
parent
bce319e4
No related branches found
No related tags found
1 merge request
!340
descriptor: Add a rank_of_init function to store the initial distribution, and...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
control/descriptor.c
+5
-4
5 additions, 4 deletions
control/descriptor.c
include/chameleon/struct.h
+2
-2
2 additions, 2 deletions
include/chameleon/struct.h
with
7 additions
and
6 deletions
control/descriptor.c
+
5
−
4
View file @
6134c424
...
@@ -100,10 +100,11 @@ void chameleon_desc_init_tiles( CHAM_desc_t *desc )
...
@@ -100,10 +100,11 @@ void chameleon_desc_init_tiles( CHAM_desc_t *desc )
for
(
ii
=
0
;
ii
<
desc
->
lmt
;
ii
++
,
tile
++
)
{
for
(
ii
=
0
;
ii
<
desc
->
lmt
;
ii
++
,
tile
++
)
{
int
rank
=
desc
->
get_rankof
(
desc
,
ii
,
jj
);
int
rank
=
desc
->
get_rankof
(
desc
,
ii
,
jj
);
tile
->
format
=
CHAMELEON_TILE_FULLRANK
;
tile
->
format
=
CHAMELEON_TILE_FULLRANK
;
tile
->
m
=
ii
==
desc
->
lmt
-
1
?
desc
->
lm
-
ii
*
desc
->
mb
:
desc
->
mb
;
tile
->
rank
=
rank
;
tile
->
n
=
jj
==
desc
->
lnt
-
1
?
desc
->
ln
-
jj
*
desc
->
nb
:
desc
->
nb
;
tile
->
m
=
ii
==
desc
->
lmt
-
1
?
desc
->
lm
-
ii
*
desc
->
mb
:
desc
->
mb
;
tile
->
mat
=
(
rank
==
desc
->
myrank
)
?
desc
->
get_blkaddr
(
desc
,
ii
,
jj
)
:
NULL
;
tile
->
n
=
jj
==
desc
->
lnt
-
1
?
desc
->
ln
-
jj
*
desc
->
nb
:
desc
->
nb
;
tile
->
ld
=
desc
->
get_blkldd
(
desc
,
ii
);
tile
->
mat
=
(
rank
==
desc
->
myrank
)
?
desc
->
get_blkaddr
(
desc
,
ii
,
jj
)
:
NULL
;
tile
->
ld
=
desc
->
get_blkldd
(
desc
,
ii
);
#if defined(CHAMELEON_KERNELS_TRACE)
#if defined(CHAMELEON_KERNELS_TRACE)
chameleon_asprintf
(
&
(
tile
->
name
),
"%s(%d,%d)"
,
desc
->
name
,
ii
,
jj
);
chameleon_asprintf
(
&
(
tile
->
name
),
"%s(%d,%d)"
,
desc
->
name
,
ii
,
jj
);
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
include/chameleon/struct.h
+
2
−
2
View file @
6134c424
...
@@ -39,9 +39,9 @@ typedef struct chameleon_tile_s {
...
@@ -39,9 +39,9 @@ typedef struct chameleon_tile_s {
#if defined(CHAMELEON_KERNELS_TRACE)
#if defined(CHAMELEON_KERNELS_TRACE)
char
*
name
;
char
*
name
;
#endif
#endif
int8_t
format
;
int
m
,
n
,
ld
;
void
*
mat
;
void
*
mat
;
int
rank
,
m
,
n
,
ld
;
int8_t
format
;
}
CHAM_tile_t
;
}
CHAM_tile_t
;
/**
/**
...
...
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