diff --git a/include_CLANG.mk b/include_CLANG.mk index 0034ed6..913c44d 100644 --- a/include_CLANG.mk +++ b/include_CLANG.mk @@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true) OPENMP = -fopenmp endif -CFLAGS = -Ofast -std=c99 -pthread $(OPENMP) +CFLAGS = -Ofast -ffreestanding -std=c99 -pthread $(OPENMP) LFLAGS = -pthread $(OPENMP) DEFINES = -D_GNU_SOURCE INCLUDES = diff --git a/include_GCC.mk b/include_GCC.mk index f854058..afdb9f1 100644 --- a/include_GCC.mk +++ b/include_GCC.mk @@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true) OPENMP = -fopenmp endif -CFLAGS = -Ofast -std=c99 -pthread $(OPENMP) +CFLAGS = -Ofast -ffreestanding -std=c99 -pthread $(OPENMP) LFLAGS = -pthread $(OPENMP) DEFINES = -D_GNU_SOURCE INCLUDES = diff --git a/include_ICC.mk b/include_ICC.mk index 436c92e..8bc051d 100644 --- a/include_ICC.mk +++ b/include_ICC.mk @@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true) OPENMP = -qopenmp endif -CFLAGS = -Ofast -xhost -std=c99 -pthread $(OPENMP) +CFLAGS = -qopt-report -Ofast -xHost -std=c99 -ffreestanding -pthread $(OPENMP) LFLAGS = -pthread $(OPENMP) DEFINES = -D_GNU_SOURCE INCLUDES = diff --git a/src/copy.c b/src/copy.c index 4c330e4..7e31a0c 100644 --- a/src/copy.c +++ b/src/copy.c @@ -36,7 +36,7 @@ double copy( double S, E; S = getTimeStamp(); -#pragma omp parallel for +#pragma omp parallel for for (int i=0; i