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
1a14b1bc
Commit
1a14b1bc
authored
Feb 18, 2015
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update flags and defines for starpu and cuda
parent
5d14ef1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
26 deletions
+23
-26
CMakeLists.txt
CMakeLists.txt
+21
-18
Src/ScalFmmConfig.h.cmake
Src/ScalFmmConfig.h.cmake
+2
-8
No files found.
CMakeLists.txt
View file @
1a14b1bc
...
...
@@ -276,6 +276,8 @@ endif()
##################################################################
##################################################################
#
MESSAGE
(
STATUS
"ScalFMM_USE_STARPU =
${
ScalFMM_USE_STARPU
}
"
)
if
(
ScalFMM_USE_STARPU
)
SET
(
STARPU_LIBRARIES
" -L$ENV{STARPU_LIB}; -lstarpu-$ENV{STARPU_VERSION}"
)
# CACHE STRING "Set your STARPU flags"
...
...
@@ -290,24 +292,25 @@ if( ScalFMM_USE_STARPU )
MESSAGE
(
STATUS
" STARPU_LIBRARIES =
${
STARPU_LIBRARIES
}
"
)
MESSAGE
(
STATUS
" STARPU_INCLUDES =
${
STARPU_INCLUDES
}
"
)
OPTION
(
ScalFMM_USE_CUDA
"Set to ON to use CUDA with StarPU"
OFF
)
if
(
ScalFMM_USE_CUDA
)
execute_process
(
COMMAND nvcc --version ERROR_VARIABLE cuda_error_output OUTPUT_QUIET
)
if
(
cuda_error_output
)
message
(
FATAL_ERROR
"nvcc is needed with CUDA."
)
endif
()
if
(
NOT DEFINED CUSTOM_CUDA_FLAGS
)
SET
(
CUSTOM_CUDA_FLAGS
"-std=c++11;-arch=sm_20"
CACHE STRING
"Set your CUDA flags, for example : -arch=sm_20;-ptxas-options=-v;-use_fast_math"
)
endif
()
# This is needed to remove backslash after space in ADD_CUSTOM_COMMAND
SEPARATE_ARGUMENTS
(
CUSTOM_CUDA_FLAGS
)
MESSAGE
(
STATUS
"CUSTOM_CUDA_FLAGS =
${
CUSTOM_CUDA_FLAGS
}
"
)
# Add libcudart and cuda.h
# link_directories($ENV{CUDA_LIB})
include_directories
(
${
$ENV{CUDA_INC
}
}
)
SET
(
SCALFMM_LIBRARIES
"
${
SCALFMM_LIBRARIES
}
; -L$ENV{CUDA_LIB}; -lcudart"
)
endif
()
OPTION
(
ScalFMM_USE_CUDA
"Set to ON to use CUDA with StarPU"
OFF
)
MESSAGE
(
STATUS
"ScalFMM_USE_CUDA =
${
ScalFMM_USE_CUDA
}
"
)
if
(
ScalFMM_USE_CUDA
)
execute_process
(
COMMAND nvcc --version ERROR_VARIABLE cuda_error_output OUTPUT_QUIET
)
if
(
cuda_error_output
)
message
(
FATAL_ERROR
"nvcc is needed with CUDA."
)
endif
()
if
(
NOT DEFINED CUSTOM_CUDA_FLAGS
)
SET
(
CUSTOM_CUDA_FLAGS
"-std=c++11;-arch=sm_20"
CACHE STRING
"Set your CUDA flags, for example : -arch=sm_20;-ptxas-options=-v;-use_fast_math"
)
endif
()
# This is needed to remove backslash after space in ADD_CUSTOM_COMMAND
SEPARATE_ARGUMENTS
(
CUSTOM_CUDA_FLAGS
)
MESSAGE
(
STATUS
"CUSTOM_CUDA_FLAGS =
${
CUSTOM_CUDA_FLAGS
}
"
)
# Add libcudart and cuda.h
# link_directories($ENV{CUDA_LIB})
include_directories
(
${
$ENV{CUDA_INC
}
}
)
SET
(
SCALFMM_LIBRARIES
"
${
SCALFMM_LIBRARIES
}
; -L$ENV{CUDA_LIB}; -lcudart"
)
endif
()
endif
(
ScalFMM_USE_STARPU
)
list
(
APPEND FUSE_LIST
"STARPU"
)
list
(
APPEND FUSE_LIST
"CUDA"
)
...
...
Src/ScalFmmConfig.h.cmake
View file @
1a14b1bc
...
...
@@ -58,13 +58,13 @@
// CUDA
///////////////////////////////////////////////////////
#cmakedefine S
CAL
FMM_USE_CUDA
#cmakedefine S
cal
FMM_USE_CUDA
///////////////////////////////////////////////////////
// STARPU
///////////////////////////////////////////////////////
#cmakedefine S
CAL
FMM_USE_STARPU
#cmakedefine S
cal
FMM_USE_STARPU
///////////////////////////////////////////////////////
// SSE
...
...
@@ -80,12 +80,6 @@
#cmakedefine ScalFMM_USE_AVX
#cmakedefine __SSEPE_INTEL_COMPILER
///////////////////////////////////////////////////////
// STARPU
///////////////////////////////////////////////////////
#cmakedefine ScalFMM_USE_STARPU
///////////////////////////////////////////////////////
// Assert tests
///////////////////////////////////////////////////////
...
...
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