Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
341c3c2c
Commit
341c3c2c
authored
Jan 30, 2015
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a generic way to test if a FUSE is inside a file
parent
25204605
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
80 additions
and
150 deletions
+80
-150
Addons/CKernelApi/CMakeLists.txt
Addons/CKernelApi/CMakeLists.txt
+11
-19
Addons/FmmApi/CMakeLists.txt
Addons/FmmApi/CMakeLists.txt
+11
-19
CMakeLists.txt
CMakeLists.txt
+14
-0
Examples/CMakeLists.txt
Examples/CMakeLists.txt
+11
-28
Tests/CMakeLists.txt
Tests/CMakeLists.txt
+11
-28
UTests/CMakeLists.txt
UTests/CMakeLists.txt
+11
-28
Utils/CMakeLists.txt
Utils/CMakeLists.txt
+11
-28
No files found.
Addons/CKernelApi/CMakeLists.txt
View file @
341c3c2c
...
...
@@ -55,25 +55,17 @@ if(SCALFMM_ADDON_CKERNELAPI)
NAME_WE
)
set
(
compile_exec
"TRUE"
)
# Test Blas dependency
file
(
STRINGS
"
${
exec
}
"
lines_blas REGEX
"@FUSE_BLAS"
)
if
(
lines_blas
)
if
(
NOT SCALFMM_USE_BLAS
)
MESSAGE
(
STATUS
"This needs BLAS =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test MPI dependency
file
(
STRINGS
"
${
exec
}
"
lines_mpi REGEX
"@FUSE_MPI"
)
if
(
lines_mpi
)
if
(
NOT SCALFMM_USE_MPI
)
MESSAGE
(
STATUS
"This needs MPI =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
set
(
compile_exec
"TRUE"
)
foreach
(
fuse_key
${
FUSE_LIST
}
)
file
(
STRINGS
"
${
exec
}
"
lines_fuse REGEX
"@FUSE_
${
fuse_key
}
"
)
if
(
lines_fuse
)
if
(
NOT ScalFMM_USE_
${
fuse_key
}
)
MESSAGE
(
STATUS
"This needs
${
fuse_key
}
=
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
endforeach
()
# Dependency are OK
if
(
compile_exec
)
...
...
Addons/FmmApi/CMakeLists.txt
View file @
341c3c2c
...
...
@@ -55,25 +55,17 @@ if(SCALFMM_ADDON_FMMAPI)
NAME_WE
)
set
(
compile_exec
"TRUE"
)
# Test Blas dependency
file
(
STRINGS
"
${
exec
}
"
lines_blas REGEX
"@FUSE_BLAS"
)
if
(
lines_blas
)
if
(
NOT SCALFMM_USE_BLAS
)
MESSAGE
(
STATUS
"This needs BLAS =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test MPI dependency
file
(
STRINGS
"
${
exec
}
"
lines_mpi REGEX
"@FUSE_MPI"
)
if
(
lines_mpi
)
if
(
NOT SCALFMM_USE_MPI
)
MESSAGE
(
STATUS
"This needs MPI =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
set
(
compile_exec
"TRUE"
)
foreach
(
fuse_key
${
FUSE_LIST
}
)
file
(
STRINGS
"
${
exec
}
"
lines_fuse REGEX
"@FUSE_
${
fuse_key
}
"
)
if
(
lines_fuse
)
if
(
NOT ScalFMM_USE_
${
fuse_key
}
)
MESSAGE
(
STATUS
"This needs
${
fuse_key
}
=
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
endforeach
()
# Dependency are OK
if
(
compile_exec
)
...
...
CMakeLists.txt
View file @
341c3c2c
...
...
@@ -121,6 +121,14 @@ ELSE(APPLE)
SET
(
SSE_FLAGS
"-mtune=native -march=native"
)
# -mtune=native -march=native
ENDIF
(
APPLE
)
endif
()
##############################################################################
# FUSE list #
##############################################################################
set
(
FUSE_LIST
""
)
# then do list(APPEND FUSE_LIST "BLAS") to protect from FUSE_BLAS
list
(
APPEND FUSE_LIST
"MPI"
)
##############################################################################
# Debug flags #
##############################################################################
...
...
@@ -212,6 +220,7 @@ if( ScalFMM_USE_BLAS )
SET
(
SCALFMM_LIBRARIES
"
${
SCALFMM_LIBRARIES
}
;
${
BLASLAPACK_LIBRARIES
}
"
)
MESSAGE
(
STATUS
"SCALFMM_LIBRARIES =
${
SCALFMM_LIBRARIES
}
"
)
endif
(
ScalFMM_USE_BLAS
)
list
(
APPEND FUSE_LIST
"BLAS"
)
#
# FFT option
#
...
...
@@ -239,6 +248,7 @@ if( ScalFMM_USE_FFT )
MESSAGE
(
STATUS
" SCALFMM_LIBRARIES =
${
SCALFMM_LIBRARIES
}
"
)
MESSAGE
(
STATUS
" SCALFMM_INCLUDES =
${
SCALFMM_INCLUDES
}
"
)
endif
(
ScalFMM_USE_FFT
)
list
(
APPEND FUSE_LIST
"FFT"
)
# Compile option
#ADD_DEFINITIONS(-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -fpic )
...
...
@@ -278,6 +288,7 @@ if( ScalFMM_USE_STARPU )
# SET(SCALFMM_INCLUDES "${SCALFMM_INCLUDES}; ${STARPU_INCLUDES}")
include_directories
(
${
STARPU_INCLUDES
}
)
endif
(
ScalFMM_USE_STARPU
)
list
(
APPEND FUSE_LIST
"STARPU"
)
#
##################################################################
# Use SSE #
...
...
@@ -304,6 +315,7 @@ if( ScalFMM_USE_SSE )
MESSAGE
(
FATAL_ERROR
"SSE NOT SUPPORTED ; Set ScalFMM_USE_SSE to OFF
\n
Output from test is :
${
COMPILE_SSE_OUTPUT
}
"
)
ENDIF
(
${
COMPILE_SSE
}
)
endif
()
list
(
APPEND FUSE_LIST
"SSE"
)
##################################################################
# Use AVX #
##################################################################
...
...
@@ -329,6 +341,7 @@ ELSE(${COMPILE_AVX})
MESSAGE
(
FATAL_ERROR
"AVX NOT SUPPORTED ; Set ScalFMM_USE_AVX to OFF
\n
Output from test is :
${
COMPILE_AVX_OUTPUT
}
"
)
ENDIF
(
${
COMPILE_AVX
}
)
endif
(
ScalFMM_USE_AVX
)
list
(
APPEND FUSE_LIST
"AVX"
)
#
# Error if both ScalFMM_USE_AVX AND ScalFMM_USE_SSE are set
#
...
...
@@ -348,6 +361,7 @@ if( ScalFMM_USE_MIC_NATIVE )
else
()
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -xhost")
ENDIF
()
list
(
APPEND FUSE_LIST
"MIC"
)
##################################################################
#
##################################################################
...
...
Examples/CMakeLists.txt
View file @
341c3c2c
...
...
@@ -31,34 +31,17 @@ foreach(exec ${source_tests_files})
NAME_WE
)
set
(
compile_exec
"TRUE"
)
# Test Blas dependency
file
(
STRINGS
"
${
exec
}
"
lines_blas REGEX
"@FUSE_BLAS"
)
if
(
lines_blas
)
if
(
NOT ScalFMM_USE_BLAS
)
MESSAGE
(
STATUS
"This needs BLAS =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test FFT dependency
file
(
STRINGS
"
${
exec
}
"
lines_fft REGEX
"@FUSE_FFT"
)
if
(
lines_fft
)
if
(
NOT ScalFMM_USE_FFT
)
MESSAGE
(
STATUS
"This needs FFT =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test MPI dependency
file
(
STRINGS
"
${
exec
}
"
lines_mpi REGEX
"@FUSE_MPI"
)
if
(
lines_mpi
)
if
(
NOT ScalFMM_USE_MPI
)
MESSAGE
(
STATUS
"This needs MPI =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
set
(
compile_exec
"TRUE"
)
foreach
(
fuse_key
${
FUSE_LIST
}
)
file
(
STRINGS
"
${
exec
}
"
lines_fuse REGEX
"@FUSE_
${
fuse_key
}
"
)
if
(
lines_fuse
)
if
(
NOT ScalFMM_USE_
${
fuse_key
}
)
MESSAGE
(
STATUS
"This needs
${
fuse_key
}
=
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
endforeach
()
# Dependency are OK
if
(
compile_exec
)
...
...
Tests/CMakeLists.txt
View file @
341c3c2c
...
...
@@ -30,34 +30,17 @@ foreach(exec ${source_tests_files})
NAME_WE
)
set
(
compile_exec
"TRUE"
)
# Test Blas dependency
file
(
STRINGS
"
${
exec
}
"
lines_blas REGEX
"@FUSE_BLAS"
)
if
(
lines_blas
)
if
(
NOT ScalFMM_USE_BLAS
)
MESSAGE
(
STATUS
"This needs BLAS =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test FFT dependency
file
(
STRINGS
"
${
exec
}
"
lines_fft REGEX
"@FUSE_FFT"
)
if
(
lines_fft
)
if
(
NOT ScalFMM_USE_FFT
)
MESSAGE
(
STATUS
"This needs FFT =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test MPI dependency
file
(
STRINGS
"
${
exec
}
"
lines_mpi REGEX
"@FUSE_MPI"
)
if
(
lines_mpi
)
if
(
NOT ScalFMM_USE_MPI
)
MESSAGE
(
STATUS
"This needs MPI =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
set
(
compile_exec
"TRUE"
)
foreach
(
fuse_key
${
FUSE_LIST
}
)
file
(
STRINGS
"
${
exec
}
"
lines_fuse REGEX
"@FUSE_
${
fuse_key
}
"
)
if
(
lines_fuse
)
if
(
NOT ScalFMM_USE_
${
fuse_key
}
)
MESSAGE
(
STATUS
"This needs
${
fuse_key
}
=
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
endforeach
()
# Dependency are OK
if
(
compile_exec
)
...
...
UTests/CMakeLists.txt
View file @
341c3c2c
...
...
@@ -69,34 +69,17 @@ foreach(exec ${source_tests_files})
NAME_WE
)
set
(
compile_exec
"TRUE"
)
# Test Blas dependency
file
(
STRINGS
"
${
exec
}
"
lines_blas REGEX
"@FUSE_BLAS"
)
if
(
lines_blas
)
if
(
NOT ScalFMM_USE_BLAS
)
MESSAGE
(
STATUS
"This needs BLAS =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test FFT dependency
file
(
STRINGS
"
${
exec
}
"
lines_fft REGEX
"@FUSE_FFT"
)
if
(
lines_fft
)
if
(
NOT ScalFMM_USE_FFT
)
MESSAGE
(
STATUS
"This needs FFT =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test MPI dependency
file
(
STRINGS
"
${
exec
}
"
lines_mpi REGEX
"@FUSE_MPI"
)
if
(
lines_mpi
)
if
(
NOT ScalFMM_USE_MPI
)
MESSAGE
(
STATUS
"This needs MPI =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
set
(
compile_exec
"TRUE"
)
foreach
(
fuse_key
${
FUSE_LIST
}
)
file
(
STRINGS
"
${
exec
}
"
lines_fuse REGEX
"@FUSE_
${
fuse_key
}
"
)
if
(
lines_fuse
)
if
(
NOT ScalFMM_USE_
${
fuse_key
}
)
MESSAGE
(
STATUS
"This needs
${
fuse_key
}
=
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
endforeach
()
# Dependency are OK
if
(
compile_exec
)
...
...
Utils/CMakeLists.txt
View file @
341c3c2c
...
...
@@ -30,34 +30,17 @@ foreach(exec ${source_tests_files})
NAME_WE
)
set
(
compile_exec
"TRUE"
)
# Test Blas dependency
file
(
STRINGS
"
${
exec
}
"
lines_blas REGEX
"@FUSE_BLAS"
)
if
(
lines_blas
)
if
(
NOT ScalFMM_USE_BLAS
)
MESSAGE
(
STATUS
"This needs BLAS =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test FFT dependency
file
(
STRINGS
"
${
exec
}
"
lines_fft REGEX
"@FUSE_FFT"
)
if
(
lines_fft
)
if
(
NOT ScalFMM_USE_FFT
)
MESSAGE
(
STATUS
"This needs FFT =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
# Test MPI dependency
file
(
STRINGS
"
${
exec
}
"
lines_mpi REGEX
"@FUSE_MPI"
)
if
(
lines_mpi
)
if
(
NOT ScalFMM_USE_MPI
)
MESSAGE
(
STATUS
"This needs MPI =
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
set
(
compile_exec
"TRUE"
)
foreach
(
fuse_key
${
FUSE_LIST
}
)
file
(
STRINGS
"
${
exec
}
"
lines_fuse REGEX
"@FUSE_
${
fuse_key
}
"
)
if
(
lines_fuse
)
if
(
NOT ScalFMM_USE_
${
fuse_key
}
)
MESSAGE
(
STATUS
"This needs
${
fuse_key
}
=
${
exec
}
"
)
set
(
compile_exec
"FALSE"
)
endif
()
endif
()
endforeach
()
# Dependency are OK
if
(
compile_exec
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment