Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_vcluster
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_vcluster
Commits
1950430f
Commit
1950430f
authored
Jul 23, 2020
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing garbage
parent
cb67f4de
Pipeline
#2173
failed with stages
in 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/CMakeLists.txt
src/CMakeLists.txt
+1
-1
src/VCluster/VCluster_meta_function.hpp
src/VCluster/VCluster_meta_function.hpp
+5
-0
No files found.
src/CMakeLists.txt
View file @
1950430f
...
...
@@ -6,7 +6,7 @@ if (CUDA_FOUND)
set
(
CUDA_SOURCES ../../openfpm_devices/src/memory/CudaMemory.cu VCluster/cuda/VCluster_semantic_unit_cuda_tests.cu VCluster/cuda/VCluster_unit_tests.cu
)
endif
()
add_executable
(
vcluster_test main.cpp VCluster/VCluster.cpp ../../openfpm_devices/src/memory/HeapMemory.cpp ../../openfpm_devices/src/memory/PtrMemory.cpp
../../openfpm_devices/src/Memleak_check.cpp
VCluster/VCluster_unit_tests.cpp VCluster/VCluster_semantic_unit_tests.cpp
${
CUDA_SOURCES
}
)
add_executable
(
vcluster_test main.cpp VCluster/VCluster.cpp ../../openfpm_devices/src/memory/HeapMemory.cpp ../../openfpm_devices/src/memory/PtrMemory.cpp VCluster/VCluster_unit_tests.cpp VCluster/VCluster_semantic_unit_tests.cpp
${
CUDA_SOURCES
}
)
if
(
CMAKE_COMPILER_IS_GNUCC
)
target_compile_options
(
vcluster_test PRIVATE
"-Wno-deprecated-declarations"
)
...
...
src/VCluster/VCluster_meta_function.hpp
View file @
1950430f
...
...
@@ -262,7 +262,9 @@ struct unpack_selector_with_prp_lin<true,T,S,layout_base,Memory>
// add the received particles to the vector
PtrMemory
*
ptr1
=
new
PtrMemory
(
recv_buf
.
get
(
i
).
getPointer
(),
recv_buf
.
get
(
i
).
size
());
ptr1
->
incRef
();
{
// create vector representation to a piece of memory already allocated
openfpm
::
vector
<
typename
T
::
value_type
,
PtrMemory
,
typename
layout_base
<
typename
T
::
value_type
>::
type
,
layout_base
,
openfpm
::
grow_policy_identity
>
v2
;
...
...
@@ -283,7 +285,10 @@ struct unpack_selector_with_prp_lin<true,T,S,layout_base,Memory>
sz_byte
->
get
(
i
)
=
recv_buf
.
get
(
i
).
size
();
if
(
sz
!=
NULL
)
sz
->
get
(
i
)
=
recv_size_new
-
recv_size_old
;
}
ptr1
->
decRef
();
delete
ptr1
;
return
1
;
}
};
...
...
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