Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
a651c05f
Commit
a651c05f
authored
Nov 04, 2016
by
THIBAULT Samuel
Browse files
constify descriptor in RUNTIME_desc_getaddr call
parent
ce3d81e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/runtime.h
View file @
a651c05f
...
...
@@ -66,7 +66,7 @@ void RUNTIME_desc_init (MORSE_desc_t*);
void
RUNTIME_desc_create
(
MORSE_desc_t
*
);
void
RUNTIME_desc_destroy
(
MORSE_desc_t
*
);
void
RUNTIME_desc_submatrix
(
MORSE_desc_t
*
);
void
*
RUNTIME_desc_getaddr
(
MORSE_desc_t
*
,
int
,
int
);
void
*
RUNTIME_desc_getaddr
(
const
MORSE_desc_t
*
,
int
,
int
);
/* Acquire in main memory an up-to-date copy of the data described by the descriptor for read-write access. */
int
RUNTIME_desc_acquire
(
MORSE_desc_t
*
);
/* Release the data described by the descriptor to be used by the StarPU tasks again. */
...
...
runtime/parsec/control/runtime_descriptor.c
View file @
a651c05f
...
...
@@ -269,7 +269,7 @@ int RUNTIME_desc_getoncpu( MORSE_desc_t *desc )
return
MORSE_SUCCESS
;
}
void
*
RUNTIME_desc_getaddr
(
MORSE_desc_t
*
desc
,
int
m
,
int
n
)
void
*
RUNTIME_desc_getaddr
(
const
MORSE_desc_t
*
desc
,
int
m
,
int
n
)
{
assert
(
0
);
/* This should not be called because we also need the handle to match the address we need. */
return
desc
->
get_blkaddr
(
desc
,
m
,
n
);
...
...
runtime/quark/control/runtime_descriptor.c
View file @
a651c05f
...
...
@@ -84,7 +84,7 @@ int RUNTIME_desc_getoncpu( MORSE_desc_t *desc )
return
MORSE_SUCCESS
;
}
void
*
RUNTIME_desc_getaddr
(
MORSE_desc_t
*
desc
,
int
m
,
int
n
)
void
*
RUNTIME_desc_getaddr
(
const
MORSE_desc_t
*
desc
,
int
m
,
int
n
)
{
return
desc
->
get_blkaddr
(
desc
,
m
,
n
);
}
runtime/starpu/control/runtime_descriptor.c
View file @
a651c05f
...
...
@@ -293,7 +293,7 @@ int RUNTIME_desc_getoncpu( MORSE_desc_t *desc )
return
MORSE_SUCCESS
;
}
void
*
RUNTIME_desc_getaddr
(
MORSE_desc_t
*
desc
,
int
m
,
int
n
)
void
*
RUNTIME_desc_getaddr
(
const
MORSE_desc_t
*
desc
,
int
m
,
int
n
)
{
starpu_data_handle_t
*
ptrtile
=
(
starpu_data_handle_t
*
)(
desc
->
schedopt
);
ptrtile
+=
((
int64_t
)(
desc
->
lmt
)
*
(
int64_t
)
n
+
(
int64_t
)
m
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment