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
ce7e4fd2
Commit
ce7e4fd2
authored
9 months ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
gered: add the possibility to define precision through environment variable
parent
945e4dec
No related branches found
No related tags found
1 merge request
!474
Mixed Precision / Fix small issues in the conversion kernels for a better propagation of the information in distributed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compute/zgered.c
+10
-1
10 additions, 1 deletion
compute/zgered.c
compute/zhered.c
+9
-0
9 additions, 0 deletions
compute/zhered.c
with
19 additions
and
1 deletion
compute/zgered.c
+
10
−
1
View file @
ce7e4fd2
...
...
@@ -13,7 +13,7 @@
*
* @version 1.3.0
* @author Mathieu Faverge
* @date 202
3
-07-
06
* @date 202
4
-07-
17
* @precisions normal z -> z d
*
*/
...
...
@@ -166,6 +166,15 @@ int CHAMELEON_zgered_Tile_Async( cham_uplo_t uplo, double precision, CHAM_desc_t
return
CHAMELEON_SUCCESS
;
}
if
(
precision
<
0
.
)
{
char
*
algostr
=
chameleon_getenv
(
"CHAMELEON_GERED_ACC"
);
if
(
algostr
==
NULL
)
{
precision
=
1e-12
;
}
else
{
precision
=
strtod
(
algostr
,
NULL
);
}
}
chameleon_pzgered
(
uplo
,
precision
,
A
,
sequence
,
request
);
return
CHAMELEON_SUCCESS
;
...
...
This diff is collapsed.
Click to expand it.
compute/zhered.c
+
9
−
0
View file @
ce7e4fd2
...
...
@@ -167,6 +167,15 @@ int CHAMELEON_zhered_Tile_Async( cham_uplo_t uplo, double precision, CHAM_desc_t
return
CHAMELEON_SUCCESS
;
}
if
(
precision
<
0
.
)
{
char
*
algostr
=
chameleon_getenv
(
"CHAMELEON_GERED_ACC"
);
if
(
algostr
==
NULL
)
{
precision
=
1e-12
;
}
else
{
precision
=
strtod
(
algostr
,
NULL
);
}
}
chameleon_pzhered
(
ChamConjTrans
,
uplo
,
precision
,
A
,
sequence
,
request
);
return
CHAMELEON_SUCCESS
;
...
...
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