Skip to content

Commit 848b8df

Browse files
author
Tiziano De Matteis
committed
AE: updated README
1 parent 2d28fdb commit 848b8df

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

evaluation/individual_modules/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ BLASFLAGS = -lopenblas
55
CXXFLAGS= -std=c++11 -O3 -pthread
66
#Change if you need another board
77
BOARD = p520_max_sg280l
8-
# Seed used for hardware compilation. Change it for different result
9-
SEED = 4
108
AOCXXFLAGS = -board=$(BOARD) -fp-relaxed -fpc -no-interleaving=default
119
AOCL_COMPILE_CONFIG := $(shell aocl compile-config)
1210
AOCL_LINK_CONFIG := $(shell aocl link-config)
@@ -41,8 +39,9 @@ BIN_DIR=bin
4139
rm -f $*gemm_codegen_files/*
4240
mkdir -p $*gemm_codegen_files
4341
$(HOST_GEN) $*gemm.json -output_dir=$*gemm_codegen_files
44-
$(AOCXX) $(AOCXXFLAGS) $*gemm_codegen_files/*$*gemm*cl -report -seed=$(SEED)
45-
mv *$*gemm*.aocx $*gemm_hardware.aocx || true
42+
$(AOCXX) $(AOCXXFLAGS) $*gemm_codegen_files/*$*gemm*cl -report
43+
mv *$*gemm.aocx $*gemm_hardware.aocx || true
44+
mv *$*gemm $*gemm_hardware || true
4645
@echo "Generated file $*gemm_hardware.aocx"
4746

4847
%_emulator:

evaluation/individual_modules/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ commands can be used:
1919

2020
To execute a program:
2121
- for emulating a design, set the environment variable ` CL_CONTEXT_EMULATOR_DEVICE_INTELFPGA=1` as suggested by Intel
22-
- execute the host program locate under `bin/` by passing the suggested parameters (execute the program without argument to obtain a list). Note: for GEMM
23-
it will require the json file automatically generated and located under `<s/d>gemm_codegen_files/generated_routines.json`
22+
- execute the host program locate under `bin/` by passing the suggested parameters (execute the program without argument to obtain a list). Note: for GEMM it will require the json file automatically generated and located under `<s/d>gemm_codegen_files/generated_routines.json`
2423

2524
Every host program accepts, among the other, the number of runs to execute and produces the averaged execution time,
2625
as well as confidence intervals.
@@ -37,4 +36,6 @@ $ make gemv_host
3736
#execute for emulation, 5 runs. The program takes in input sizes (n,m), alpha and beta multipliers (a,b) and tile sizes (k,j) as defined in the json description
3837
$ env CL_CONTEXT_EMULATOR_DEVICE_INTELFPGA=1 bin/gemv_host -b sgemv.aocx -n 2048 -m 1024 -a 2 -c 1 -k 1024 -j 1024 -r 1 -p single
3938

40-
```
39+
```
40+
41+
Note: for GEMM, changing the compilation seed (by adding the `-seed=<number>` at the end of compilation command) could result in higher/lower synthesis frequency.

evaluation/individual_modules/host_gemm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ using namespace std;
2727
void singlePrecision(std::string program_path, std::string json_path, int n, int k, int m, timestamp_t &fpga_time, float alpha, float beta){
2828

2929
cout << "-------------------------------------------------------------------------"<<endl;
30-
cout << "Executing single precision GEMM: "<<n<<endl;
30+
cout << "Executing single precision GEMM: "<<n<< "x" << m <<endl;
3131
cout << "-------------------------------------------------------------------------"<<endl;
3232

3333
FBLASEnvironment fb =FBLASEnvironment (program_path,json_path);
@@ -108,7 +108,7 @@ void singlePrecision(std::string program_path, std::string json_path, int n, int
108108
void doublePrecision(std::string program_path, std::string json_path, int n, int k, int m, timestamp_t &fpga_time, double alpha, double beta){
109109

110110
cout << "-------------------------------------------------------------------------"<<endl;
111-
cout << "Executing double precision GEMM: "<<n<<endl;
111+
cout << "Executing double precision GEMM: "<<n<< "x" << m <<endl;
112112
cout << "-------------------------------------------------------------------------"<<endl;
113113

114114
FBLASEnvironment fb =FBLASEnvironment (program_path,json_path);

0 commit comments

Comments
 (0)