Addedd --freestanding to prevent compiler calling memcpy
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -36,7 +36,7 @@ double copy(
|
||||
double S, E;
|
||||
|
||||
S = getTimeStamp();
|
||||
#pragma omp parallel for
|
||||
#pragma omp parallel for
|
||||
for (int i=0; i<N; i++) {
|
||||
a[i] = b[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user