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

fix cmake

parent ec66bca6
......@@ -88,6 +88,29 @@ if( ENABLE_STARPU )
set( STARPU_REQUIRED_VERSION "1.3" CACHE STRING "oldest STARPU version desired" )
find_package( STARPU ${STARPU_REQUIRED_VERSION} REQUIRED )
find_path(STARPU_F_MOD_FOUND fstarpu_mod.f90
HINTS ${STARPU_INCLUDE_DIRS}
)
set(STARPU_F_MOD "${STARPU_F_MOD_FOUND}/fstarpu_mod.f90")
set(STARPU_F_MOD "${STARPU_FORTRAN_MOD}")
set(STARPU_F_MOD_FOUND TRUE)
find_path(STARPU_F_MPI_MOD_FOUND fstarpu_mpi_mod.f90
HINTS ${STARPU_INCLUDE_DIRS}
)
set(STARPU_F_MPI_MOD "${STARPU_F_MPI_MOD_FOUND}/fstarpu_mpi_mod.f90")
include_directories(${STARPU_INCLUDE_DIRS})
add_custom_command(
OUTPUT fstarpu_mod.f90
COMMAND cp ${STARPU_F_MOD} fstarpu_mod.f90
DEPENDS ${STARPU_F_MOD}
)
add_custom_command(
OUTPUT fstarpu_mpi_mod.f90
COMMAND cp ${STARPU_F_MPI_MOD} fstarpu_mpi_mod.f90
DEPENDS ${STARPU_F_MPI_MOD}
)
endif()
# Search for OpenMP
......@@ -137,16 +160,6 @@ find_path(STARPU_F_MPI_MOD_FOUND fstarpu_mpi_mod.f90
HINTS ${STARPU_INCLUDE_DIRS} )
set(STARPU_F_MPI_MOD "${STARPU_F_MPI_MOD_FOUND}/fstarpu_mpi_mod.f90")
include_directories(${STARPU_INCLUDE_DIRS})
add_custom_command(
OUTPUT modules/fstarpu_mod.f90
COMMAND cp ${STARPU_F_MOD} fstarpu_mod.f90
DEPENDS ${STARPU_F_MOD}
)
add_custom_command(
OUTPUT modules/fstarpu_mpi_mod.f90
COMMAND cp ${STARPU_F_MPI_MOD} fstarpu_mpi_mod.f90
DEPENDS ${STARPU_F_MPI_MOD}
)
target_link_libraries( starpu_example_dgemm PUBLIC MORSE::LAPACKE )
target_link_libraries( starpu_example_dgemm PUBLIC MORSE::CBLAS )
......
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