To start, I'm an x10 newB ;-) I installed X10 on our cluster (CentOS 6.2) and
decided to run through the platform tests on SourceForge to get a handle on X10
and ensure everything was running properly. There are a variety of runtime
failures I'm working through at this point, but one in particular has me
curious.
Here is what I have running:
x10-2.2.2.2-src.tar.bz2 from SourceForge, unzipped
Linux/x86_64 (RHEL6) Download for the Runtime (x10-2.2.2.2_linux_rh6_x86_64.tgz)
I replaced the source x10.dist with a soft link to the downloaded binaries
lrwxrwxrwx 1 paul.monday dev 23 May 23 10:06 x10.dist ->
/mnt/shared/x10-2.2.2.2
[paul.monday@pg73-v0 examples]$ x10c -version
x10c version 2.2.2
Polyglot compiler toolkit version 3.2.0 (2010-06-03 19:23:58)
I'm curious about two things, in the
Constructs/IndexedMemoryChunk/Congruent.x10 test, C++ passes, Java fails. Is
this a JDK compatibility problem, or possibly a 2.2.2.2 compilation issue when
it was built? Next, I'm sort of curious how often these incompatibilities pop
up. I have other failures I'm working through in the test suite, this one was
the first that really caught my attention.
The logs and code follow for C++ followed by Java
Here is the C++ log:
[paul.monday@pg73-v0 examples]$ cat
logDetail.Constructs.IndexedMemoryChunk.Congruent
****** Constructs.IndexedMemoryChunk Congruent ******
"/usr/lib/jvm/jre-1.6.0-openjdk.x86_64//bin/java" -Xmx768m
-Dfile.encoding=UTF-8 -Dx10.dist="/export/shared/x10-2.2.2.2"
-Dx10c.ecj.jar="ecj.jar" -Dx10c.math.jar="commons-math-2.2.jar" -classpath
"/export/shared/x10-2.2.2.2/lib/x10c.jar:/export/shared/x10-2.2.2.2/lib/lpg.jar:/export/shared/x10-2.2.2.2/lib/com.ibm.wala.cast.java_1.0.0.201101071300.jar:/export/shared/x10-2.2.2.2/lib/com.ibm.wala.cast_1.0.0.201101071300.jar:/export/shared/x10-2.2.2.2/lib/com.ibm.wala.core_1.1.3.201101071300.jar:/export/shared/x10-2.2.2.2/lib/com.ibm.wala.shrike_1.3.1.201101071300.jar:/export/shared/x10-2.2.2.2/lib/x10wala.jar:/export/shared/x10-2.2.2.2/lib/org.eclipse.equinox.common_3.6.0.v20100503.jar"
polyglot.main.Main -extclass x10cuda.ExtensionInfo -x10lib
/export/shared/x10-2.2.2.2/stdlib/libx10.properties '-o'
'Constructs/IndexedMemoryChunk/Congruent' '-sourcepath' './x10lib'
'-sourcepath' 'Constructs/IndexedMemoryChunk' '-d'
'Constructs/IndexedMemoryChunk' 'Constructs/IndexedMemoryChunk/./Congruent.x10'
'-define' '__CPP__' -classpath "Constructs/IndexedMemoryChunk"
real 0m16.291s
user 0m28.085s
sys 0m1.063s
++++++ Compilation succeeded.
Construction complete.
Verified congruence.
Remote ops complete.
Verification complete.
++++++ Test succeeded.
****** Constructs.IndexedMemoryChunk Congruent succeeded.
Here is the X10 code that the Java runtime fails on:
imc.getCongruentSibling(p.next()).remoteAdd(i, oracle);
Here is the Java emitted code that it Fails on:
//#line 33
"/export/shared/x10-2.2.2.2-src/x10.tests/examples/Constructs/IndexedMemoryChunk/Congruent.x10"
final x10.core.RemoteIndexedMemoryChunk<x10.core.Long> t2617 =
((x10.core.RemoteIndexedMemoryChunk)x10.rtt.Types.asStruct(x10.rtt.ParameterizedType.make(x10.core.RemoteIndexedMemoryChunk.$RTT,
x10.rtt.Types.LONG),(((x10.core.IndexedMemoryChunk<x10.core.Long>)(imc2631))).getCongruentSibling(t2616)));
/
Here is the Java Log:
[paul.monday@pg73-v0 examples]$ cat
logDetail.Constructs.IndexedMemoryChunk.Congruent
Starting: ../bin/testScript0 -test Constructs/IndexedMemoryChunk/Congruent.x10
Machine name: pg73-v0
Operating system: Linux
Java home: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
Java version: java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.43.1.10.6.el6_2-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
Current directory: /export/shared/x10-2.2.2.2-src/x10.tests/examples
System load: 09:33:53 up 14 days, 23:07, 12 users, load average: 0.00, 0.00,
0.00
****** Constructs.IndexedMemoryChunk Congruent ******
"/usr/lib/jvm/jre-1.6.0-openjdk.x86_64//bin/java" -Xmx768m
-Dfile.encoding=UTF-8 -Dx10.dist="/export/shared/x10-2.2.2.2"
-Dx10c.ecj.jar="ecj.jar" -Dx10c.math.jar="commons-math-2.2.jar" -classpath
"/export/shared/x10-2.2.2.2/lib/x10c.jar:/export/shared/x10-2.2.2.2/lib/lpg.jar:/export/shared/x10-2.2.2.2/lib/com.ibm.wala.cast.java_1.0.0.201101071300.jar:/export/shared/x10-2.2.2.2/lib/com.ibm.wala.cast_1.0.0.201101071300.jar:/export/shared/x10-2.2.2.2/lib/com.ibm.wala.core_1.1.3.201101071300.jar:/export/shared/x10-2.2.2.2/lib/com.ibm.wala.shrike_1.3.1.201101071300.jar:/export/shared/x10-2.2.2.2/lib/x10wala.jar:/export/shared/x10-2.2.2.2/lib/org.eclipse.equinox.common_3.6.0.v20100503.jar"
polyglot.main.Main -extclass x10c.ExtensionInfo -x10lib
/export/shared/x10-2.2.2.2/stdlib/libx10.properties '-sourcepath' './x10lib'
'-sourcepath' 'Constructs/IndexedMemoryChunk' '-d'
'Constructs/IndexedMemoryChunk' 'Constructs/IndexedMemoryChunk/./Congruent.x10'
-classpath "Constructs/IndexedMemoryChunk"
real 0m7.939s
user 0m21.751s
sys 0m0.719s
++++++ Compilation succeeded.
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64//bin/java -Xmx256M -ea
-Djava.library.path=/export/shared/x10-2.2.2.2/lib -classpath
Constructs/IndexedMemoryChunk:.:/export/shared/x10-2.2.2.2/stdlib/x10.jar:/export/shared/x10-2.2.2.2/lib/commons-math-2.2.jar
-Dx10test.timeout=270 Congruent$$Main
Construction complete.
Verified congruence.
x10.lang.UnsupportedOperationException: Remote operations are not implemented.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at
x10.core.ThrowableUtilities.createX10Throwable(ThrowableUtilities.java:160)
at
x10.core.ThrowableUtilities.UnsupportedOperationException(ThrowableUtilities.java:250)
at
x10.core.IndexedMemoryChunk.getCongruentSibling(IndexedMemoryChunk.java:482)
at Congruent$$Closure$2.$apply(Congruent.java:772)
at x10.lang.Activity.run(Activity.java:764)
at x10.lang.Runtime$Worker.loop$O(Runtime.java:920)
at x10.lang.Runtime$Worker.$apply(Runtime.java:867)
at x10.runtime.impl.java.Thread$2.run(Thread.java:66)
x10.lang.UnsupportedOperationException: Remote operations are not implemented.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method:0)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at
x10.core.ThrowableUtilities.createX10Throwable(ThrowableUtilities.java:160)
at
x10.core.ThrowableUtilities.UnsupportedOperationException(ThrowableUtilities.java:250)
at
x10.core.IndexedMemoryChunk.getCongruentSibling(IndexedMemoryChunk.java:482)
at Congruent$$Closure$2.$apply(Congruent.java:772)
at x10.lang.Activity.run(Activity.java:764)
at x10.lang.Runtime$Worker.loop$O(Runtime.java:920)
at x10.lang.Runtime$Worker.$apply(Runtime.java:867)
at x10.lang.Runtime$Pool.$apply(Runtime.java:1357)
at x10.lang.Runtime.start(Runtime.java:1943)
at x10.runtime.impl.java.Runtime.$apply(Runtime.java:202)
at x10.runtime.impl.java.Thread$2.run(Thread.java:64)
x10.lang.UnsupportedOperationException: Remote operations are not implemented.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method:0)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at
x10.core.ThrowableUtilities.createX10Throwable(ThrowableUtilities.java:160)
at
x10.core.ThrowableUtilities.UnsupportedOperationException(ThrowableUtilities.java:250)
at
x10.core.IndexedMemoryChunk.getCongruentSibling(IndexedMemoryChunk.java:482)
at Congruent$$Closure$2.$apply(Congruent.java:772)
at x10.lang.Activity.run(Activity.java:764)
at x10.lang.Runtime$Worker.loop$O(Runtime.java:920)
at x10.lang.Runtime$Worker.$apply(Runtime.java:867)
at x10.lang.Runtime$Pool.$apply(Runtime.java:1357)
at x10.lang.Runtime.start(Runtime.java:1943)
at x10.runtime.impl.java.Runtime.$apply(Runtime.java:202)
at x10.runtime.impl.java.Thread$2.run(Thread.java:64)
x10.lang.UnsupportedOperationException: Remote operations are not implemented.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method:0)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at
x10.core.ThrowableUtilities.createX10Throwable(ThrowableUtilities.java:160)
at
x10.core.ThrowableUtilities.UnsupportedOperationException(ThrowableUtilities.java:250)
at
x10.core.IndexedMemoryChunk.getCongruentSibling(IndexedMemoryChunk.java:482)
at Congruent$$Closure$2.$apply(Congruent.java:772)
at x10.lang.Activity.run(Activity.java:764)
at x10.lang.Runtime$Worker.loop$O(Runtime.java:920)
at x10.lang.Runtime$Worker.$apply(Runtime.java:867)
at x10.lang.Runtime$Pool.$apply(Runtime.java:1357)
at x10.lang.Runtime.start(Runtime.java:1943)
at x10.runtime.impl.java.Runtime.$apply(Runtime.java:202)
at x10.runtime.impl.java.Thread$2.run(Thread.java:64)
++++++ Test failed.
8.86user 0.63system 0:02.77elapsed 341%CPU (0avgtext+0avgdata
451952maxresident)k
0inputs+264outputs (0major+63302minor)pagefaults 0swaps
****** Constructs.IndexedMemoryChunk Congruent failed: run
Paul Monday
Parallel Scientific, LLC.
[email protected]
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users