Hi there,
When I'm trying to make the generated resnet50opt, it throws an error below. I do find the x16826_inr_Foreach_kernel.scala file has a lot more code than others. Any idea how to work this around?
echo "$(date +%s)" > start.log
sbt compile
Picked up _JAVA_OPTIONS: -Xms1024m -Xss256m -Xmx16g -XX:MaxMetaspaceSize=30g
Copying runtime jar.
Picked up _JAVA_OPTIONS: -Xms1024m -Xss256m -Xmx16g -XX:MaxMetaspaceSize=30g
Exception in thread "main" java.nio.file.ProviderNotFoundException: Provider "jrt" not found
at java.nio.file.FileSystems.getFileSystem(FileSystems.java:224)
at io.github.retronym.java9rtexport.Export.main(Export.java:36)
Picked up _JAVA_OPTIONS: -Xms1024m -Xss256m -Xmx16g -XX:MaxMetaspaceSize=30g
[info] Loading project definition from /home/aleczshi/spatial-multiverse/spatial/gen/resnet50opt/project
[info] Loading settings from build.sbt ...
[info] Set current project to spatial-app (in build file:/home/aleczshi/spatial-multiverse/spatial/gen/resnet50opt/)
[info] Executing in batch mode. For better performance use sbt's shell
[info] Compiling 363 Scala sources to /home/aleczshi/spatial-multiverse/spatial/gen/resnet50opt/target/scala-2.12/classes ...
[error] Could not write class x16826_inr_Foreach_kernel$Block1Chunker29$2$ because it exceeds JVM code size limits. Method emul/FixFormat's code too large!
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 28 s, completed Jul 10, 2020 4:59:40 AM
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
And I do find that the file x16826_inr_Foreach_kernel.scala has a lot more code than others. Any idea how to
bin/spatial resnet50opt --sim --codeWindow=40
git clone https://github.com/stanford-ppl/spatial-multiverse.git
cd spatial-multiverse
git submodule update --init
python dnn_to_spatial.py models/resnet/ResNet50_opt.pb
cp resnet50opt.scala spatial/test/spatial/tests/apps
cd spatial
bin/spatial resnet50opt --synth --forceFuseFMA --noBindParallels --fpga=AWS_F1 && cd gen/resnet50opt && make aws-F1
git clone https://github.com/stanford-ppl/spatial-multiverse.git
cd spatial-multiverse
git submodule update --
init
python2 dnn_to_spatial.py models/resnet/ResNet50_opt.pb
cp resnet50opt.scala spatial/test/spatial/tests/apps
cd spatial
bin/spatial resnet50opt --sim
cd gen/resnet50opt && make
python dnn_to_spatial.py models/resnet/ResNet50_opt.pb
cp resnet50opt.scala spatial/test/spatial/tests/apps
cd spatial
bin/spatial resnet50opt --synth --forceFuseFMA --noBindParallels --fpga=AWS_F1 && cd gen/resnet50opt && make aws-F1
[ERROR] Failed to construct terminal; falling back to unsupported java.lang.NumberFormatException: For input string: "0x100" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at jline.internal.InfoCmp.parseInfoCmp(InfoCmp.java:59) at jline.UnixTerminal.parseInfoCmp(UnixTerminal.java:242) at jline.UnixTerminal.<init>(UnixTerminal.java:65) at jline.UnixTerminal.<init>(UnixTerminal.java:50) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at jline.TerminalFactory.getFlavor(TerminalFactory.java:211) at jline.TerminalFactory.create(TerminalFactory.java:102) at jline.TerminalFactory.get(TerminalFactory.java:186) at jline.TerminalFactory.get(TerminalFactory.java:192) at sbt.JLine$.sbt$JLine$$terminal(LineReader.scala:85) at sbt.JLine$.withTerminal(LineReader.scala:88) at sbt.JLine$.usingTerminal(LineReader.scala:96) at sbt.JLine$.createReader(LineReader.scala:102) at sbt.FullReader.<init>(LineReader.scala:132) at sbt.BasicCommands$$anonfun$shell$1.apply(BasicCommands.scala:184) at sbt.BasicCommands$$anonfun$shell$1.apply(BasicCommands.scala:181) at sbt.Command$$anonfun$command$1$$anonfun$apply$1.apply(Command.scala:30) at sbt.Command$$anonfun$command$1$$anonfun$apply$1.apply(Command.scala:30) at sbt.Command$.process(Command.scala:93) at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96) at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96) at sbt.State$$anon$1.doX$1(State.scala:183) at sbt.State$$anon$1.process(State.scala:189) at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96) at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) at sbt.MainLoop$.next(MainLoop.scala:96) at sbt.MainLoop$.run(MainLoop.scala:89) at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:68) at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:63) at sbt.Using.apply(Using.scala:24) at sbt.MainLoop$.runWithNewLog(MainLoop.scala:63)