File: debug.h

package info (click to toggle)
gpaw 25.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,888 kB
  • sloc: python: 174,804; ansic: 17,564; cpp: 5,668; sh: 972; csh: 139; makefile: 45
file content (22 lines) | stat: -rw-r--r-- 1,094 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef GPU_DEBUG_H
#define GPU_DEBUG_H

#define GPAW_MALLOC(T, n) (T*)(malloc((n) * sizeof(T)))

extern "C" void bmgs_paste_cpu(const double *a_cpu, const int sizea[3],
                               double *b_cpu, const int sizeb[3],
                               const int startb[3]);
extern "C" void bmgs_pastez_cpu(const double *a_cpu, const int sizea[3],
                                double *b_cpu, const int sizeb[3],
                                const int startb[3]);
extern "C" void bmgs_cut_cpu(const double *a_cpu, const int sizea[3],
                             const int starta[3],
                             double *b_cpu, const int sizeb[3]);
extern "C" void bmgs_cutz_cpu(const double *a_cpu, const int sizea[3],
                              const int starta[3],
                              double *b_cpu, const int sizeb[3]);
extern "C" void bmgs_cutmz_cpu(const void *a_cpu, const int sizea[3],
                               const int starta[3],
                               void *b_cpu, const int sizeb[3],
                               void *phase);
#endif