I've been experimenting with the streaMIT 2.1.1 source distribution on the 
website.
I managed to get my code compiled and running (quantum computing simulation).  
Compiling the same code for multiple threads fails however in PartitionDot:

bash-3.2$ strc -cluster 2 Entangler.str -o entangler
...
Running Partitioning... target number of threads: 2
java.lang.ArrayIndexOutOfBoundsException: -37
        at 
at.dms.kjc.sir.lowering.partition.PartitionDot.makePartitionLabel(PartitionDot.java:78)
        at 
at.dms.kjc.sir.lowering.partition.PartitionDot.visitFilter(PartitionDot.java:92)
        at at.dms.kjc.sir.SIRFilter.accept(SIRFilter.java:78)
        at at.dms.kjc.StreamItDot.visitPipeline(StreamItDot.java:291)
        at at.dms.kjc.sir.SIRPipeline.accept(SIRPipeline.java:174)
        at 
at.dms.kjc.sir.lowering.partition.PartitionDot.printGraph(PartitionDot.java:214)
        at 
at.dms.kjc.sir.lowering.partition.PartitionDot.printWorkGraph(PartitionDot.java:167)
        at 
at.dms.kjc.sir.lowering.partition.WorkEstimate.printGraph(WorkEstimate.java:205)
        at 
at.dms.kjc.sir.lowering.partition.Partitioner.doit(Partitioner.java:62)
        at 
at.dms.kjc.sir.lowering.partition.Partitioner.doit(Partitioner.java:32)
        at at.dms.kjc.cluster.ClusterBackend.run(ClusterBackend.java:309)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at at.dms.kjc.StreaMITMain.compile(StreaMITMain.java:166)
        at at.dms.kjc.Main.run(Main.java:171)
        at at.dms.kjc.Main.compile(Main.java:74)
        at at.dms.kjc.Main.main(Main.java:61)

I'll dive into the code to see if there is a trivial fix, but any help would be 
appreciated.
_______________________________________________
StreamIt-users mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/streamit-users

Reply via email to