Update copyright year. Formatting.

This commit is contained in:
Jan Eitzinger
2020-12-10 06:37:42 +01:00
parent 5f4983059d
commit 0c22557063
18 changed files with 11 additions and 33 deletions

View File

@@ -2,7 +2,7 @@
* ======================================================================================= * =======================================================================================
* *
* Author: Jan Eitzinger (je), jan.eitzinger@fau.de * 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 * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#ifdef __linux__ #ifdef __linux__
#ifdef _OPENMP #ifdef _OPENMP
#include <stdlib.h> #include <stdlib.h>
@@ -38,8 +37,7 @@
#define MAX_NUM_THREADS 128 #define MAX_NUM_THREADS 128
#define gettid() syscall(SYS_gettid) #define gettid() syscall(SYS_gettid)
static int static int getProcessorID(cpu_set_t* cpu_set)
getProcessorID(cpu_set_t* cpu_set)
{ {
int processorId; int processorId;
@@ -53,8 +51,7 @@ getProcessorID(cpu_set_t* cpu_set)
return processorId; return processorId;
} }
int int affinity_getProcessorId()
affinity_getProcessorId()
{ {
cpu_set_t cpu_set; cpu_set_t cpu_set;
CPU_ZERO(&cpu_set); CPU_ZERO(&cpu_set);
@@ -63,8 +60,7 @@ affinity_getProcessorId()
return getProcessorID(&cpu_set); return getProcessorID(&cpu_set);
} }
void void affinity_pinThread(int processorId)
affinity_pinThread(int processorId)
{ {
cpu_set_t cpuset; cpu_set_t cpuset;
pthread_t thread; pthread_t thread;
@@ -75,8 +71,7 @@ affinity_pinThread(int processorId)
pthread_setaffinity_np(thread, sizeof(cpu_set_t), &cpuset); pthread_setaffinity_np(thread, sizeof(cpu_set_t), &cpuset);
} }
void void affinity_pinProcess(int processorId)
affinity_pinProcess(int processorId)
{ {
cpu_set_t cpuset; cpu_set_t cpuset;

View File

@@ -2,7 +2,7 @@
* ======================================================================================= * =======================================================================================
* *
* Author: Jan Eitzinger (je), jan.eitzinger@fau.de * 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 * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <timing.h> #include <timing.h>
double copy( double copy(

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <timing.h> #include <timing.h>
double daxpy( double daxpy(

View File

@@ -2,7 +2,7 @@
* ======================================================================================= * =======================================================================================
* *
* Author: Jan Eitzinger (je), jan.eitzinger@fau.de * 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 * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#ifndef AFFINITY_H #ifndef AFFINITY_H
#define AFFINITY_H #define AFFINITY_H

View File

@@ -2,7 +2,7 @@
* ======================================================================================= * =======================================================================================
* *
* Author: Jan Eitzinger (je), jan.eitzinger@fau.de * 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 * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#ifndef __ALLOCATE_H_ #ifndef __ALLOCATE_H_
#define __ALLOCATE_H_ #define __ALLOCATE_H_

View File

@@ -2,7 +2,7 @@
* ======================================================================================= * =======================================================================================
* *
* Author: Jan Eitzinger (je), jan.eitzinger@fau.de * 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 * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#ifndef LIKWID_MARKERS_H #ifndef LIKWID_MARKERS_H
#define LIKWID_MARKERS_H #define LIKWID_MARKERS_H

View File

@@ -2,7 +2,7 @@
* ======================================================================================= * =======================================================================================
* *
* Author: Jan Eitzinger (je), jan.eitzinger@fau.de * 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 * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#ifndef __TIMING_H_ #ifndef __TIMING_H_
#define __TIMING_H_ #define __TIMING_H_

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <timing.h> #include <timing.h>
double init( double init(

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <timing.h> #include <timing.h>
double sdaxpy( double sdaxpy(

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <timing.h> #include <timing.h>
double striad( double striad(

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <timing.h> #include <timing.h>
double sum( double sum(

View File

@@ -2,7 +2,7 @@
* ======================================================================================= * =======================================================================================
* *
* Author: Jan Eitzinger (je), jan.eitzinger@fau.de * 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 * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <timing.h> #include <timing.h>
double triad( double triad(

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#include <timing.h> #include <timing.h>
double update( double update(

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -24,7 +24,6 @@
* *
* ======================================================================================= * =======================================================================================
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>