Skip to content

Commit

Permalink
Update copyright year. Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
moebiusband73 committed Dec 10, 2020
1 parent 5f49830 commit 0c22557
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 33 deletions.
15 changes: 5 additions & 10 deletions src/affinity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#ifdef __linux__
#ifdef _OPENMP
#include <stdlib.h>
Expand All @@ -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;

Expand All @@ -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);
Expand All @@ -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;
Expand All @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/allocate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion src/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <timing.h>

double copy(
Expand Down
1 change: 0 additions & 1 deletion src/daxpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <timing.h>

double daxpy(
Expand Down
3 changes: 1 addition & 2 deletions src/includes/affinity.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#ifndef AFFINITY_H
#define AFFINITY_H

Expand Down
3 changes: 1 addition & 2 deletions src/includes/allocate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#ifndef __ALLOCATE_H_
#define __ALLOCATE_H_

Expand Down
3 changes: 1 addition & 2 deletions src/includes/likwid-marker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#ifndef LIKWID_MARKERS_H
#define LIKWID_MARKERS_H

Expand Down
3 changes: 1 addition & 2 deletions src/includes/timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#ifndef __TIMING_H_
#define __TIMING_H_

Expand Down
1 change: 0 additions & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <timing.h>

double init(
Expand Down
1 change: 0 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
Expand Down
1 change: 0 additions & 1 deletion src/sdaxpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <timing.h>

double sdaxpy(
Expand Down
1 change: 0 additions & 1 deletion src/striad.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <timing.h>

double striad(
Expand Down
1 change: 0 additions & 1 deletion src/sum.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <timing.h>

double sum(
Expand Down
3 changes: 1 addition & 2 deletions src/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <stdlib.h>
#include <time.h>

Expand Down
1 change: 0 additions & 1 deletion src/triad.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <timing.h>

double triad(
Expand Down
1 change: 0 additions & 1 deletion src/update.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#include <timing.h>

double update(
Expand Down
1 change: 0 additions & 1 deletion util/bwBench-likwid.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion util/bwBench.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*
* =======================================================================================
*/

#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
Expand Down

0 comments on commit 0c22557

Please sign in to comment.