parent
42c0661960
commit
564333b5c3
3 changed files with 0 additions and 96 deletions
@ -1,44 +0,0 @@ |
||||
# MakeLists files in this project can |
||||
# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and |
||||
# to the root binary directory of the project as ${HELLO_BINARY_DIR}. |
||||
cmake_minimum_required (VERSION 2.8.11) |
||||
project (3DPoissonSolverGPU) |
||||
|
||||
# Recurse into the "Hello" and "Demo" subdirectories. This does not actually |
||||
# cause another cmake executable to run. The same process will walk through |
||||
# the project's entire directory structure. |
||||
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake/cuda" ${CMAKE_MODULE_PATH}) |
||||
find_package(CUDA QUIET REQUIRED) |
||||
find_package(Doxygen) |
||||
|
||||
if (DOXYGEN_FOUND) |
||||
# set input and output files |
||||
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in) |
||||
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) |
||||
|
||||
# request to configure the file |
||||
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY) |
||||
message("Doxygen build started") |
||||
|
||||
# note the option ALL which allows to build the docs together with the application |
||||
add_custom_target( doc_doxygen ALL |
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT} |
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} |
||||
COMMENT "Generating API documentation with Doxygen" |
||||
VERBATIM ) |
||||
else (DOXYGEN_FOUND) |
||||
message("Doxygen need to be installed to generate the doxygen documentation") |
||||
endif (DOXYGEN_FOUND) |
||||
|
||||
|
||||
enable_testing() |
||||
set(TARGET_NAME poissonsolvergpu) |
||||
|
||||
set(CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE OFF) |
||||
set(BUILD_SHARED_LIBS ON) |
||||
list(APPEND CUDA_NVCC_FLAGS) |
||||
|
||||
add_subdirectory (kernel) |
||||
add_subdirectory (interface) |
||||
|
@ -1,15 +0,0 @@ |
||||
CUDA_ADD_LIBRARY(PoissonSolver3DGPU |
||||
PoissonSolver3DGPU.cu |
||||
# lib.cu |
||||
SHARED |
||||
# STATIC |
||||
#OPTIONS -DSTUFF="blah blah" |
||||
#RELEASE --use_fast_math -DNDEBUG |
||||
#DEBUG -g -DDEBUG |
||||
) |
||||
|
||||
|
||||
INSTALL(FILES PoissonSolver3DGPU.h |
||||
DESTINATION include) |
||||
INSTALL(FILES "${CMAKE_BINARY_DIR}/gpulib/libPoissonSolver3DGPU.so" |
||||
DESTINATION lib) |
@ -1,37 +0,0 @@ |
||||
set(SRCS |
||||
${SCGPUDIR}/interface/AliTPCPoissonSolverMem.cxx |
||||
# ${CAGPU_O} |
||||
) |
||||
|
||||
# Headers from sources |
||||
set(CINTHDRS |
||||
${SCGPUDIR}/interface/AliTPCPoissonSolverMem.h |
||||
${SCGPUDIR}/interface/AliCudaLinkDef.h |
||||
) |
||||
|
||||
set(HDRS |
||||
) |
||||
|
||||
# Generate the dictionary |
||||
# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument |
||||
get_directory_property(incdirs INCLUDE_DIRECTORIES) |
||||
generate_dictionary("${MODULE}" "" "${CINTHDRS}" "${incdirs}") |
||||
|
||||
# Generate the ROOT map |
||||
# Dependecies |
||||
generate_rootmap("${MODULE}" "" "") |
||||
|
||||
# Add a library to the project using the specified source files |
||||
add_library_tested(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) |
||||
#CUDA run-time and driver |
||||
target_link_libraries(${MODULE} ${CUDA_LIBRARIES} ${LIBCUDA_SO_PATH} AliTPCSpaceCharge3DDriftLine) |
||||
|
||||
# Additional compilation flags |
||||
set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "") |
||||
|
||||
# Installation |
||||
install(TARGETS ${MODULE} |
||||
ARCHIVE DESTINATION lib |
||||
LIBRARY DESTINATION lib) |
||||
|
||||
install(FILES ${HDRS} DESTINATION include) |
Loading…
Reference in new issue