Skip to content

Commit

Permalink
Merge pull request RRZE-HPC#217 from RRZE-HPC/unstable-power9
Browse files Browse the repository at this point in the history
LIKWID support for POWER8 and POWER9 systems
  • Loading branch information
TomTheBear authored Nov 9, 2019
2 parents 87ad0ff + 4646755 commit 283f72f
Show file tree
Hide file tree
Showing 104 changed files with 8,783 additions and 267 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ OBJ := $(filter-out $(BUILD_DIR)/access_x86_pci.o,$(OBJ))
else
OBJ := $(filter-out $(BUILD_DIR)/loadDataARM.o,$(OBJ))
endif
ifeq ($(COMPILER),GCCPOWER)
OBJ := $(filter-out $(BUILD_DIR)/topology_cpuid.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86_msr.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86_pci.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/loadData.o,$(OBJ))
endif
ifeq ($(COMPILER),XLC)
OBJ := $(filter-out $(BUILD_DIR)/topology_cpuid.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86_msr.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86_pci.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/loadData.o,$(OBJ))
endif
PERFMONHEADERS = $(patsubst $(SRC_DIR)/includes/%.txt, $(BUILD_DIR)/%.h,$(wildcard $(SRC_DIR)/includes/*.txt))
OBJ_LUA = $(wildcard ./ext/lua/$(COMPILER)/*.o)
OBJ_HWLOC = $(wildcard ./ext/hwloc/$(COMPILER)/*.o)
Expand Down
3 changes: 3 additions & 0 deletions bench/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ endif
ifeq ($(COMPILER),GCCARMv8)
BENCH_DIR = ./armv8
endif
ifeq ($(COMPILER),GCCPOWER)
BENCH_DIR = ./power
endif



Expand Down
5 changes: 5 additions & 0 deletions bench/likwid-bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ int main(int argc, char** argv)
binsertch(HLINE, 0, 80, '-');
binsertch(HLINE, 80, 1, '\n');
int (*ownprintf)(const char *format, ...);
#ifdef _ARCH_PPC
int clsize = 128;
#else
int clsize = sysconf (_SC_LEVEL1_DCACHE_LINESIZE);
#endif
char compilers[512] = "gcc,icc,pgcc";
char defcompilepath[512] = "/tmp";
char compilepath[513] = "";
Expand Down Expand Up @@ -453,6 +457,7 @@ int main(int argc, char** argv)
size_t newsize = 0;
size_t stride = test->stride;
int nrThreads = currentWorkgroup->numberOfThreads;
int clsize = 128;
size_t orig_size = currentWorkgroup->size;
if (i == 0)
{
Expand Down
2 changes: 1 addition & 1 deletion bench/perl/AsmGen.pl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ END
| LOOP SYMBOL INUMBER SREG block
{[
{FUNC => 'as::loop_entry',
ARGS => [$item{SYMBOL}[1],$item{SREG}[1]]},
ARGS => [$item{SYMBOL}[1],$item{INUMBER}[1][1]]},
$item{block},
{FUNC => 'as::loop_exit',
ARGS => [$item{SYMBOL}[1],$item{INUMBER}[1][1]]}
Expand Down
Loading

0 comments on commit 283f72f

Please sign in to comment.