-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdistopia.h
More file actions
56 lines (48 loc) · 4.16 KB
/
Copy pathdistopia.h
File metadata and controls
56 lines (48 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// Created by richard on 13/08/23.
//
#include <vector>
#include <string>
#ifndef DISTOPIA2_THE_HIGHWAY_WARRIOR_DISTOPIA_H
#define DISTOPIA2_THE_HIGHWAY_WARRIOR_DISTOPIA_H
// set EMU 128 to broken so that HWY_SCALAR is the baseline dispatch target
#define HWY_BROKEN_EMU128 1
#define HWY_DISABLE_TARGETS (HWY_SVE | HWY_SVE2)
// compile all attainable targets
#define HWY_COMPILE_ALL_ATTAINABLE
namespace distopia {
template <typename T> void DistancesNoBox(const T *a, const T *b, int n, T *out);
template <typename T> void DistancesOrtho(const T *a, const T *b, int n, const T *box, T *out);
template <typename T> void DistancesTriclinic(const T *a, const T *b, int n, const T *box, T *out);
template <typename T> void AnglesNoBox(const T *a, const T *b, const T *c, int n, T *out);
template <typename T> void AnglesOrtho(const T *a, const T *b, const T *c, int n, const T *box, T *out);
template <typename T> void AnglesTriclinic(const T *a, const T *b, const T *c, int n, const T *box, T *out);
template <typename T> void DihedralsNoBox(const T *a, const T *b, const T *c, const T *d, int n, T *out);
template <typename T> void DihedralsOrtho(const T *a, const T *b, const T *c, const T *d, int n, const T *box, T *out);
template <typename T> void DihedralsTriclinic(const T *a, const T *b, const T *c, const T *d, int n, const T *box, T *out);
template <typename T> void DistanceArrayNoBox(const T *a, const T *b, int na, int nb, T *out);
template <typename T> void DistanceArrayOrtho(const T *a, const T *b, int na, int nb, const T *box, T *out);
template <typename T> void DistanceArrayTriclinic(const T *a, const T *b, int na, int nb, const T *box, T *out);
template <typename T> void SelfDistanceArrayNoBox(const T *a, int n, T *out);
template <typename T> void SelfDistanceArrayOrtho(const T *a, int n, const T *box, T *out);
template <typename T> void SelfDistanceArrayTriclinic(const T *a, int n, const T *box, T *out);
template <typename T> void DistancesNoBoxIdx(const T *coords, const int *a_idx, const int *b_idx, int n, T *out);
template <typename T> void DistancesOrthoIdx(const T *coords, const int *a_idx, const int *b_idx, int n, const T *box, T *out);
template <typename T> void DistancesTriclinicIdx(const T *coords, const int *a_idx, const int *b_idx, int n, const T *box, T *out);
template <typename T> void AnglesNoBoxIdx(const T *coords, const int *a_idx, const int *b_idx, const int *c_idx, int n, T *out);
template <typename T> void AnglesOrthoIdx(const T *coords, const int *a_idx, const int *b_idx, const int *c_idx, int n, const T *box, T *out);
template <typename T> void AnglesTriclinicIdx(const T *coords, const int *a_idx, const int *b_idx, const int *c_idx, int n, const T *box, T *out);
template <typename T> void DihedralsNoBoxIdx(const T *coords, const int *a_idx, const int *b_idx, const int *c_idx, const int *d_idx, int n, T *out);
template <typename T> void DihedralsOrthoIdx(const T *coords, const int *a_idx, const int *b_idx, const int *c_idx, const int *d_idx, int n, const T *box, T *out);
template <typename T> void DihedralsTriclinicIdx(const T *coords, const int *a_idx, const int *b_idx, const int *c_idx, const int *d_idx, int n, const T *box, T *out);
template <typename T> void DistanceArrayNoBoxIdx(const T *coords, const int *a_idx, const int *b_idx, int na, int nb, T *out);
template <typename T> void DistanceArrayOrthoIdx(const T *coords, const int *a_idx, const int *b_idx, int na, int nb, const T *box, T *out);
template <typename T> void DistanceArrayTriclinicIdx(const T *coords, const int *a_idx, const int *b_idx, int na, int nb, const T *box, T *out);
template <typename T> void SelfDistanceArrayNoBoxIdx(const T *coords, const int *idx, int n, T *out);
template <typename T> void SelfDistanceArrayOrthoIdx(const T *coords, const int *idx, int n, const T *box, T *out);
template <typename T> void SelfDistanceArrayTriclinicIdx(const T *coords, const int *idx, int n, const T *box, T *out);
int GetNFloatLanes();
int GetNDoubleLanes();
std::vector<std::string> DistopiaSupportedAndGeneratedTargets();
}
#endif //DISTOPIA2_THE_HIGHWAY_WARRIOR_DISTOPIA_H