Addedd --freestanding to prevent compiler calling memcpy
This commit is contained in:
@@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true)
|
|||||||
OPENMP = -fopenmp
|
OPENMP = -fopenmp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS = -Ofast -std=c99 -pthread $(OPENMP)
|
CFLAGS = -Ofast -ffreestanding -std=c99 -pthread $(OPENMP)
|
||||||
LFLAGS = -pthread $(OPENMP)
|
LFLAGS = -pthread $(OPENMP)
|
||||||
DEFINES = -D_GNU_SOURCE
|
DEFINES = -D_GNU_SOURCE
|
||||||
INCLUDES =
|
INCLUDES =
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true)
|
|||||||
OPENMP = -fopenmp
|
OPENMP = -fopenmp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS = -Ofast -std=c99 -pthread $(OPENMP)
|
CFLAGS = -Ofast -ffreestanding -std=c99 -pthread $(OPENMP)
|
||||||
LFLAGS = -pthread $(OPENMP)
|
LFLAGS = -pthread $(OPENMP)
|
||||||
DEFINES = -D_GNU_SOURCE
|
DEFINES = -D_GNU_SOURCE
|
||||||
INCLUDES =
|
INCLUDES =
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true)
|
|||||||
OPENMP = -qopenmp
|
OPENMP = -qopenmp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS = -Ofast -xhost -std=c99 -pthread $(OPENMP)
|
CFLAGS = -qopt-report -Ofast -xHost -std=c99 -ffreestanding -pthread $(OPENMP)
|
||||||
LFLAGS = -pthread $(OPENMP)
|
LFLAGS = -pthread $(OPENMP)
|
||||||
DEFINES = -D_GNU_SOURCE
|
DEFINES = -D_GNU_SOURCE
|
||||||
INCLUDES =
|
INCLUDES =
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ double copy(
|
|||||||
double S, E;
|
double S, E;
|
||||||
|
|
||||||
S = getTimeStamp();
|
S = getTimeStamp();
|
||||||
#pragma omp parallel for
|
#pragma omp parallel for
|
||||||
for (int i=0; i<N; i++) {
|
for (int i=0; i<N; i++) {
|
||||||
a[i] = b[i];
|
a[i] = b[i];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user