Skip to content

Instantly share code, notes, and snippets.

import sys.process._
import org.apache.spark.{SparkConf, SparkContext}
object SparkSleep {
def main(args: Array[String]) {
val conf = new SparkConf()
.setAppName(s"SparkSleep")
val sc = new SparkContext(conf)
val NUM_SLICES = 1000
import spatial._
import org.virtualized._
/* Radix-4 FFT program in Spatial. */
/* Signal size should be powers of four (standard). */
object FFT4 extends SpatialApp {
import IR._
/* Use fixed point. */
type T = FixPt[TRUE,_16,_16]