This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] |