Skip to content

Commit f153f30

Browse files
jeffhammonddalcinl
authored andcommitted
Support for Cray OpenSHMEM-X 11
1 parent ad7adec commit f153f30

File tree

4 files changed

+637
-40
lines changed

4 files changed

+637
-40
lines changed

src/libshmem/compat/cray.h

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,12 @@
11
#ifndef PySHMEM_COMPAT_CRAY_H
22
#define PySHMEM_COMPAT_CRAY_H
33

4-
static
5-
void shmem_complexf_sum_to_all(float _Complex *dest, const float _Complex *source, int nreduce,
6-
int PE_start, int logPE_stride, int PE_size,
7-
float _Complex *pWrk, long *pSync)
8-
{
9-
shmem_float_sum_to_all((float*)dest, (float*)source, 2*nreduce,
10-
PE_start, logPE_stride, PE_size,
11-
(float*)pWrk, pSync);
12-
}
13-
14-
static
15-
void shmem_complexd_sum_to_all(double _Complex *dest, const double _Complex *source, int nreduce,
16-
int PE_start, int logPE_stride, int PE_size,
17-
double _Complex *pWrk, long *pSync)
18-
{
19-
shmem_double_sum_to_all((double*)dest, (double*)source, 2*nreduce,
20-
PE_start, logPE_stride, PE_size,
21-
(double*)pWrk, pSync);
22-
}
23-
24-
static
25-
void shmem_complexf_prod_to_all(float _Complex *dest, const float _Complex *source, int nreduce,
26-
int PE_start, int logPE_stride, int PE_size,
27-
float _Complex *pWrk, long *pSync)
28-
{
29-
(void)dest; (void)source; (void)nreduce;
30-
(void)PE_start; (void)logPE_stride;
31-
(void)PE_size; (void)pWrk; (void)pSync;
32-
PySHMEM_UNAVAILABLE;
33-
}
4+
#if CRAY_SHMEM_MAJOR_VERSION == 9
5+
#include "cray09.h"
6+
#endif
347

35-
static
36-
void shmem_complexd_prod_to_all(double _Complex *dest, const double _Complex *source, int nreduce,
37-
int PE_start, int logPE_stride, int PE_size,
38-
double _Complex *pWrk, long *pSync)
39-
{
40-
(void)dest; (void)source; (void)nreduce;
41-
(void)PE_start; (void)logPE_stride; (void)PE_size;
42-
(void)pWrk; (void)pSync;
43-
PySHMEM_UNAVAILABLE;
44-
}
8+
#if CRAY_SHMEM_MAJOR_VERSION == 11
9+
#include "cray11.h"
10+
#endif
4511

4612
#endif

src/libshmem/compat/cray09.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
static
2+
void shmem_complexf_sum_to_all(float _Complex *dest, const float _Complex *source, int nreduce,
3+
int PE_start, int logPE_stride, int PE_size,
4+
float _Complex *pWrk, long *pSync)
5+
{
6+
shmem_float_sum_to_all((float*)dest, (float*)source, 2*nreduce,
7+
PE_start, logPE_stride, PE_size,
8+
(float*)pWrk, pSync);
9+
}
10+
11+
static
12+
void shmem_complexd_sum_to_all(double _Complex *dest, const double _Complex *source, int nreduce,
13+
int PE_start, int logPE_stride, int PE_size,
14+
double _Complex *pWrk, long *pSync)
15+
{
16+
shmem_double_sum_to_all((double*)dest, (double*)source, 2*nreduce,
17+
PE_start, logPE_stride, PE_size,
18+
(double*)pWrk, pSync);
19+
}
20+
21+
static
22+
void shmem_complexf_prod_to_all(float _Complex *dest, const float _Complex *source, int nreduce,
23+
int PE_start, int logPE_stride, int PE_size,
24+
float _Complex *pWrk, long *pSync)
25+
{
26+
(void)dest; (void)source; (void)nreduce;
27+
(void)PE_start; (void)logPE_stride;
28+
(void)PE_size; (void)pWrk; (void)pSync;
29+
PySHMEM_UNAVAILABLE;
30+
}
31+
32+
static
33+
void shmem_complexd_prod_to_all(double _Complex *dest, const double _Complex *source, int nreduce,
34+
int PE_start, int logPE_stride, int PE_size,
35+
double _Complex *pWrk, long *pSync)
36+
{
37+
(void)dest; (void)source; (void)nreduce;
38+
(void)PE_start; (void)logPE_stride; (void)PE_size;
39+
(void)pWrk; (void)pSync;
40+
PySHMEM_UNAVAILABLE;
41+
}

0 commit comments

Comments
 (0)