Skip to content

Commit

Permalink
Fixes for Windows build, FIRESTARTER 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rschoene committed Oct 19, 2017
1 parent acf384f commit 699c50a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion source_files/main_win64.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ unsigned long long clockrate; /* measured clockrate (via TSC) */
/*
* load characteristics as defind by -p and -l
*/
long PERIOD = 250000, LOAD = 100;
long PERIOD = 100000, LOAD = 100;
long load_time, idle_time;

/* thread handling */
Expand Down
7 changes: 1 addition & 6 deletions templates/main_win64_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ def WorkerThread_select_function(file,architectures,templates):
for threads in each.threads:
func_name = each.arch+'_'+each.model+'_'+isa+'_'+threads+'t'
file.write(" case FUNC_"+func_name.upper()+":\n")
if (int(threads) == 1):
file.write(" p = _mm_malloc(13406208*8,4096);\n")
if (int(threads) == 2):
file.write(" p = _mm_malloc(6703104*8,4096);\n")
if (int(threads) == 4):
file.write(" p = _mm_malloc(3351552*8,4096);\n")
file.write(" p = _mm_malloc("+str( (each.l1_size+each.l2_size+each.l3_size+each.ram_size)//int(threads)+16 )+",4096);\n")
file.write(" data->addrMem = (unsigned long long) p;\n")
file.write(" init_"+func_name+"(data);\n")
file.write(" while(*((unsigned long long*)(data->addrHigh)) != LOAD_STOP){\n")
Expand Down

0 comments on commit 699c50a

Please sign in to comment.