File: gpu-align.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 (14 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef GPU_ALIGN_H
#define GPU_ALIGN_H

#if defined(__CUDACC__)
#define ALIGN(x)  __align__(x)
#else
#if defined(__GNUC__)
#define ALIGN(x)  __attribute__ ((aligned (x)))
#else
#define ALIGN(x)
#endif
#endif

#endif