Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a0296c11 authored by ESTERIE Pierre's avatar ESTERIE Pierre
Browse files

Add Starpu section

parent d946b520
No related branches found
No related tags found
No related merge requests found
...@@ -370,141 +370,98 @@ if(MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/morse_c ...@@ -370,141 +370,98 @@ if(MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/morse_c
list(APPEND SCALFMM_CXX_FLAGS -Wcast-qual -Wconversion -Wcast-align -Woverloaded-virtual) list(APPEND SCALFMM_CXX_FLAGS -Wcast-qual -Wconversion -Wcast-align -Woverloaded-virtual)
endif() endif()
# ################################################################## #
# # STARPU Section # STARPU Section
# ################################################################## # --------------
# # message( STATUS "SCALFMM_USE_STARPU = ${SCALFMM_USE_STARPU}" )
# message( STATUS "SCALFMM_USE_STARPU = ${SCALFMM_USE_STARPU}" ) CMAKE_DEPENDENT_OPTION( SCALFMM_USE_OPENCL "Set to ON to use OPENCL with StarPU" OFF "SCALFMM_USE_STARPU" OFF)
# if( SCALFMM_USE_STARPU ) CMAKE_DEPENDENT_OPTION( SCALFMM_USE_CUDA "Set to ON to use OPENCL with StarPU" OFF "SCALFMM_USE_STARPU" OFF)
# # CUDA could be used with StarPU enabled if( SCALFMM_USE_STARPU )
# option( SCALFMM_USE_CUDA "Set to ON to use CUDA with StarPU" OFF ) enable_language(C)
# if(SCALFMM_USE_CUDA) # CUDA could be used with StarPU enabled
# execute_process(COMMAND nvcc --version ERROR_VARIABLE cuda_error_output OUTPUT_QUIET) option( SCALFMM_USE_CUDA "Set to ON to use CUDA with StarPU" OFF )
# if(cuda_error_output) #if(SCALFMM_USE_CUDA)
# message( FATAL_ERROR "nvcc is needed with CUDA." ) # execute_process(COMMAND nvcc --version ERROR_VARIABLE cuda_error_output OUTPUT_QUIET)
# endif() # if(cuda_error_output)
# if(NOT DEFINED CUSTOM_CUDA_FLAGS) # message( FATAL_ERROR "nvcc is needed with CUDA." )
# set( CUSTOM_CUDA_FLAGS "-std=c++11;-arch=sm_20;--ptxas-options=-v;-use_fast_math" CACHE # endif()
# STRING "Set your CUDA flags, for example : -arch=sm_20;--ptxas-options=-v;-use_fast_math") # if(NOT DEFINED CUSTOM_CUDA_FLAGS)
# endif() # set( CUSTOM_CUDA_FLAGS "-std=c++11;-arch=sm_20;--ptxas-options=-v;-use_fast_math" CACHE
# # This is needed to remove backslash after space in ADD_CUSTOM_COMMAND # STRING "Set your CUDA flags, for example : -arch=sm_20;--ptxas-options=-v;-use_fast_math")
# separate_arguments(CUSTOM_CUDA_FLAGS) # endif()
# message( STATUS "CUSTOM_CUDA_FLAGS = ${CUSTOM_CUDA_FLAGS}" ) # # This is needed to remove backslash after space in ADD_CUSTOM_COMMAND
# find_package(CUDA REQUIRED) # separate_arguments(CUSTOM_CUDA_FLAGS)
# # message( STATUS "CUSTOM_CUDA_FLAGS = ${CUSTOM_CUDA_FLAGS}" )
# if (CUDA_INCLUDE_DIRS) # find_package(CUDA REQUIRED)
# include_directories(${CUDA_INCLUDE_DIRS})
# endif() # if (CUDA_INCLUDE_DIRS)
# if (CUDA_LIBRARIES) # include_directories(${CUDA_INCLUDE_DIRS})
# set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};${CUDA_LIBRARIES}") # endif()
# endif() # if (CUDA_LIBRARIES)
# # set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};${CUDA_LIBRARIES}")
# set(CUDA_NEEDED_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/Src) # endif()
# endif()
# # set(CUDA_NEEDED_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/Src)
# # Find StarPU with a list of optional components #endif()
# set(SCALFMM_STARPU_VERSION "1.2" CACHE STRING " STARPU version desired")
# # create list of components in order to make a single call to find_package(starpu...) # Find StarPU with a list of optional components
# set(STARPU_COMPONENT_LIST "HWLOC") set(SCALFMM_STARPU_VERSION "1.2.8" CACHE STRING " STARPU version desired")
# # create list of components in order to make a single call to find_package(starpu...)
# set(STARPU_COMPONENT_LIST "HWLOC")
# if(SCALFMM_USE_CUDA) if(SCALFMM_USE_CUDA)
# list(APPEND STARPU_COMPONENT_LIST "CUDA") list(APPEND STARPU_COMPONENT_LIST "CUDA")
# endif() endif()
# list(APPEND FUSE_LIST "CUDA") list(APPEND FUSE_LIST "CUDA")
# if(SCALFMM_USE_MPI)
# if(SCALFMM_USE_MPI) list(APPEND STARPU_COMPONENT_LIST "MPI")
# list(APPEND STARPU_COMPONENT_LIST "MPI") endif()
# endif() if(SCALFMM_USE_OPENCL)
# # TODO: replace this by a component of find starpu list(APPEND STARPU_COMPONENT_LIST "OPENCL")
# OPTION( SCALFMM_USE_OPENCL "Set to ON to use OPENCL with StarPU" OFF ) endif()
# list(APPEND FUSE_LIST "OPENCL")
# if(SCALFMM_USE_OPENCL)
# list(APPEND STARPU_COMPONENT_LIST "OPENCL") find_package(STARPU ${SCALFMM_STARPU_VERSION} REQUIRED
## include_directories($ENV{OPENCL_INC}) COMPONENTS ${STARPU_COMPONENT_LIST})
## SET(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};-L$ENV{OPENCL_LIB};-lOpenCL")
# endif() if(STARPU_FOUND)
# list(APPEND FUSE_LIST "OPENCL") target_link_libraries(${CMAKE_PROJECT_NAME} PUBLIC starpu::starpu_dep)
# list(APPEND FUSE_LIST "STARPU")
# if(SCALFMM_USE_CUDA)
# find_package(STARPU ${SCALFMM_STARPU_VERSION} REQUIRED list(APPEND FUSE_LIST "CUDA")
# COMPONENTS ${STARPU_COMPONENT_LIST}) endif()
# if(SCALFMM_USE_OPENCL)
# if(HWLOC_FOUND AND HWLOC_LIBRARY_DIRS) list(APPEND FUSE_LIST "OPENCL")
# # the RPATH to be used when installing endif()
# list(APPEND CMAKE_INSTALL_RPATH "${HWLOC_LIBRARY_DIRS}") else(STARPU_FOUND)
# endif() message(FATAL_ERROR "StarPU not found.")
# endif(STARPU_FOUND)
# if(FXT_FOUND AND FXT_LIBRARY_DIRS) endif(SCALFMM_USE_STARPU)
# # the RPATH to be used when installing
# list(APPEND CMAKE_INSTALL_RPATH "${FXT_LIBRARY_DIRS}") # Additional options for developers
# endif() if( SCALFMM_ONLY_DEVEL )
# if(STARPU_FOUND AND STARPU_LIBRARY_DIRS) if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# # the RPATH to be used when installing option( SCALFMM_USE_OMP4 "Set to ON to disable the gcc/intel omp4" OFF )
# list(APPEND CMAKE_INSTALL_RPATH "${STARPU_LIBRARY_DIRS}") else()
# # Append list of libraries and include dirs option( SCALFMM_USE_OMP4 "Set to ON to disable the gcc/intel omp4" ON )
# include_directories(${STARPU_INCLUDE_DIRS_DEP}) endif()
# foreach (starpu_libdir ${STARPU_LIBRARY_DIRS_DEP}) option( SCALFMM_TIME_OMPTASKS "Set to ON to time omp4 tasks and generate output file" OFF )
# if (${starpu_libdir} MATCHES "^ *-L") # SIMGRID and peformance models options
# set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};${starpu_libdir}") option( SCALFMM_SIMGRID_NODATA "Set to ON to avoid the allocation of numerical parts in the group tree" OFF )
# else() option( STARPU_SIMGRID_MLR_MODELS "Set to ON to enable MLR models need for calibration and simulation" OFF )
# set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};-L${starpu_libdir}") # OPENMP 4/5 support
# endif() message(WARNING "OpenMP_VERSION: ${OpenMP_VERSION}")
# endforeach() option( OPENMP_SUPPORT_PRIORITY "Set to ON to enable tasks priority (OMP4.x/KSTAR/StarPU compiler only)" OFF )
# foreach (starpu_lib ${STARPU_LIBRARIES_DEP}) # STARPU options
# if (EXISTS ${starpu_lib} OR ${starpu_lib} MATCHES "^ *-") cmake_dependent_option(OPENMP_SUPPORT_COMMUTE "Set to ON to let tasks commute (KSTAR/StarPU compiler only)" OFF
# set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};${starpu_lib}") "SCALFMM_USE_STARPU" OFF)
# else() cmake_dependent_option(OPENMP_SUPPORT_TASK_NAME "Set to ON to enable a taskname clause for tasks (KSTAR/StarPU compiler only)" OFF
# set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};-l${starpu_lib}") "SCALFMM_USE_STARPU" OFF)
# endif() cmake_dependent_option(SCALFMM_STARPU_USE_COMMUTE "Set to ON to enable commute with StarPU" ON "SCALFMM_USE_STARPU" OFF)
# endforeach() cmake_dependent_option(SCALFMM_STARPU_USE_REDUX "Set to ON to enable redux with StarPU" OFF "SCALFMM_USE_STARPU" OFF)
# else() cmake_dependent_option(SCALFMM_STARPU_USE_PRIO "Set to ON to enable priority with StarPU" ON "SCALFMM_USE_STARPU" OFF)
# # StarPU not found cmake_dependent_option(SCALFMM_STARPU_FORCE_NO_SCHEDULER "Set to ON to disable heteroprio even if supported" OFF "SCALFMM_USE_STARPU" OFF)
# cmake_dependent_option(SCALFMM_USE_STARPU_EXTRACT "Set to ON to enable extract with StarPU mpi implicit" ON "SCALFMM_USE_STARPU" OFF)
# endif() endif()
#
# # TODO: is this very useful? CUDA is already a component of find starpu
# if (CUDA_LIBRARIES)
# set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES};${CUDA_LIBRARIES}")
# endif()
#
# # Message
# if (STARPU_INCLUDE_DIRS)
# message(STATUS " STARPU_INCLUDES = ${STARPU_INCLUDE_DIRS}")
# LIST(APPEND SCALFMM_INCLUDES "${STARPU_INCLUDE_DIRS}")
# endif()
#
# # Adding SimGrid includes
# LIST(APPEND SCALFMM_INCLUDES "$ENV{SIMGRID_INCLUDE}")
# message(STATUS " Adding SIMGRID = $ENV{SIMGRID_INCLUDE}")
# endif(SCALFMM_USE_STARPU)
# list(APPEND FUSE_LIST "STARPU")
# # Additional options for developers
# if( SCALFMM_ONLY_DEVEL )
# if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# option( SCALFMM_USE_OMP4 "Set to ON to disable the gcc/intel omp4" OFF )
# else()
# option( SCALFMM_USE_OMP4 "Set to ON to disable the gcc/intel omp4" ON )
# endif()
# option( SCALFMM_TIME_OMPTASKS "Set to ON to time omp4 tasks and generate output file" OFF )
# # SIMGRID and peformance models options
# option( SCALFMM_SIMGRID_NODATA "Set to ON to avoid the allocation of numerical parts in the group tree" OFF )
# option( STARPU_SIMGRID_MLR_MODELS "Set to ON to enable MLR models need for calibration and simulation" OFF )
# # OPENMP 4/5 support
# message(WARNING "OpenMP_VERSION: ${OpenMP_VERSION}")
# option( OPENMP_SUPPORT_PRIORITY "Set to ON to enable tasks priority (OMP4.x/KSTAR/StarPU compiler only)" OFF )
# # STARPU options
# cmake_dependent_option(OPENMP_SUPPORT_COMMUTE "Set to ON to let tasks commute (KSTAR/StarPU compiler only)" OFF
# "SCALFMM_USE_STARPU" OFF)
# cmake_dependent_option(OPENMP_SUPPORT_TASK_NAME "Set to ON to enable a taskname clause for tasks (KSTAR/StarPU compiler only)" OFF
# "SCALFMM_USE_STARPU" OFF)
# cmake_dependent_option(SCALFMM_STARPU_USE_COMMUTE "Set to ON to enable commute with StarPU" ON "SCALFMM_USE_STARPU" OFF)
# cmake_dependent_option(SCALFMM_STARPU_USE_REDUX "Set to ON to enable redux with StarPU" OFF "SCALFMM_USE_STARPU" OFF)
# cmake_dependent_option(SCALFMM_STARPU_USE_PRIO "Set to ON to enable priority with StarPU" ON "SCALFMM_USE_STARPU" OFF)
# cmake_dependent_option(SCALFMM_STARPU_FORCE_NO_SCHEDULER "Set to ON to disable heteroprio even if supported" OFF "SCALFMM_USE_STARPU" OFF)
# cmake_dependent_option(SCALFMM_USE_STARPU_EXTRACT "Set to ON to enable extract with StarPU mpi implicit" ON "SCALFMM_USE_STARPU" OFF)
# endif()
# #
# Set ScalFMM compile flags # Set ScalFMM compile flags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment