-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad7adec
commit f153f30
Showing
4 changed files
with
637 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,12 @@ | ||
#ifndef PySHMEM_COMPAT_CRAY_H | ||
#define PySHMEM_COMPAT_CRAY_H | ||
|
||
static | ||
void shmem_complexf_sum_to_all(float _Complex *dest, const float _Complex *source, int nreduce, | ||
int PE_start, int logPE_stride, int PE_size, | ||
float _Complex *pWrk, long *pSync) | ||
{ | ||
shmem_float_sum_to_all((float*)dest, (float*)source, 2*nreduce, | ||
PE_start, logPE_stride, PE_size, | ||
(float*)pWrk, pSync); | ||
} | ||
|
||
static | ||
void shmem_complexd_sum_to_all(double _Complex *dest, const double _Complex *source, int nreduce, | ||
int PE_start, int logPE_stride, int PE_size, | ||
double _Complex *pWrk, long *pSync) | ||
{ | ||
shmem_double_sum_to_all((double*)dest, (double*)source, 2*nreduce, | ||
PE_start, logPE_stride, PE_size, | ||
(double*)pWrk, pSync); | ||
} | ||
|
||
static | ||
void shmem_complexf_prod_to_all(float _Complex *dest, const float _Complex *source, int nreduce, | ||
int PE_start, int logPE_stride, int PE_size, | ||
float _Complex *pWrk, long *pSync) | ||
{ | ||
(void)dest; (void)source; (void)nreduce; | ||
(void)PE_start; (void)logPE_stride; | ||
(void)PE_size; (void)pWrk; (void)pSync; | ||
PySHMEM_UNAVAILABLE; | ||
} | ||
#if CRAY_SHMEM_MAJOR_VERSION == 9 | ||
#include "cray09.h" | ||
#endif | ||
|
||
static | ||
void shmem_complexd_prod_to_all(double _Complex *dest, const double _Complex *source, int nreduce, | ||
int PE_start, int logPE_stride, int PE_size, | ||
double _Complex *pWrk, long *pSync) | ||
{ | ||
(void)dest; (void)source; (void)nreduce; | ||
(void)PE_start; (void)logPE_stride; (void)PE_size; | ||
(void)pWrk; (void)pSync; | ||
PySHMEM_UNAVAILABLE; | ||
} | ||
#if CRAY_SHMEM_MAJOR_VERSION == 11 | ||
#include "cray11.h" | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
static | ||
void shmem_complexf_sum_to_all(float _Complex *dest, const float _Complex *source, int nreduce, | ||
int PE_start, int logPE_stride, int PE_size, | ||
float _Complex *pWrk, long *pSync) | ||
{ | ||
shmem_float_sum_to_all((float*)dest, (float*)source, 2*nreduce, | ||
PE_start, logPE_stride, PE_size, | ||
(float*)pWrk, pSync); | ||
} | ||
|
||
static | ||
void shmem_complexd_sum_to_all(double _Complex *dest, const double _Complex *source, int nreduce, | ||
int PE_start, int logPE_stride, int PE_size, | ||
double _Complex *pWrk, long *pSync) | ||
{ | ||
shmem_double_sum_to_all((double*)dest, (double*)source, 2*nreduce, | ||
PE_start, logPE_stride, PE_size, | ||
(double*)pWrk, pSync); | ||
} | ||
|
||
static | ||
void shmem_complexf_prod_to_all(float _Complex *dest, const float _Complex *source, int nreduce, | ||
int PE_start, int logPE_stride, int PE_size, | ||
float _Complex *pWrk, long *pSync) | ||
{ | ||
(void)dest; (void)source; (void)nreduce; | ||
(void)PE_start; (void)logPE_stride; | ||
(void)PE_size; (void)pWrk; (void)pSync; | ||
PySHMEM_UNAVAILABLE; | ||
} | ||
|
||
static | ||
void shmem_complexd_prod_to_all(double _Complex *dest, const double _Complex *source, int nreduce, | ||
int PE_start, int logPE_stride, int PE_size, | ||
double _Complex *pWrk, long *pSync) | ||
{ | ||
(void)dest; (void)source; (void)nreduce; | ||
(void)PE_start; (void)logPE_stride; (void)PE_size; | ||
(void)pWrk; (void)pSync; | ||
PySHMEM_UNAVAILABLE; | ||
} |
Oops, something went wrong.