2015-03-04 03:12:19 +00:00
|
|
|
//
|
|
|
|
// Grid.cpp
|
|
|
|
// simd
|
|
|
|
//
|
|
|
|
// Created by Peter Boyle on 09/05/2014.
|
|
|
|
// Copyright (c) 2014 University of Edinburgh. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GRID_V3_H
|
|
|
|
#define GRID_V3_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <complex>
|
|
|
|
#include <vector>
|
|
|
|
#include <iostream>
|
|
|
|
#include <cassert>
|
|
|
|
#include <random>
|
|
|
|
#include <functional>
|
|
|
|
#include <stdlib.h>
|
2015-03-04 04:13:07 +00:00
|
|
|
#include <sys/time.h>
|
|
|
|
#include <stdio.h>
|
2015-03-04 13:25:23 +00:00
|
|
|
#include <signal.h>
|
2015-03-04 03:12:19 +00:00
|
|
|
|
2015-03-04 04:13:07 +00:00
|
|
|
#include <Grid_config.h>
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////
|
|
|
|
// Tunable header includes
|
|
|
|
////////////////////////////////////////////////////////////
|
2015-03-04 13:44:33 +00:00
|
|
|
|
2015-03-04 04:13:07 +00:00
|
|
|
#ifdef HAVE_OPENMP
|
|
|
|
#define OMP
|
2015-03-04 03:12:19 +00:00
|
|
|
#include <omp.h>
|
|
|
|
#endif
|
|
|
|
|
2015-03-04 04:13:07 +00:00
|
|
|
#ifdef HAVE_MALLOC_MALLOC_H
|
2015-03-04 03:12:19 +00:00
|
|
|
#include <malloc/malloc.h>
|
2015-03-04 04:13:07 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_MALLOC_H
|
2015-03-04 03:12:19 +00:00
|
|
|
#include <malloc.h>
|
|
|
|
#endif
|
|
|
|
|
2015-03-04 04:13:07 +00:00
|
|
|
|
2015-03-04 05:31:44 +00:00
|
|
|
#include <Grid_simd.h>
|
|
|
|
#include <Grid_math_types.h>
|
2015-03-04 05:34:15 +00:00
|
|
|
#include <Grid_Cartesian.h>
|
2015-03-04 05:31:44 +00:00
|
|
|
#include <Grid_aligned_allocator.h>
|
|
|
|
#include <Grid_aligned_allocator.h>
|
|
|
|
#include <Grid_Lattice.h>
|
|
|
|
#include <Grid_QCD.h>
|
2015-03-04 03:12:19 +00:00
|
|
|
|
|
|
|
namespace dpo {
|
|
|
|
|
|
|
|
void Grid_init(void);
|
2015-03-04 05:31:44 +00:00
|
|
|
double usecond(void);
|
|
|
|
void Grid_sa_signal_handler(int sig,siginfo_t *si,void * ptr);
|
|
|
|
void Grid_debug_handler_init(void);
|
2015-03-04 03:12:19 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|