QUDA  v1.1.0
A library for QCD on GPUs
layout_hyper.h
Go to the documentation of this file.
1 #pragma once
2 
3 // for QIO_HAS_EXTENDED_LAYOUT, QIO_Index
4 #include <qio.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 /* These routines get a quda_* prefix to avoid
10  potential linker conflicts, with MILC */
11 int quda_setup_layout(int len[], int nd, int numnodes, int single_parity);
12 extern int quda_this_node;
13 
14 #ifdef QIO_HAS_EXTENDED_LAYOUT
15 int quda_node_number_ext(const int x[], void *arg);
16 QIO_Index quda_node_index_ext(const int x[], void *arg);
17 void quda_get_coords_ext(int x[], int node, QIO_Index index, void *arg);
18 QIO_Index quda_num_sites_ext(int node, void *arg);
19 #else
20 int quda_node_number(const int x[]);
21 int quda_node_index(const int x[]);
22 void quda_get_coords(int x[], int node, int index);
23 int quda_num_sites(int node);
24 #endif
25 
26 #ifdef __cplusplus
27 }
28 #endif
void quda_get_coords(int x[], int node, int index)
int quda_node_index(const int x[])
int quda_num_sites(int node)
int quda_this_node
Definition: qio_field.cpp:12
int quda_setup_layout(int len[], int nd, int numnodes, int single_parity)
int quda_node_number(const int x[])
__host__ __device__ ValueType arg(const complex< ValueType > &z)
Returns the phase angle of z.