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
f1aad62b
Commit
f1aad62b
authored
Aug 02, 2016
by
Yaroslav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on SGather
parent
d5e19cda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/VCluster_semantic.ipp
src/VCluster_semantic.ipp
+7
-3
No files found.
src/VCluster_semantic.ipp
View file @
f1aad62b
...
...
@@ -140,6 +140,8 @@ private:
{
for (size_t i = 0 ; i < recv_buf.size() ; i++)
{
//std::cout << "I: " << i << ", Rec_buf.get(i).size(): " << recv_buf.get(i).size() << std::endl;
// calculate the number of received elements
size_t n_ele = recv_buf.get(i).size() / sizeof(typename T::value_type);
...
...
@@ -219,6 +221,8 @@ static void * msg_alloc(size_t msg_i ,size_t total_msg, size_t total_p, size_t i
rinfo.recv_buf->resize(ri+1);
rinfo.recv_buf->get(ri).resize(msg_i);
std::cout << "Recv_but.get(ri).size(): " << rinfo.recv_buf->get(ri).size() << std::endl;
// Receive info
rinfo.prc.add(i);
...
...
@@ -369,13 +373,13 @@ template<typename T, typename S> bool SGather(T & send, S & recv, openfpm::vecto
Pack_stat sts;
pack_unpack_cond<has_max_prop<T, has_value_type<T>::value>::value, T, S>::packing(mem, send, sts);
pack_unpack_cond<has_max_prop<T, has_value_type<T>::value>::value, T, S>::packing(mem, send, sts);
openfpm::vector<const void *> send_buf;
send_buf.add(mem.getPointer());
openfpm::vector<size_t> sz;
sz.add(send.size());
openfpm::vector<size_t> sz;
sz.add(send.size()
*sizeof(typename T::value_type)
);
// receive information
base_info bi(NULL,prc,sz);
...
...
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