Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Chameleon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
35a3a1f8
Commit
35a3a1f8
authored
Jan 22, 2015
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use an environnement variable instead of a fixed factor
parent
2349938e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
runtime/starpu/codelets/codelet_zgemm.c
runtime/starpu/codelets/codelet_zgemm.c
+8
-3
runtime/starpu/codelets/codelet_ztrsm.c
runtime/starpu/codelets/codelet_ztrsm.c
+7
-2
No files found.
runtime/starpu/codelets/codelet_zgemm.c
View file @
35a3a1f8
...
...
@@ -54,11 +54,16 @@ void MORSE_TASK_zgemm(MORSE_option_t *options,
int
rank_changed
=
0
;
// force execution on the rank owning the largest data (tile)
// the numerical facto 10 should be an environnement variable
if
(
sizeA
>
10
*
sizeC
){
int
threshold
;
char
*
env
=
getenv
(
"MORSE_COMM_FACTOR_THRESHOLD"
);
if
(
env
!=
NULL
)
threshold
=
(
unsigned
)
atoi
(
env
);
else
threshold
=
10
;
if
(
sizeA
>
threshold
*
sizeC
){
execution_rank
=
A
->
get_rankof
(
A
,
Am
,
An
);
rank_changed
=
1
;
}
else
if
(
sizeB
>
10
*
sizeC
){
}
else
if
(
sizeB
>
threshold
*
sizeC
){
execution_rank
=
B
->
get_rankof
(
B
,
Bm
,
Bn
);
rank_changed
=
1
;
}
...
...
runtime/starpu/codelets/codelet_ztrsm.c
View file @
35a3a1f8
...
...
@@ -52,8 +52,13 @@ void MORSE_TASK_ztrsm(MORSE_option_t *options,
int
rank_changed
=
0
;
// force execution on the rank owning the largest data (tile)
// the numerical facto 10 should be an environnement variable
if
(
sizeA
>
10
*
sizeB
){
int
threshold
;
char
*
env
=
getenv
(
"MORSE_COMM_FACTOR_THRESHOLD"
);
if
(
env
!=
NULL
)
threshold
=
(
unsigned
)
atoi
(
env
);
else
threshold
=
10
;
if
(
sizeA
>
threshold
*
sizeB
){
execution_rank
=
A
->
get_rankof
(
A
,
Am
,
An
);
rank_changed
=
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment