Project

General

Profile

Bug #1824

Zerocopy examples don't compile on windows builds and fail autobuild

Added by Nitin Bhat over 1 year ago. Updated over 1 year ago.

Status:
Merged
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
03/07/2018
Due date:
% Done:

0%

Tags:

Description

make[5]: Entering directory '/home/nikhil/autobuild/multicore-win-x86_64/charm/multicore-win-x86_64/examples/charm++/zerocopy/direct_api/simple_rget'
../../../../../bin/charmc -optimize -production   simple_rget.ci
touch cifiles
../../../../../bin/charmc -optimize -production  -c simple_rget.C
simple_rget.C
simple_rget.C(62): error C2229: class 'Ping1' has an illegal zero-sized array
simple_rget.C(63): error C2229: class 'Ping1' has an illegal zero-sized array
simple_rget.C(175): error C2229: class 'Ping1' has an illegal zero-sized array

The error reporting by the compiler is incorrect. The zero-sized array is the

char layerInfo[CMK_NOCOPY_DIRECT_BYTES]
which defaults to
char layerInfo[0]
inside ckrdma.h causing the C2229 error (https://msdn.microsoft.com/en-us/library/0scy7z2d.aspx)

History

#1 Updated by Nitin Bhat over 1 year ago

  • Status changed from New to Implemented

#2 Updated by Nitin Bhat over 1 year ago

  • Target version set to 6.9.0
  • Tags set to #rdma

#3 Updated by Sam White over 1 year ago

Separately we'll want to cut down the run time of the pingpong example byt skipping over some sizes and decreasing the number of iterations.

#4 Updated by Sam White over 1 year ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF