Commit 76236103 authored by Oliver Zier's avatar Oliver Zier
Browse files

Remove NUM_THREADS in Makefiles

parent 5a068954
...@@ -7,10 +7,4 @@ CPV = $(CPP) ...@@ -7,10 +7,4 @@ CPV = $(CPP)
else else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
\ No newline at end of file
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -fopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -7,9 +7,3 @@ else ...@@ -7,9 +7,3 @@ else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -qopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -7,10 +7,4 @@ CPV = $(CPP) ...@@ -7,10 +7,4 @@ CPV = $(CPP)
else else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
\ No newline at end of file
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -fopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -8,9 +8,3 @@ else ...@@ -8,9 +8,3 @@ else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -fopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -8,9 +8,3 @@ else ...@@ -8,9 +8,3 @@ else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -fopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -11,10 +11,4 @@ CPV = $(CPP) ...@@ -11,10 +11,4 @@ CPV = $(CPP)
else else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
\ No newline at end of file
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -fopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -6,10 +6,4 @@ CPV = $(CPP) ...@@ -6,10 +6,4 @@ CPV = $(CPP)
else else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
\ No newline at end of file
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -qopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -8,10 +8,4 @@ CPV = $(CPP) ...@@ -8,10 +8,4 @@ CPV = $(CPP)
else else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
\ No newline at end of file
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -fopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -8,10 +8,4 @@ CPV = $(CPP) ...@@ -8,10 +8,4 @@ CPV = $(CPP)
else else
CFLAGS_VECTOR = CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
\ No newline at end of file
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -fopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -10,8 +10,3 @@ CFLAGS_VECTOR = ...@@ -10,8 +10,3 @@ CFLAGS_VECTOR =
CPV = $(CPP) CPV = $(CPP)
endif endif
ifeq (NUM_THREADS,$(findstring NUM_THREADS,$(CONFIGVARS)))
OPTIMIZE += -fopenmp
else
OPTIMIZE += -Wno-unknown-pragmas
endif
...@@ -61,9 +61,6 @@ ...@@ -61,9 +61,6 @@
* The non-periodic dimension is selected via the GRAVITY_TALLBOX flag. Also in this case, arbitrarily stretched boxes can * The non-periodic dimension is selected via the GRAVITY_TALLBOX flag. Also in this case, arbitrarily stretched boxes can
* be used, and one can use PM_ZOOM_OPTIMIZED and/or FFT_COLUMN_BASED if desired. * be used, and one can use PM_ZOOM_OPTIMIZED and/or FFT_COLUMN_BASED if desired.
* *
* Much of the code is multi-threaded, so there should be some speed-up if OpenMP is used with NUM_THREADS > 1, but the
* benefit may be limited because the data transfer steps (which weigh in quite heavily) are not accelerated by this.
*
* If eight times the particle load per processor exceeds 2^31 ~ 2 billion, one should activate NUMPART_PER_TASK_LARGE. * If eight times the particle load per processor exceeds 2^31 ~ 2 billion, one should activate NUMPART_PER_TASK_LARGE.
* The code will check this condition and terminate if this is violated, so there should hopefully be no severe risk * The code will check this condition and terminate if this is violated, so there should hopefully be no severe risk
* to accidentally forget this. * to accidentally forget this.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment