From 0c225570638464f3e314e8a4f34d2133e266f31d Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Thu, 10 Dec 2020 06:37:42 +0100 Subject: [PATCH] Update copyright year. Formatting. --- src/affinity.c | 15 +++++---------- src/allocate.c | 3 +-- src/copy.c | 1 - src/daxpy.c | 1 - src/includes/affinity.h | 3 +-- src/includes/allocate.h | 3 +-- src/includes/likwid-marker.h | 3 +-- src/includes/timing.h | 3 +-- src/init.c | 1 - src/main.c | 1 - src/sdaxpy.c | 1 - src/striad.c | 1 - src/sum.c | 1 - src/timing.c | 3 +-- src/triad.c | 1 - src/update.c | 1 - util/bwBench-likwid.c | 1 - util/bwBench.c | 1 - 18 files changed, 11 insertions(+), 33 deletions(-) diff --git a/src/affinity.c b/src/affinity.c index 19f4358..630afc3 100644 --- a/src/affinity.c +++ b/src/affinity.c @@ -2,7 +2,7 @@ * ======================================================================================= * * Author: Jan Eitzinger (je), jan.eitzinger@fau.de - * Copyright (c) 2019 RRZE, University Erlangen-Nuremberg + * Copyright (c) 2020 RRZE, University Erlangen-Nuremberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #ifdef __linux__ #ifdef _OPENMP #include @@ -38,8 +37,7 @@ #define MAX_NUM_THREADS 128 #define gettid() syscall(SYS_gettid) -static int -getProcessorID(cpu_set_t* cpu_set) +static int getProcessorID(cpu_set_t* cpu_set) { int processorId; @@ -53,8 +51,7 @@ getProcessorID(cpu_set_t* cpu_set) return processorId; } -int -affinity_getProcessorId() +int affinity_getProcessorId() { cpu_set_t cpu_set; CPU_ZERO(&cpu_set); @@ -63,8 +60,7 @@ affinity_getProcessorId() return getProcessorID(&cpu_set); } -void -affinity_pinThread(int processorId) +void affinity_pinThread(int processorId) { cpu_set_t cpuset; pthread_t thread; @@ -75,8 +71,7 @@ affinity_pinThread(int processorId) pthread_setaffinity_np(thread, sizeof(cpu_set_t), &cpuset); } -void -affinity_pinProcess(int processorId) +void affinity_pinProcess(int processorId) { cpu_set_t cpuset; diff --git a/src/allocate.c b/src/allocate.c index 2ad9236..c5781f9 100644 --- a/src/allocate.c +++ b/src/allocate.c @@ -2,7 +2,7 @@ * ======================================================================================= * * Author: Jan Eitzinger (je), jan.eitzinger@fau.de - * Copyright (c) 2019 RRZE, University Erlangen-Nuremberg + * Copyright (c) 2020 RRZE, University Erlangen-Nuremberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include #include #include diff --git a/src/copy.c b/src/copy.c index b5f20f8..b9dd9fe 100644 --- a/src/copy.c +++ b/src/copy.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include double copy( diff --git a/src/daxpy.c b/src/daxpy.c index 2e2ebe5..d8ef22a 100644 --- a/src/daxpy.c +++ b/src/daxpy.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include double daxpy( diff --git a/src/includes/affinity.h b/src/includes/affinity.h index 80f531e..3ca87cf 100644 --- a/src/includes/affinity.h +++ b/src/includes/affinity.h @@ -2,7 +2,7 @@ * ======================================================================================= * * Author: Jan Eitzinger (je), jan.eitzinger@fau.de - * Copyright (c) 2019 RRZE, University Erlangen-Nuremberg + * Copyright (c) 2020 RRZE, University Erlangen-Nuremberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #ifndef AFFINITY_H #define AFFINITY_H diff --git a/src/includes/allocate.h b/src/includes/allocate.h index 1e83fe0..1732898 100644 --- a/src/includes/allocate.h +++ b/src/includes/allocate.h @@ -2,7 +2,7 @@ * ======================================================================================= * * Author: Jan Eitzinger (je), jan.eitzinger@fau.de - * Copyright (c) 2019 RRZE, University Erlangen-Nuremberg + * Copyright (c) 2020 RRZE, University Erlangen-Nuremberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #ifndef __ALLOCATE_H_ #define __ALLOCATE_H_ diff --git a/src/includes/likwid-marker.h b/src/includes/likwid-marker.h index 13d72eb..a35b495 100644 --- a/src/includes/likwid-marker.h +++ b/src/includes/likwid-marker.h @@ -2,7 +2,7 @@ * ======================================================================================= * * Author: Jan Eitzinger (je), jan.eitzinger@fau.de - * Copyright (c) 2019 RRZE, University Erlangen-Nuremberg + * Copyright (c) 2020 RRZE, University Erlangen-Nuremberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #ifndef LIKWID_MARKERS_H #define LIKWID_MARKERS_H diff --git a/src/includes/timing.h b/src/includes/timing.h index b7260cb..6d9fb93 100644 --- a/src/includes/timing.h +++ b/src/includes/timing.h @@ -2,7 +2,7 @@ * ======================================================================================= * * Author: Jan Eitzinger (je), jan.eitzinger@fau.de - * Copyright (c) 2019 RRZE, University Erlangen-Nuremberg + * Copyright (c) 2020 RRZE, University Erlangen-Nuremberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #ifndef __TIMING_H_ #define __TIMING_H_ diff --git a/src/init.c b/src/init.c index fe7e20c..81a1b3d 100644 --- a/src/init.c +++ b/src/init.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include double init( diff --git a/src/main.c b/src/main.c index 475cb24..7839ce9 100644 --- a/src/main.c +++ b/src/main.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include #include #include diff --git a/src/sdaxpy.c b/src/sdaxpy.c index 730d5d2..8e292f1 100644 --- a/src/sdaxpy.c +++ b/src/sdaxpy.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include double sdaxpy( diff --git a/src/striad.c b/src/striad.c index 1c8a041..3c4bfa2 100644 --- a/src/striad.c +++ b/src/striad.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include double striad( diff --git a/src/sum.c b/src/sum.c index b91ee68..8075718 100644 --- a/src/sum.c +++ b/src/sum.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include double sum( diff --git a/src/timing.c b/src/timing.c index 2daf260..aad74cb 100644 --- a/src/timing.c +++ b/src/timing.c @@ -2,7 +2,7 @@ * ======================================================================================= * * Author: Jan Eitzinger (je), jan.eitzinger@fau.de - * Copyright (c) 2019 RRZE, University Erlangen-Nuremberg + * Copyright (c) 2020 RRZE, University Erlangen-Nuremberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include #include diff --git a/src/triad.c b/src/triad.c index a46c192..d25db3b 100644 --- a/src/triad.c +++ b/src/triad.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include double triad( diff --git a/src/update.c b/src/update.c index f74c020..70009e5 100644 --- a/src/update.c +++ b/src/update.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #include double update( diff --git a/util/bwBench-likwid.c b/util/bwBench-likwid.c index f043aad..efae340 100644 --- a/util/bwBench-likwid.c +++ b/util/bwBench-likwid.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #define _GNU_SOURCE #include #include diff --git a/util/bwBench.c b/util/bwBench.c index e269bca..0a3078b 100644 --- a/util/bwBench.c +++ b/util/bwBench.c @@ -24,7 +24,6 @@ * * ======================================================================================= */ - #define _GNU_SOURCE #include #include