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
85ac57c5
Commit
85ac57c5
authored
Mar 24, 2015
by
THIBAULT Samuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use starpu_data_wont_use if available
parent
a5d96d28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
CMakeLists.txt
CMakeLists.txt
+10
-1
runtime/starpu/codelets/codelet_dataflush.c
runtime/starpu/codelets/codelet_dataflush.c
+5
-2
No files found.
CMakeLists.txt
View file @
85ac57c5
...
...
@@ -4,7 +4,7 @@
# of Tennessee Research Foundation.
# All rights reserved.
# @copyright (c) 2012-2014 Inria. All rights reserved.
# @copyright (c) 2012-201
4
Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
# @copyright (c) 2012-201
5
Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
#
###
#
...
...
@@ -563,6 +563,15 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
list
(
APPEND CMAKE_REQUIRED_FLAGS
"-L
${
libdir
}
"
)
endforeach
()
string
(
REPLACE
";"
" "
CMAKE_REQUIRED_FLAGS
"
${
CMAKE_REQUIRED_FLAGS
}
"
)
set
(
CMAKE_REQUIRED_LIBRARIES
"
${
STARPU_SHM_LIBRARIES
}
"
)
check_function_exists
(
starpu_data_idle_prefetch_on_node STARPU_IDLE_PREFETCH_FOUND
)
if
(
STARPU_IDLE_PREFETCH_FOUND
)
add_definitions
(
-DCHAMELEON_USE_STARPU_IDLE_PREFETCH
)
endif
()
check_function_exists
(
starpu_data_wont_use STARPU_DATA_WONT_USE_FOUND
)
if
(
STARPU_DATA_WONT_USE_FOUND
)
add_definitions
(
-DCHAMELEON_USE_STARPU_DATA_WONT_USE
)
endif
()
if
(
CHAMELEON_USE_FXT
)
# check if fxt profiling is accessible in starpu and activate it in chameleon
set
(
CMAKE_REQUIRED_LIBRARIES
"
${
STARPU_SHM_LIBRARIES
}
"
)
...
...
runtime/starpu/codelets/codelet_dataflush.c
View file @
85ac57c5
...
...
@@ -26,7 +26,8 @@
**/
#include "runtime/starpu/include/morse_starpu.h"
#ifdef CHAMELEON_USE_STARPU_IDLE_PREFETCH
#ifdef CHAMELEON_USE_STARPU_DATA_WONT_USE
#elif defined CHAMELEON_USE_STARPU_IDLE_PREFETCH
static
void
data_flush
(
void
*
handle
)
{
starpu_data_idle_prefetch_on_node
(
handle
,
STARPU_MAIN_RAM
,
1
);
...
...
@@ -62,7 +63,9 @@ void MORSE_TASK_dataflush(MORSE_option_t *options,
if
(
A
->
myrank
==
A
->
get_rankof
(
A
,
Am
,
An
)
)
{
/* Push data to main memory when we have time to */
#ifdef CHAMELEON_USE_STARPU_IDLE_PREFETCH
#ifdef CHAMELEON_USE_STARPU_DATA_WONT_USE
starpu_data_wont_use
(
*
ptrtile
);
#elif defined CHAMELEON_USE_STARPU_IDLE_PREFETCH
starpu_data_acquire_on_node_cb
(
*
ptrtile
,
-
1
,
STARPU_R
,
data_flush
,
*
ptrtile
);
#else
starpu_data_acquire_cb
(
*
ptrtile
,
STARPU_R
,
data_release
,
*
ptrtile
);
...
...
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