Update copyright year. Formatting.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <timing.h>
|
#include <timing.h>
|
||||||
|
|
||||||
double copy(
|
double copy(
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <timing.h>
|
#include <timing.h>
|
||||||
|
|
||||||
double daxpy(
|
double daxpy(
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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_
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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_
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <timing.h>
|
#include <timing.h>
|
||||||
|
|
||||||
double init(
|
double init(
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <timing.h>
|
#include <timing.h>
|
||||||
|
|
||||||
double sdaxpy(
|
double sdaxpy(
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <timing.h>
|
#include <timing.h>
|
||||||
|
|
||||||
double striad(
|
double striad(
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <timing.h>
|
#include <timing.h>
|
||||||
|
|
||||||
double sum(
|
double sum(
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <timing.h>
|
#include <timing.h>
|
||||||
|
|
||||||
double triad(
|
double triad(
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <timing.h>
|
#include <timing.h>
|
||||||
|
|
||||||
double update(
|
double update(
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
*
|
*
|
||||||
* =======================================================================================
|
* =======================================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user