Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
faust group
faust
Commits
85df235e
Commit
85df235e
authored
8 years ago
by
Adrien Leman
Committed by
hhakim
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
debug xcode
parent
3447d636
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+25
-17
25 additions, 17 deletions
CMakeLists.txt
src/algorithm/CMakeLists.txt
+26
-42
26 additions, 42 deletions
src/algorithm/CMakeLists.txt
with
51 additions
and
59 deletions
CMakeLists.txt
+
25
−
17
View file @
85df235e
...
...
@@ -430,7 +430,7 @@ if (BUILD_USE_GPU)
set
(
FAUST_LINEAR_OPERATOR_GPU_TARGET faust_linear_operator_gpu CACHE INTERNAL
""
)
#set(FAUST_MATRIX_CU_TARGET faust_gpu_matrix CACHE INTERNAL "")
#set(FAUST_FAUSTCORE_CU_TARGET faust_gpu_core CACHE INTERNAL "")
set
(
FAUST_ALGORITHM_CU_TARGET faust_algorithm_gpu CACHE INTERNAL
""
)
#
set(FAUST_ALGORITHM_CU_TARGET faust_algorithm_gpu CACHE INTERNAL "")
endif
(
BUILD_USE_GPU
)
##################################################################
...
...
@@ -567,7 +567,7 @@ include(CMake/findExternalLibs.cmake)
########### add_subdirectory ###############
add_subdirectory
(
${
FAUST_SRC_LINEAR_OPERATOR_DIR
}
${
FAUST_BIN_LINEAR_OPERATOR_DIR
}
)
add_subdirectory
(
${
FAUST_ALGORITHM_SRC_DIR
}
${
FAUST_ALGORITHM_BIN_DIR
}
)
#
add_subdirectory(${FAUST_ALGORITHM_SRC_DIR} ${FAUST_ALGORITHM_BIN_DIR})
add_subdirectory
(
${
FAUST_SRC_TEST_DIR
}
${
FAUST_BIN_TEST_BIN_DIR
}
)
if
(
BUILD_DOCUMENTATION
)
add_subdirectory
(
${
FAUST_DOC_SRC_DIR
}
${
FAUST_DOC_BIN_DIR
}
)
...
...
@@ -588,33 +588,41 @@ endif()
##################################################################
##### Add subdirectory ALGORITHM CPU et GPU version dans le main CmakeLists pour add library avec les cpp et pas que des lib objet
##### --> bug avec ide xcode ################################################################
#set(SRC_FILES "")
file
(
GLOB CPP_FILES
"
${
FAUST_ALGORITHM_CONSTRAINT_SRC_DIR
}
/*.cpp"
"
${
FAUST_ALGORITHM_FACTORIZATION_SRC_DIR
}
/*.cpp"
)
#message(STATUS "algorithm cpp files ${CPP_FILES}")
### include directory
include_directories
(
${
FAUST_SRC_LINEAR_OPERATOR_DIR
}
${
FAUST_LINEAR_OPERATOR_CPU_SRC_DIR
}
${
EIGEN_INC_DIR
}
)
if
(
BUILD_USE_GPU
)
include_directories
(
${
FAUST_SRC_LINEAR_OPERATOR_GPU_DIR
}
${
CUDA_INC_DIR
}
${
CUDA_RUNTIME_API_INC_DIR
}
${
CUSPARSE_INC_DIR
}
${
CUBLAS_V2_INC_DIR
}
)
endif
()
if
(
BUILD_OPENBLAS
)
include_directories
(
${
OPENBLAS_INC_DIR
}
)
endif
()
###############################################################################################################
###### TARGET GENERATION ######
if
(
BUILD_USE_GPU
)
if
(
BUILD_MATLAB_MEX_FILES
)
add_library
(
${
FAUST_TARGET
}
STATIC $<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
>
$<TARGET_OBJECTS:
${
FAUST_ALGORITHM_CU_TARGET
}
>
$<TARGET_OBJECTS:
${
FAUST_MEXTOOLS_TARGET
}
>
)
add_library
(
${
FAUST_TARGET
}
STATIC
${
CPP_FILES
}
$<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
> $<TARGET_OBJECTS:
${
FAUST_MEXTOOLS_TARGET
}
>
)
else
(
BUILD_MATLAB_MEX_FILES
)
add_library
(
${
FAUST_TARGET
}
STATIC $<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
>
$<TARGET_OBJECTS:
${
FAUST_ALGORITHM_CU_TARGET
}
>
)
add_library
(
${
FAUST_TARGET
}
STATIC
${
CPP_FILES
}
$<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
>
)
endif
(
BUILD_MATLAB_MEX_FILES
)
else
(
BUILD_USE_GPU
)
if
(
BUILD_MATLAB_MEX_FILES
)
if
(
APPLE
AND
(
CMAKE_GENERATOR STREQUAL
"Xcode"
)
)
message
(
STATUS
"------------------------------------------ "
)
message
(
STATUS
"APPLE AND Xcode
${
FAUST_ALGORITHM_TARGET
}
${
FAUST_ALGORITHM_BIN_DIR
}
"
)
include_directories
(
${
FAUST_SRC_LINEAR_OPERATOR_DIR
}
${
FAUST_LINEAR_OPERATOR_CPU_SRC_DIR
}
${
EIGEN_INC_DIR
}
)
file
(
GLOB CPP_FILES
"
${
FAUST_ALGORITHM_CONSTRAINT_SRC_DIR
}
/*.cpp"
"
${
FAUST_ALGORITHM_FACTORIZATION_SRC_DIR
}
/*.cpp"
)
add_library
(
${
FAUST_TARGET
}
STATIC
${
CPP_FILES
}
$<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
> $<TARGET_OBJECTS:
${
FAUST_MEXTOOLS_TARGET
}
>
)
else
()
add_library
(
${
FAUST_TARGET
}
STATIC $<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
> $<TARGET_OBJECTS:
${
FAUST_ALGORITHM_TARGET
}
> $<TARGET_OBJECTS:
${
FAUST_MEXTOOLS_TARGET
}
>
)
endif
()
add_library
(
${
FAUST_TARGET
}
STATIC
${
CPP_FILES
}
$<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
> $<TARGET_OBJECTS:
${
FAUST_MEXTOOLS_TARGET
}
>
)
else
(
BUILD_MATLAB_MEX_FILES
)
add_library
(
${
FAUST_TARGET
}
STATIC $<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
>
$<TARGET_OBJECTS:
${
FAUST_ALGORITHM_TARGET
}
>
)
add_library
(
${
FAUST_TARGET
}
STATIC
${
CPP_FILES
}
$<TARGET_OBJECTS:
${
FAUST_LINEAR_OPERATOR_TARGET
}
>
)
endif
(
BUILD_MATLAB_MEX_FILES
)
endif
(
BUILD_USE_GPU
)
if
(
BUILD_MATLAB_MEX_FILES
)
if
(
UNIX
)
if
(
APPLE
)
...
...
This diff is collapsed.
Click to expand it.
src/algorithm/CMakeLists.txt
+
26
−
42
View file @
85df235e
#INCLUDE("${PROJECT_SOURCE_DIR}/CMake/define_variables.cmake")
set
(
SRC_FILES
""
)
#file(GLOB CPP_FILES "*.cpp")
file
(
GLOB CPP_FILES
"
${
FAUST_ALGORITHM_CONSTRAINT_SRC_DIR
}
/*.cpp"
"
${
FAUST_ALGORITHM_FACTORIZATION_SRC_DIR
}
/*.cpp"
)
#message(STATUS "algorithm cpp files ${CPP_FILES}")
#${FAUST_EXCEPTION_SRC_DIR}
include_directories
(
${
FAUST_SRC_LINEAR_OPERATOR_DIR
}
${
FAUST_LINEAR_OPERATOR_CPU_SRC_DIR
}
${
EIGEN_INC_DIR
}
)
if
(
BUILD_OPENBLAS
)
include_directories
(
${
OPENBLAS_INC_DIR
}
)
endif
()
if
(
APPLE
AND
(
CMAKE_GENERATOR STREQUAL
"Xcode"
)
)
# on compile les sources directement dans le cmaklist principal pour Xcode
#add_library(${FAUST_ALGORITHM_TARGET} ${CPP_FILES})
else
()
add_library
(
${
FAUST_ALGORITHM_TARGET
}
OBJECT
${
CPP_FILES
}
)
endif
()
#target_link_libraries(${FAUST_PALM4MSA_TARGET} ${FAUST_MATRIX_TARGET} ${FAUST_EXCEPTION_TARGET})
### Dans le cas ou on fusionne les dossiers
if
(
BUILD_USE_GPU
)
# include_directories(${FAUST_SRC_LINEAR_OPERATOR_DIR} ${FAUST_ALGORITHM_CU_SRC_DIR} ${FAUST_MATRIX_CU_SRC_DIR} ${EIGEN_INC_DIR} ${CUDA_INC_DIR} ${CUDA_RUNTIME_API_INC_DIR} ${CUSPARSE_INC_DIR} ${CUBLAS_V2_INC_DIR})
#${EIGEN_INC_DIR}
include_directories
(
${
FAUST_SRC_LINEAR_OPERATOR_GPU_DIR
}
${
CUDA_INC_DIR
}
${
CUDA_RUNTIME_API_INC_DIR
}
${
CUSPARSE_INC_DIR
}
${
CUBLAS_V2_INC_DIR
}
)
#-D__COMPILE_TIMERS__
# if(UNIX) # AND FAUST_USE_MKL
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
# elseif(WIN32 AND FAUST_USE_MKL)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp")
# endif()
#message(STATUS "CMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}")
#add_definitions(-D__COMPILE_GPU__ -D__COMPILE_SPMAT__)
add_library
(
${
FAUST_ALGORITHM_CU_TARGET
}
OBJECT
${
CPP_FILES
}
)
endif
()
#target_link_libraries(${FAUST_PALM4MSA_CU_TARGET} ${FAUST_MATRIX_CU_TARGET} ${FAUST_EXCEPTION_TARGET})
##INCLUDE("${PROJECT_SOURCE_DIR}/CMake/define_variables.cmake")
#set(SRC_FILES "")
##file(GLOB CPP_FILES "*.cpp")
#file(GLOB CPP_FILES "${FAUST_ALGORITHM_CONSTRAINT_SRC_DIR}/*.cpp" "${FAUST_ALGORITHM_FACTORIZATION_SRC_DIR}/*.cpp")
##message(STATUS "algorithm cpp files ${CPP_FILES}")
#### include directory
#include_directories(${FAUST_SRC_LINEAR_OPERATOR_DIR} ${FAUST_LINEAR_OPERATOR_CPU_SRC_DIR} ${EIGEN_INC_DIR})
#if (BUILD_USE_GPU)
# include_directories(${FAUST_SRC_LINEAR_OPERATOR_GPU_DIR} ${CUDA_INC_DIR} ${CUDA_RUNTIME_API_INC_DIR} ${CUSPARSE_INC_DIR} ${CUBLAS_V2_INC_DIR})
#endif()
#if(BUILD_OPENBLAS)
# include_directories(${OPENBLAS_INC_DIR})
#endif()
#if(APPLE AND ( CMAKE_GENERATOR STREQUAL "Xcode") )
# # on compile les sources directement dans le cmaklist principal pour Xcode
# #add_library(${FAUST_ALGORITHM_TARGET} ${CPP_FILES})
#else ()
# add_library(${FAUST_ALGORITHM_TARGET} OBJECT ${CPP_FILES})
#endif()
##target_link_libraries(${FAUST_PALM4MSA_TARGET} ${FAUST_MATRIX_TARGET} ${FAUST_EXCEPTION_TARGET})
##target_link_libraries(${FAUST_PALM4MSA_CU_TARGET} ${FAUST_MATRIX_CU_TARGET} ${FAUST_EXCEPTION_TARGET})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment