From 2259537c221a883495fe557fbd9f65eb67b4fd61 Mon Sep 17 00:00:00 2001 From: Alexander Heinecke Date: Fri, 20 Aug 2021 19:36:46 -0700 Subject: [PATCH] minor fixes --- level0/readbw_multilevel/Makefile | 5 +++-- level0/readbw_multilevel/readbw_multilevel.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/level0/readbw_multilevel/Makefile b/level0/readbw_multilevel/Makefile index 71a7ffa..5edc7c7 100644 --- a/level0/readbw_multilevel/Makefile +++ b/level0/readbw_multilevel/Makefile @@ -28,10 +28,11 @@ ############################################################################# CC = gcc -#CFLAGS = -O2 -fopenmp -mavx2 -fstrict-aliasing -#CFLAGS = -O2 -fopenmp -msse3 -fstrict-aliasing +CFLAGS = -O2 -fopenmp -msse3 -fstrict-aliasing +CFLAGS = -O2 -fopenmp -mavx2 -fstrict-aliasing CFLAGS = -O2 -fopenmp -mfma -mavx512f -mavx512cd -mavx512dq -mavx512bw -mavx512vl -fstrict-aliasing CC = icc +CFLAGS = -O3 -mavx2 -qopenmp -qopenmp-link=static CFLAGS = -O3 -xCOMMON-AVX512 -qopenmp -qopenmp-link=static all: readbw_multilevel.exe diff --git a/level0/readbw_multilevel/readbw_multilevel.c b/level0/readbw_multilevel/readbw_multilevel.c index 648ab77..c6b65ba 100644 --- a/level0/readbw_multilevel/readbw_multilevel.c +++ b/level0/readbw_multilevel/readbw_multilevel.c @@ -228,7 +228,7 @@ int main(int argc, char* argv[]) { } /* reading values from the command line */ - l_n_bytes = atoi(argv[1])*2048; + l_n_bytes = ((size_t)atoi(argv[1]))*2048; l_n_levels = atoi(argv[2]); l_n_parts = atoi(argv[3]); l_n_workers = atoi(argv[4]);