-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Snapshot of kokkos-kernels.git from commit 4ee5f3c6dbd0981f6d8c7a9b2b…
…1763439cb56039 From repository at git@github.com:kokkos/kokkos-kernels.git At commit: commit 4ee5f3c6dbd0981f6d8c7a9b2b1763439cb56039 Merge: 94456cf 6a79032 Author: Nathan Ellingwood <ndellin@sandia.gov> Date: Tue Feb 5 17:13:18 2019 -0700 Merge branch 'develop' for 2.8.00 Part of Kokkos C++ Performance Portability Programming EcoSystem 2.8
- Loading branch information
1 parent
2a24058
commit c5c8608
Showing
158 changed files
with
3,847 additions
and
666 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
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
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,38 @@ | ||
INCLUDE(CheckCXXSourceRuns) | ||
|
||
FUNCTION(CHECK_HOST_BLAS_RETURN_COMPLEX VARNAME) | ||
|
||
SET(CMAKE_REQUIRED_LIBRARIES ${TPL_BLAS_LIBRARIES}) | ||
|
||
SET(SOURCE | ||
" | ||
#include <complex> | ||
#define F77_BLAS_MANGLE${F77_BLAS_MANGLE} | ||
extern \"C\" { | ||
std::complex<double> F77_BLAS_MANGLE(zdotc,ZDOTC)( | ||
const int* n, | ||
const std::complex<double> x[], const int* incx, | ||
const std::complex<double> y[], const int* incy); | ||
} | ||
int main() { | ||
const int NUM=2; | ||
const int INC=1; | ||
std::complex<double> f[NUM]; | ||
const std::complex<double> | ||
ONE = std::complex<double>(0.0,1.0), | ||
TWO = std::complex<double>(0.0,2.0); | ||
f[0] = ONE; | ||
f[1] = TWO; | ||
std::complex<double> ret | ||
= F77_BLAS_MANGLE(zdotc,ZDOTC)(&NUM, f, &INC, f, &INC); | ||
return (ret.real() == double(5.0) ? 0 : 1); | ||
} | ||
" | ||
) | ||
|
||
CHECK_CXX_SOURCE_RUNS("${SOURCE}" ${VARNAME}) | ||
|
||
ENDFUNCTION() |
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
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
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
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
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
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
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
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
Oops, something went wrong.