Commit 44372885 authored by Antoine Jego's avatar Antoine Jego
Browse files

fix CMake ?

parent e434e15b
......@@ -107,25 +107,20 @@ find_package(LAPACKE REQUIRED)
# Add the unique executable ...
# -------------
#add_library(Dense_matrices dsmat.c)
#add_library(Tile_interface optional_tile_interface.c)
add_executable( starpu_example_dgemm starpu_example_dgemm.c dsmat.c optional_tile_interface.c )
add_executable( fstarpu_example_dgemm fstarpu_example_dgemm.f90 fstarpu_codelets.f90 fstarpu_mod.f90 fstarpu_mpi_mod.f90 )
if( ENABLE_MPI )
# target_link_libraries( Dense_matrices PUBLIC MPI::MPI_C )
# target_link_libraries( Tile_interface PUBLIC MPI::MPI_C )
target_link_libraries( starpu_example_dgemm PUBLIC MPI::MPI_C )
target_link_libraries( fstarpu_example_dgemm PUBLIC MPI::MPI_Fortran )
target_compile_definitions( starpu_example_dgemm PUBLIC ENABLE_MPI )
target_link_libraries( fstarpu_example_dgemm PUBLIC MPI::MPI_C )
target_compile_definitions( fstarpu_example_dgemm PUBLIC ENABLE_MPI )
endif()
if(ENABLE_STARPU)
# target_link_libraries( Dense_matrices PRIVATE MORSE::STARPU )
# target_link_libraries( Tile_interface PRIVATE MORSE::STARPU )
target_link_libraries( starpu_example_dgemm PRIVATE MORSE::STARPU )
target_compile_definitions( starpu_example_dgemm PUBLIC ENABLE_STARPU )
target_link_libraries( fstarpu_example_dgemm PRIVATE MORSE::STARPU )
target_compile_definitions( starpu_example_dgemm PUBLIC ENABLE_STARPU )
target_compile_definitions( fstarpu_example_dgemm PUBLIC ENABLE_STARPU )
check_function_exists(starpu_data_peek HAVE_STARPU_DATA_PEEK)
if (ENABLE_MPI)
check_function_exists(starpu_mpi_interface_datatype_node_register HAVE_STARPU_MPI_INTERFACE_DATATYPE_NODE_REGISTER)
......@@ -139,13 +134,10 @@ target_include_directories( starpu_example_dgemm PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/include
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>/include
${CMAKE_CURRENT_SOURCE_DIR} )
target_link_libraries( fstarpu_example_dgemm PUBLIC MORSE::LAPACKE )
#target_link_libraries( fstarpu_example_dgemm PUBLIC MORSE::BLAS::BLAS_SEQ ) #CBLAS )
target_link_libraries( fstarpu_example_dgemm PUBLIC MORSE::CBLAS )
target_link_libraries( fstarpu_example_dgemm PUBLIC MORSE::M )
target_include_directories( fstarpu_example_dgemm PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/include
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>/include
${CMAKE_CURRENT_SOURCE_DIR} )
${STARPU_INCLUDE_DIRS} )
# ... and install it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment