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
91618ab3
Commit
91618ab3
authored
3 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
starpu/interface: Add a cmake option to check for existence of reuse_data_on_node field
parent
0ee9f080
No related branches found
No related tags found
1 merge request
!283
StarPU Interface: Add the reuse_on_node function
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
runtime/starpu/CMakeLists.txt
+8
-0
8 additions, 0 deletions
runtime/starpu/CMakeLists.txt
runtime/starpu/include/chameleon_starpu.h.in
+1
-0
1 addition, 0 deletions
runtime/starpu/include/chameleon_starpu.h.in
with
9 additions
and
0 deletions
runtime/starpu/CMakeLists.txt
+
8
−
0
View file @
91618ab3
...
...
@@ -28,6 +28,8 @@
###
cmake_minimum_required
(
VERSION 3.1
)
include
(
CheckStructHasMember
)
set
(
CHAMELEON_STARPU_VERSION
"1.3"
CACHE STRING
"necessary STARPU API version"
)
find_package
(
STARPU
${
CHAMELEON_STARPU_VERSION
}
REQUIRED
)
...
...
@@ -38,6 +40,7 @@ if ( STARPU_FOUND )
message
(
"--
${
Blue
}
Add definition CHAMELEON_SCHED_STARPU"
" - Activate StarPU in Chameleon
${
ColourReset
}
"
)
get_target_property
(
CMAKE_REQUIRED_LIBRARIES MORSE::STARPU INTERFACE_LINK_LIBRARIES
)
get_target_property
(
CMAKE_REQUIRED_INCLUDES MORSE::STARPU INTERFACE_INCLUDE_DIRECTORIES
)
check_function_exists
(
starpu_data_idle_prefetch_on_node HAVE_STARPU_IDLE_PREFETCH
)
if
(
HAVE_STARPU_IDLE_PREFETCH
)
message
(
"--
${
Blue
}
Add definition HAVE_STARPU_IDLE_PREFETCH
${
ColourReset
}
"
)
...
...
@@ -70,6 +73,10 @@ if ( STARPU_FOUND )
if
(
HAVE_STARPU_DATA_PEEK
)
message
(
"--
${
Blue
}
Add definition HAVE_STARPU_DATA_PEEK
${
ColourReset
}
"
)
endif
()
check_struct_has_member
(
"struct starpu_data_interface_ops"
reuse_data_on_node
"starpu_data_interfaces.h"
HAVE_STARPU_REUSE_DATA_ON_NODE LANGUAGE
"C"
)
if
(
HAVE_STARPU_REUSE_DATA_ON_NODE
)
message
(
"--
${
Blue
}
Add definition HAVE_STARPU_REUSE_DATA_ON_NODE
${
ColourReset
}
"
)
endif
()
if
(
CHAMELEON_USE_MPI
)
# Add MPI in case StarPU don't have a public dependency on it
...
...
@@ -120,6 +127,7 @@ if ( STARPU_FOUND )
endif
()
endif
()
unset
(
CMAKE_REQUIRED_LIBRARIES
)
unset
(
CMAKE_REQUIRED_INCLUDES
)
endif
(
STARPU_FOUND
)
configure_file
(
"include/chameleon_starpu.h.in"
...
...
This diff is collapsed.
Click to expand it.
runtime/starpu/include/chameleon_starpu.h.in
+
1
−
0
View file @
91618ab3
...
...
@@ -34,6 +34,7 @@
#cmakedefine HAVE_STARPU_DATA_SET_OOC_FLAG
#cmakedefine HAVE_STARPU_INTERFACE_COPY2D
#cmakedefine HAVE_STARPU_DATA_PEEK
#cmakedefine HAVE_STARPU_REUSE_DATA_ON_NODE
#cmakedefine HAVE_STARPU_MPI_DATA_MIGRATE
#cmakedefine HAVE_STARPU_MPI_DATA_REGISTER
#cmakedefine HAVE_STARPU_MPI_COMM_RANK
...
...
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