diff options
author | Drew Zagieboylo <dzag1600@berkeley.edu> | 2014-05-04 17:53:27 -0700 |
---|---|---|
committer | Drew Zagieboylo <dzag1600@berkeley.edu> | 2014-05-04 17:53:27 -0700 |
commit | 617d6eeaee4e91fbf8b09b746844787f1e944597 (patch) | |
tree | 27ac92d9f5725eada23110725684c8b04130a1ac | |
parent | 906b8e30b5020ef9def3a13971083be5e1fb4494 (diff) | |
download | riscv-tests-617d6eeaee4e91fbf8b09b746844787f1e944597.zip riscv-tests-617d6eeaee4e91fbf8b09b746844787f1e944597.tar.gz riscv-tests-617d6eeaee4e91fbf8b09b746844787f1e944597.tar.bz2 |
added funroll-loops to gcc compiler
-rw-r--r-- | benchmarks/Makefile | 2 | ||||
-rw-r--r-- | benchmarks/sdisorder/sdisorder.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index a84e616..5bca560 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -56,7 +56,7 @@ HOST_OPTS = -std=gnu99 -DPREALLOCATE=0 -DHOST_DEBUG=1 HOST_COMP = gcc $(HOST_OPTS) RISCV_GCC = riscv-gcc -RISCV_GCC_OPTS = -Wa,-march=RVIMAFDXhwacha -std=gnu99 -O2 -ffast-math +RISCV_GCC_OPTS = -Wa,-march=RVIMAFDXhwacha -std=gnu99 -O2 -funroll-loops -ffast-math RISCV_LINK = riscv-gcc -T $(bmarkdir)/common/test.ld $(incs) RISCV_LINK_MT = riscv-gcc -T $(bmarkdir)/common/test-mt.ld RISCV_LINK_OPTS = -nostdlib -nostartfiles -ffast-math -lc diff --git a/benchmarks/sdisorder/sdisorder.c b/benchmarks/sdisorder/sdisorder.c index 49daf60..8698c77 100644 --- a/benchmarks/sdisorder/sdisorder.c +++ b/benchmarks/sdisorder/sdisorder.c @@ -9,7 +9,7 @@ #define MLP 32 #endif #ifndef STEP - #define STEP 64 +#define STEP 16 #endif @@ -64,14 +64,14 @@ void RandGenBench(int n) { void thread_entry(int cid, int nc) { while (cid != 0) { - // clogMem(1<<18, 64<<3,1<<7); + clogMem(1<<16, 64>>2,1<<7); } } int main(int argc, char* argv[]) { uint num_iters = 1; - uint length = 1<<18; + uint length = 1<<16; uint randomize = 0; uint stream[length]; |