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
85ac57c5
Commit
85ac57c5
authored
9 years ago
by
THIBAULT Samuel
Browse files
Options
Downloads
Patches
Plain Diff
Use starpu_data_wont_use if available
parent
a5d96d28
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+10
-1
10 additions, 1 deletion
CMakeLists.txt
runtime/starpu/codelets/codelet_dataflush.c
+5
-2
5 additions, 2 deletions
runtime/starpu/codelets/codelet_dataflush.c
with
15 additions
and
3 deletions
CMakeLists.txt
+
10
−
1
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
}
"
)
...
...
This diff is collapsed.
Click to expand it.
runtime/starpu/codelets/codelet_dataflush.c
+
5
−
2
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
);
...
...
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