Skip to content
Snippets Groups Projects
Commit 8e49abb4 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing CMAKE

parent 9e0db88e
No related branches found
No related tags found
No related merge requests found
Pipeline #3842 canceled
...@@ -45,13 +45,6 @@ set(ENABLE_VCLUSTER_GARBAGE_INJECTOR CACHE BOOL "Enable the injector of garbage ...@@ -45,13 +45,6 @@ set(ENABLE_VCLUSTER_GARBAGE_INJECTOR CACHE BOOL "Enable the injector of garbage
set(HIP_ENABLE CACHE BOOL "Enable HIP compiler") set(HIP_ENABLE CACHE BOOL "Enable HIP compiler")
set(AMD_ARCH_COMPILE "gfx900" CACHE STRING "AMD gpu architecture used to compile kernels") set(AMD_ARCH_COMPILE "gfx900" CACHE STRING "AMD gpu architecture used to compile kernels")
add_subdirectory (openfpm_io)
if (CUDA_ON_BACKEND STREQUAL "CUDA")
enable_language(CUDA)
find_package(CUDA)
endif()
set (CMAKE_CXX_STANDARD 14) set (CMAKE_CXX_STANDARD 14)
set (CMAKE_CUDA_STANDARD 14) set (CMAKE_CUDA_STANDARD 14)
set(CMAKE_CXX_FLAGS_RELEASE "-O3") set(CMAKE_CXX_FLAGS_RELEASE "-O3")
...@@ -258,6 +251,13 @@ endif() ...@@ -258,6 +251,13 @@ endif()
file(WRITE mpi_include "-I${MPI_C_INCLUDE_DIRS}") file(WRITE mpi_include "-I${MPI_C_INCLUDE_DIRS}")
file(WRITE mpi_libs "${MPI_C_LINK_FLAGS} ${MPI_C_LIBRARIES}") file(WRITE mpi_libs "${MPI_C_LINK_FLAGS} ${MPI_C_LIBRARIES}")
add_subdirectory (openfpm_io)
if (CUDA_ON_BACKEND STREQUAL "CUDA")
enable_language(CUDA)
find_package(CUDA)
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config/config_cmake.h.in ${CMAKE_CURRENT_SOURCE_DIR}/src/config/config.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config/config_cmake.h.in ${CMAKE_CURRENT_SOURCE_DIR}/src/config/config.h)
add_subdirectory (openfpm_numerics) add_subdirectory (openfpm_numerics)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment