18 questions
0
votes
1
answer
131
views
What is the correct way to call this sorting funtion in x10?
I am trying to sort an array in x10 using qsort().
First I was writing sequential code, so there were no issues. Now, I am trying to parallelize my code. Now I need to run this sort function from ...
1
vote
1
answer
115
views
Difference between places and workers in APGAS framework and how are the workers implemented in Java?
I have been reading the Lifeline Global Load Balancing Paper (the paper is available on the link http://www.cs.columbia.edu/~martha/courses/4130/au12/p201-saraswat.pdf). I am new to x10 language. I am ...
1
vote
0
answers
95
views
How to run X10 program with Sockets backend?
I am working on a project, in which, a part is to send message from one process to another which are running on different machines. (I have to code it in X10 language).
From this link, I figured out ...
2
votes
2
answers
167
views
Importing x10 objects into java
We need to pass an x10 arraylist[string] to a Java method as an object. What we tried is this.The method signature in Java interface is as follows.
public void getX10ArrayList ( ArrayList <String &...
1
vote
1
answer
177
views
X10 reading from a file not as expected
I encountered following behavior when reading from a text file.
val input = new File(inputFileName);
val inp = input.openRead();
Console.OUT.println(inp.lines().next());
if (inp.lines().hasNext())
...
-1
votes
1
answer
831
views
write 8 bytes legth records to a file in java [closed]
I need to store fixed size records to a file. Each record has two Ids which share 4bytes per each. I'm doing my project in x10-language. If you can help me with x10 code it would be great.
But even ...
-2
votes
2
answers
230
views
Import java library to a x10 class
I am doing a project in x10 language. Its back-end is java. I need to import some useful java libraries to x10 class. But when I build the project with ant, it gives build errors saying imported class ...
1
vote
1
answer
149
views
Port old X10 Example to version 2.5
I have an old X10 example in class which I'm trying to compile.
import x10.array.Array;
import x10.io.Console;
...
public static def main(args: Array[String](1)) {
val regionTest = 1..12;
...
0
votes
1
answer
92
views
Need help in understanding Dist and DistArray
I don't understand the following piece of code.
val array = new Array[INT](1..1000, ([i]:Point) => 0);
val dist = Dist.makeBlock(array.region);
val distArray = DistArray.make(dist, ([i]:Point) =&...
1
vote
1
answer
157
views
X10 code does not recognize the second core of the CPU
I wrote a canonical "Hello, World" demo class in X10:
class Hello {
public static def main(args:Rail[String]):void {
finish for (p in Place.places()) {
at (p) async Console.OUT....
1
vote
1
answer
438
views
How do I generate and print Fibonacci numbers in X10?
I would like to generate and print the first 10 Fibonacci numbers. I don't want to be efficient, but I want to see some (working) X10 code that is easy to understand.
My try
// file Fibonacci.x10
...
2
votes
1
answer
628
views
What is the difference of 'async' before or after 'for' in X10?
I'm currently learning for an exam. In an multiple choice question of an old exam are two different versions of a for loop marked as valid:
finish async for (i in array) async {
...
}
and
finish ...
1
vote
1
answer
642
views
How can I compile the x10 example?
I'm currently reading this and I try to compile the very first example
// file HelloWorld.x10
public class HelloWorld {
public static def main(args: Array[String](1)){
x10.io.Console.OUT....
1
vote
1
answer
193
views
X10 x10.lang.FailedDynamicCheckException: !(here == x$0.home) C++ Backend
i'm playing around with X10 currently, and i'm getting multiple exceptions. This is the code i created:
Main.x10
public class Main {
// main Method for the Main class
public static def main(argv:...
0
votes
1
answer
81
views
X10 language deals with loose coupling or tight coupling?
Can anyone tell me if X10 lang (http://x10-lang.org/) works based on tight coupling or loose coupling systems?