Error for exceeding JVM code size limits

15 views
Skip to first unread message

Pratik Balachandran

unread,
Jan 31, 2020, 3:46:42 AM1/31/20
to Spatial Users
Hello,

When I  run make in the gen/AppName directory, I run into the following error

[info] Compiling 1065 Scala sources to /home/pb/cs217/linear-algebra-cs217_pb_fl_2020/gen/GEMV/target/scala-2.12/classes ...
[error] Could not write class x5481_inr_UnitPipe_kernel$Block1Chunker1$2$Block1Chunker1Sub11$2$ because it exceeds JVM code size limits. Method gen's code too large!
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 106 s, completed Jan 31, 2020 12:18:53 AM
Makefile:2: recipe for target 'all' failed

Any idea what might be causing this?   Do I need to rewrite some of the expressions in my code,  or can I instead change some compile time options to get around this?

Thanks,
Pratik

Matt F

unread,
Jan 31, 2020, 1:51:50 PM1/31/20
to Spatial Users
Hi Pratik,

If you send the app and generated directory (email directly mattfel at stanford or attach here) I can take a look.  This kind of issue is rare and it's hard for me to say which part of the app is causing it without seeing what the app looks like.  There seems to be some sequence of nodes in the IR for your app that are generating a lot of code, and this chunk of code just didn't split soon enough to make the JVM happy.  A not-so-good but quick solution you can try is to shrink one or two parallelization factors / metaprogramming factors.
Reply all
Reply to author
Forward
0 new messages