Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
9c621362
Commit
9c621362
authored
4 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing installation for CUDA
parent
0df0f832
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2639
failed
4 years ago
Stage: build
Stage: test
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
CMakeLists.txt
+6
-37
6 additions, 37 deletions
CMakeLists.txt
openfpm_data
+1
-1
1 addition, 1 deletion
openfpm_data
openfpm_devices
+1
-1
1 addition, 1 deletion
openfpm_devices
openfpm_io
+1
-1
1 addition, 1 deletion
openfpm_io
openfpm_vcluster
+1
-1
1 addition, 1 deletion
openfpm_vcluster
with
10 additions
and
41 deletions
CMakeLists.txt
+
6
−
37
View file @
9c621362
...
...
@@ -39,7 +39,9 @@ set(CUDA_ON_CPU CACHE BOOL "Make Cuda work on heap")
# Enabling real GPU is stronger than using CUDA_ON_CPU
if
(
ENABLE_GPU
)
set
(
CUDA_ON_CPU OFF
)
set
(
CUDA_ON_CPU OFF
)
enable_language
(
CUDA
)
find_package
(
CUDA
)
endif
()
set
(
CMAKE_CXX_STANDARD 14
)
...
...
@@ -56,40 +58,6 @@ endif()
set
(
ENV{PATH}
"$ENV{PATH}:
${
HDF5_ROOT
}
/bin"
)
set
(
HDF5_PREFER_PARALLEL TRUE
)
if
(
ENABLE_GPU
)
enable_language
(
CUDA
)
find_package
(
CUDA
)
if
(
CUDA_VERSION_MAJOR EQUAL 9 AND CUDA_VERSION_MINOR EQUAL 2
)
message
(
"CUDA is compatible 9.2"
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC -Xcudafe
"--display_error_number --diag_suppress=611 --diag_suppress=2885 --diag_suppress=2886 --diag_suppress=2887 --diag_suppress=2888 --diag_suppress=186 --diag_suppress=111"
--expt-extended-lambda
)
FILE
(
WRITE cuda_options
" -Xcudafe
\"
--display_error_number --diag_suppress=611 --diag_suppress=2885 --diag_suppress=2886 --diag_suppress=2887 --diag_suppress=2888 --diag_suppress=186 --diag_suppress=111
\"
--expt-extended-lambda "
)
elseif
(
CUDA_VERSION_MAJOR EQUAL 10 AND CUDA_VERSION_MINOR EQUAL 1
)
message
(
"CUDA is compatible 10.1"
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC -Xcudafe
"--display_error_number --diag_suppress=2915 --diag_suppress=2912 --diag_suppress=2913 --diag_suppress=111 --diag_suppress=186 --diag_suppress=611 "
--expt-extended-lambda
)
FILE
(
WRITE cuda_options
"-Xcudafe
\"
--display_error_number --diag_suppress=2915 --diag_suppress=2914 --diag_suppress=2912 --diag_suppress=2913 --diag_suppress=111 --diag_suppress=186 --diag_suppress=611
\"
--expt-extended-lambda"
)
elseif
(
CUDA_VERSION_MAJOR EQUAL 10 AND CUDA_VERSION_MINOR EQUAL 2
)
message
(
"CUDA is compatible 10.2"
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC -Xcudafe
"--display_error_number --diag_suppress=2976 --diag_suppress=2977 --diag_suppress=2978 --diag_suppress=2979 --diag_suppress=1835 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128"
--expt-extended-lambda
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC_TEXT
"-Xcudafe
\"
--display_error_number --diag_suppress=2976 --diag_suppress=2977 --diag_suppress=2978 --diag_suppress=2979 --diag_suppress=1835 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128
\"
--expt-extended-lambda"
)
FILE
(
WRITE cuda_options
"-Xcudafe
\"
--display_error_number --diag_suppress=2976 --diag_suppress=2977 --diag_suppress=2978 --diag_suppress=2979 --diag_suppress=1835 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128
\"
--expt-extended-lambda"
)
elseif
(
CUDA_VERSION_MAJOR EQUAL 11 AND CUDA_VERSION_MINOR EQUAL 0
)
message
(
"CUDA is compatible 11.0"
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC -Xcudafe
"--display_error_number --diag_suppress=3056 --diag_suppress=3057 --diag_suppress=3058 --diag_suppress=3059 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128"
--expt-extended-lambda
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC_TEXT
"-Xcudafe
\"
--display_error_number --diag_suppress=3056 --diag_suppress=3057 --diag_suppress=3058 --diag_suppress=3059 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128
\"
--expt-extended-lambda"
)
FILE
(
WRITE cuda_options
"-Xcudafe
\"
--display_error_number --diag_suppress=3056 --diag_suppress=3058 --diag_suppress=3058 --diag_suppress=3059 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128
\"
--expt-extended-lambda"
)
elseif
(
CUDA_VERSION_MAJOR EQUAL 11 AND CUDA_VERSION_MINOR EQUAL 1
)
message
(
"CUDA is compatible 11.1"
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC -Xcudafe
"--display_error_number --diag_suppress=3124 --diag_suppress=3126 --diag_suppress=3125 --diag_suppress=3123 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128"
--expt-extended-lambda
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC_TEXT
"-Xcudafe
\"
--display_error_number --diag_suppress=3124 --diag_suppress=3126 --diag_suppress=3125 --diag_suppress=3123 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128
\"
--expt-extended-lambda"
)
FILE
(
WRITE cuda_options
"-Xcudafe
\"
--display_error_number --diag_suppress=3124 --diag_suppress=3125 --diag_suppress=3126 --diag_suppress=3123 --diag_suppress=611 --diag_suppress=186 --diag_suppress=128
\"
--expt-extended-lambda"
)
else
()
message
(
FATAL_ERROR
"CUDA is incompatible, version 9.2 10.1 10.2 and 11.0 is only supported"
)
endif
()
else
()
find_package
(
alpaka
)
endif
()
set
(
Vc_DIR
"
${
Vc_ROOT
}
/lib/cmake/Vc/"
)
message
(
"Searching Vc in
${
Vc_DIR
}
"
)
...
...
@@ -260,11 +228,12 @@ else()
endif
()
file
(
WRITE mpi_include
"-I
${
MPI_C_INCLUDE_DIRS
}
"
)
file
(
WRITE mpi_libs
"
${
MPI_C_LINK_FLAGS
}
${
MPI_C_LIBRARIES
}
"
)
file
(
WRITE cuda_options
"
${
WARNING_SUPPRESSION_AND_OPTION_NVCC_TEXT
}
"
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/config/config_cmake.h.in
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/config/config.h
)
add_subdirectory
(
src
)
add_subdirectory
(
openfpm_io
)
add_subdirectory
(
openfpm_numerics
)
file
(
WRITE cuda_options
"
${
WARNING_SUPPRESSION_AND_OPTION_NVCC_TEXT
}
"
)
add_subdirectory
(
src
)
This diff is collapsed.
Click to expand it.
openfpm_data
@
2cf8570b
Subproject commit
38a8b2d40da90ac66166ebe0ac32a5453e11e9f
3
Subproject commit
2cf8570b47a3daa47b04b2291e7a401e32dac39
3
This diff is collapsed.
Click to expand it.
openfpm_devices
@
c0086f8d
Subproject commit
bd6520fdcd2c95369a906424e4510d00250fe7d1
Subproject commit
c0086f8df208fa0f74616559dc1cfde49387af03
This diff is collapsed.
Click to expand it.
openfpm_io
@
2510b27e
Subproject commit
8c98f3a15f6afe9ea669dcc464cac27198fec385
Subproject commit
2510b27edf1044750b4717baf402464c5ef72973
This diff is collapsed.
Click to expand it.
openfpm_vcluster
@
821c8b27
Subproject commit
c645eebfe6a7622dbb9cefe6ed9699650b4d7938
Subproject commit
821c8b278b827e4eeb789160d534e13b2c35ff30
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