Dear all,
I tried to read a large number of files into an ArrayList with the
following code:
var file_list:ArrayList[String]=new ArrayList[String]();
for( f1 in (0..1000)){
for(f2 in (0..30)){
val f_name=f1.toString()+"_"+f2.toString();
val file=new File(f_
if(file.exists()) {
> val reader = file.openRead();
> //Console.OUT.println(f1+"_"+f2);
> for(s in reader.lines()){
>file_list.add(s);
> }
> reader.
Hello all,
I try to pass a String parameter to C++ code as shown in the following
code, but always meter the error "conversion from ‘x10::lang::String*’
to non-scalar type ‘std::string’ requested". It's true that I define
the function "void filetest(string s)" and use the "using namespace
std;", f
Hello Sparsh,
You can check the X10 API at
http://x10.sourceforge.net/x10doc/latest/ , for Array, there is a
constructor Array(Int size), so it means that the size of the
Array[double](2) is 2, but not mean 2d. If you want to create 2d
Array, you should use the way Array(Region reg) . There are a
Dear List,
I meet a problem about memory release in x10 code as below shows. I
try to read many large files step by step, as 5 times in the code. For
each step, the DistArray is initialized firstly, and then reading the
strings at each place. The problem is that: after the first step, when
K==2, I
Hello,
It seems work fine with C++ backend.I just use the version 2.3
Regards,
Long
[root@shamrock037 test]# cat HelloWorld.x10
public class HelloWorld {
public static def main(args: Array[String](1)) {
x10.io.Console.OUT.println("Hello, World");
}
}
[root@shamrock037 test]# x10c++ -o cheng Hell
Hello all,
I am trying to monitor the message send/receive between each place
with X10_TRACE_RXTX for my codes, but it seems there is something
wrong with the profiling results that: The RX bytes/TX bytes recorded
by the network card is total different from that recorded by
X10_TRACE_RXTX. In my t
: 0 get_rx: 0(&0)/0 get_tx: 0(&0)/0
> Place: 1 msg_rx: 201/9 msg_tx: 207/11
> Place: 1 put_rx: 28(&2000)/1 put_tx: 0(&0)/0
> Place: 1 get_rx: 0(&0)/0 get_tx: 0(&0)/0
>
> The bytes moved via asyncCopy show up in the put_rx and get_rx lines, and
> do
Hello all,
I try to build an array[AtomicBoolean] and meet a problem that: there
is an "Segmentation fault" error when the size of the array is 500M,.
The test code is below that I try to build the array with size N and
initialize each element as "true" .
import x10.util.concurrent.AtomicBoolean
wrong.
BR,
Long
On 5/1/13, David P Grove wrote:
>
> Hi,
>
> I'd wonder if perhaps you are running a 32 bit executable (Native
> X10) or on a 32-bit JVM (Managed X10)? The segfault is happening at
> roughly where one might expect to have exhausted a 32-bit address spa
10 matches
Mail list logo