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
dfee81a1
Commit
dfee81a1
authored
1 year ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
zgetrf: Add a function using map to initialize the IPIV array (may be unused in the future)
parent
abb9f173
No related branches found
No related tags found
1 merge request
!393
GETRF: Integrate IPIV array in the interface and testings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compute/pzgetrf.c
+47
-0
47 additions, 0 deletions
compute/pzgetrf.c
with
47 additions
and
0 deletions
compute/pzgetrf.c
+
47
−
0
View file @
dfee81a1
...
...
@@ -24,6 +24,50 @@
#define A(m,n) A, m, n
#define U(m,n) &(ws->U), m, n
#define IPIV(m) IPIV, m, 1
/*
* Static variable to know how to handle the data within the kernel
* This assumes that only one runtime is enabled at a time.
*/
static
RUNTIME_id_t
zgetrf_runtime_id
=
RUNTIME_SCHED_STARPU
;
static
inline
int
zgetrf_ipiv_init
(
const
CHAM_desc_t
*
descIPIV
,
cham_uplo_t
uplo
,
int
m
,
int
n
,
CHAM_tile_t
*
tileIPIV
,
void
*
op_args
)
{
int
*
IPIV
;
(
void
)
op_args
;
if
(
zgetrf_runtime_id
==
RUNTIME_SCHED_PARSEC
)
{
IPIV
=
(
int
*
)
tileIPIV
;
}
else
{
IPIV
=
CHAM_tile_get_ptr
(
tileIPIV
);
}
#if !defined(CHAMELEON_SIMULATION)
{
int
tempmm
=
m
==
descIPIV
->
mt
-
1
?
descIPIV
->
m
-
m
*
descIPIV
->
mb
:
descIPIV
->
mb
;
int
i
;
for
(
i
=
0
;
i
<
tempmm
;
i
++
)
{
IPIV
[
i
]
=
m
*
descIPIV
->
mb
+
i
+
1
;
}
}
#endif
return
0
;
}
static
inline
void
chameleon_pzgetrf_ipiv_init
(
CHAM_desc_t
*
IPIV
,
RUNTIME_sequence_t
*
sequence
,
RUNTIME_request_t
*
request
)
{
chameleon_pmap
(
ChamW
,
ChamUpperLower
,
IPIV
,
zgetrf_ipiv_init
,
NULL
,
sequence
,
request
);
}
/*
* All the functions below are panel factorization variant.
...
...
@@ -199,6 +243,9 @@ void chameleon_pzgetrf( struct chameleon_pzgetrf_s *ws,
}
RUNTIME_options_init
(
&
options
,
chamctxt
,
sequence
,
request
);
/* Initialize IPIV */
chameleon_pzgetrf_ipiv_init
(
IPIV
,
sequence
,
request
);
for
(
k
=
0
;
k
<
min_mnt
;
k
++
)
{
RUNTIME_iteration_push
(
chamctxt
,
k
);
...
...
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