Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_vcluster
Commits
f935c6f1
Commit
f935c6f1
authored
Jun 17, 2020
by
incardon
Browse files
Latest
parents
fc027a4e
2a1b192b
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f935c6f1
...
...
@@ -3,6 +3,10 @@ project(openfpm_pdata LANGUAGES C CXX)
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_CURRENT_LIST_DIR
}
/cmake_modules/
)
if
(
POLICY CMP0074
)
cmake_policy
(
SET CMP0074 NEW
)
endif
()
set
(
BOOST_INCLUDE
${
Boost_INCLUDE_DIR
}
CACHE PATH
"Include directory for BOOST"
)
set
(
SE_CLASS1 CACHE BOOL
"Activate compilation with SE_CLASS1"
)
set
(
SE_CLASS2 CACHE BOOL
"Activate compilation with SE_CLASS2"
)
...
...
src/CMakeLists.txt
View file @
f935c6f1
...
...
@@ -24,7 +24,7 @@ if(CUDA_FOUND)
target_compile_options
(
vcluster_test PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:
${
WARNING_SUPPRESSION_AND_OPTION_NVCC
}
>
)
target_include_directories
(
vcluster_test PUBLIC
${
MPI_C_INCLUDE_DIRS
}
)
if
(
TEST_COVERAGE
)
target_compile_options
(
mem
PRIVATE $<$<COMPILE_LANGUAGE:CUDA>: -Xcompiler
"-fprofile-arcs -ftest-coverage"
>
)
target_compile_options
(
vcluster_test
PRIVATE $<$<COMPILE_LANGUAGE:CUDA>: -Xcompiler
"-fprofile-arcs -ftest-coverage"
>
)
endif
()
endif
()
...
...
src/VCluster/VCluster_base.hpp
View file @
f935c6f1
...
...
@@ -360,7 +360,14 @@ public:
bar_req
=
MPI_Request
();
bar_stat
=
MPI_Status
();
context
=
new
mgpu
::
ofp_context_t
(
mgpu
::
gpu_context_opt
::
no_print_props
,
shmrank
);
#ifdef EXTERNAL_SET_GPU
int
dev
;
cudaGetDevice
(
&
dev
);
context
=
new
mgpu
::
ofp_context_t
(
mgpu
::
gpu_context_opt
::
no_print_props
,
dev
);
#else
context
=
new
mgpu
::
ofp_context_t
(
mgpu
::
gpu_context_opt
::
no_print_props
,
shmrank
);
#endif
#if defined(PRINT_RANK_TO_GPU) && defined(CUDA_GPU)
...
...
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