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
2e42bcae
Commit
2e42bcae
authored
3 months ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
ipiv: Silent compilation warning when mpi is disabled
parent
527c3d42
No related branches found
No related tags found
1 merge request
!507
ci: add test_starpu_cuda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runtime/starpu/control/runtime_descriptor_ipiv.c
+11
-11
11 additions, 11 deletions
runtime/starpu/control/runtime_descriptor_ipiv.c
with
11 additions
and
11 deletions
runtime/starpu/control/runtime_descriptor_ipiv.c
+
11
−
11
View file @
2e42bcae
...
@@ -96,15 +96,15 @@ void *RUNTIME_ipiv_getaddr( const CHAM_ipiv_t *ipiv, int m )
...
@@ -96,15 +96,15 @@ void *RUNTIME_ipiv_getaddr( const CHAM_ipiv_t *ipiv, int m )
return
(
void
*
)(
*
handle
);
return
(
void
*
)(
*
handle
);
}
}
const
CHAM_desc_t
*
A
=
ipiv
->
desc
;
int
owner
=
A
->
get_rankof
(
A
,
m
,
m
);
int
ncols
=
(
mm
==
(
ipiv
->
mt
-
1
))
?
ipiv
->
m
-
mm
*
ipiv
->
mb
:
ipiv
->
mb
;
int
ncols
=
(
mm
==
(
ipiv
->
mt
-
1
))
?
ipiv
->
m
-
mm
*
ipiv
->
mb
:
ipiv
->
mb
;
starpu_vector_data_register
(
handle
,
-
1
,
(
uintptr_t
)
NULL
,
ncols
,
sizeof
(
int
)
);
starpu_vector_data_register
(
handle
,
-
1
,
(
uintptr_t
)
NULL
,
ncols
,
sizeof
(
int
)
);
#if defined(CHAMELEON_USE_MPI)
#if defined(CHAMELEON_USE_MPI)
{
{
int64_t
tag
=
ipiv
->
mpitag_ipiv
+
mm
;
const
CHAM_desc_t
*
A
=
ipiv
->
desc
;
int
owner
=
A
->
get_rankof
(
A
,
m
,
m
);
int64_t
tag
=
ipiv
->
mpitag_ipiv
+
mm
;
starpu_mpi_data_register
(
*
handle
,
tag
,
owner
);
starpu_mpi_data_register
(
*
handle
,
tag
,
owner
);
}
}
#endif
/* defined(CHAMELEON_USE_MPI) */
#endif
/* defined(CHAMELEON_USE_MPI) */
...
@@ -173,15 +173,15 @@ void *RUNTIME_perm_getaddr( const CHAM_ipiv_t *ipiv, int m )
...
@@ -173,15 +173,15 @@ void *RUNTIME_perm_getaddr( const CHAM_ipiv_t *ipiv, int m )
return
(
void
*
)(
*
handle
);
return
(
void
*
)(
*
handle
);
}
}
const
CHAM_desc_t
*
A
=
ipiv
->
desc
;
int
owner
=
A
->
get_rankof
(
A
,
m
,
m
);
int
ncols
=
ipiv
->
mb
;
int
ncols
=
ipiv
->
mb
;
starpu_vector_data_register
(
handle
,
-
1
,
(
uintptr_t
)
NULL
,
ncols
,
sizeof
(
int
)
);
starpu_vector_data_register
(
handle
,
-
1
,
(
uintptr_t
)
NULL
,
ncols
,
sizeof
(
int
)
);
#if defined(CHAMELEON_USE_MPI)
#if defined(CHAMELEON_USE_MPI)
{
{
int64_t
tag
=
ipiv
->
mpitag_perm
+
mm
;
const
CHAM_desc_t
*
A
=
ipiv
->
desc
;
int
owner
=
A
->
get_rankof
(
A
,
m
,
m
);
int64_t
tag
=
ipiv
->
mpitag_perm
+
mm
;
starpu_mpi_data_register
(
*
handle
,
tag
,
owner
);
starpu_mpi_data_register
(
*
handle
,
tag
,
owner
);
}
}
#endif
/* defined(CHAMELEON_USE_MPI) */
#endif
/* defined(CHAMELEON_USE_MPI) */
...
@@ -202,15 +202,15 @@ void *RUNTIME_invp_getaddr( const CHAM_ipiv_t *ipiv, int m )
...
@@ -202,15 +202,15 @@ void *RUNTIME_invp_getaddr( const CHAM_ipiv_t *ipiv, int m )
return
(
void
*
)(
*
handle
);
return
(
void
*
)(
*
handle
);
}
}
const
CHAM_desc_t
*
A
=
ipiv
->
desc
;
int
owner
=
A
->
get_rankof
(
A
,
m
,
m
);
int
ncols
=
ipiv
->
mb
;
int
ncols
=
ipiv
->
mb
;
starpu_vector_data_register
(
handle
,
-
1
,
(
uintptr_t
)
NULL
,
ncols
,
sizeof
(
int
)
);
starpu_vector_data_register
(
handle
,
-
1
,
(
uintptr_t
)
NULL
,
ncols
,
sizeof
(
int
)
);
#if defined(CHAMELEON_USE_MPI)
#if defined(CHAMELEON_USE_MPI)
{
{
int64_t
tag
=
ipiv
->
mpitag_invp
+
mm
;
const
CHAM_desc_t
*
A
=
ipiv
->
desc
;
int
owner
=
A
->
get_rankof
(
A
,
m
,
m
);
int64_t
tag
=
ipiv
->
mpitag_invp
+
mm
;
starpu_mpi_data_register
(
*
handle
,
tag
,
owner
);
starpu_mpi_data_register
(
*
handle
,
tag
,
owner
);
}
}
#endif
/* defined(CHAMELEON_USE_MPI) */
#endif
/* defined(CHAMELEON_USE_MPI) */
...
@@ -303,6 +303,7 @@ void RUNTIME_perm_flushk( const RUNTIME_sequence_t *sequence,
...
@@ -303,6 +303,7 @@ void RUNTIME_perm_flushk( const RUNTIME_sequence_t *sequence,
(
void
)
sequence
;
(
void
)
sequence
;
(
void
)
ipiv
;
(
void
)
ipiv
;
(
void
)
m
;
(
void
)
m
;
(
void
)
A
;
}
}
void
RUNTIME_ipiv_gather
(
const
RUNTIME_sequence_t
*
sequence
,
void
RUNTIME_ipiv_gather
(
const
RUNTIME_sequence_t
*
sequence
,
...
@@ -312,14 +313,13 @@ void RUNTIME_ipiv_gather( const RUNTIME_sequence_t *sequence,
...
@@ -312,14 +313,13 @@ void RUNTIME_ipiv_gather( const RUNTIME_sequence_t *sequence,
int64_t
mb
=
desc
->
mb
;
int64_t
mb
=
desc
->
mb
;
int64_t
tag
=
chameleon_starpu_tag_book
(
(
int64_t
)(
desc
->
mt
)
);
int64_t
tag
=
chameleon_starpu_tag_book
(
(
int64_t
)(
desc
->
mt
)
);
int
rank
=
CHAMELEON_Comm_rank
();
int
rank
=
CHAMELEON_Comm_rank
();
int
owner
=
rank
;
int
m
;
int
m
;
for
(
m
=
0
;
m
<
mt
;
m
++
,
ipiv
+=
mb
)
{
for
(
m
=
0
;
m
<
mt
;
m
++
,
ipiv
+=
mb
)
{
starpu_data_handle_t
ipiv_src
=
RUNTIME_ipiv_getaddr
(
desc
,
m
);
starpu_data_handle_t
ipiv_src
=
RUNTIME_ipiv_getaddr
(
desc
,
m
);
#if defined(CHAMELEON_USE_MPI)
#if defined(CHAMELEON_USE_MPI)
owner
=
starpu_mpi_data_get_rank
(
ipiv_src
);
int
owner
=
starpu_mpi_data_get_rank
(
ipiv_src
);
if
(
node
!=
owner
)
{
if
(
node
!=
owner
)
{
starpu_mpi_tag_t
tag
=
starpu_mpi_data_get_tag
(
ipiv_src
);
starpu_mpi_tag_t
tag
=
starpu_mpi_data_get_tag
(
ipiv_src
);
...
...
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