summaryrefslogtreecommitdiffstats
path: root/Tests/FindBLAS/Test/main.c
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-04-23 15:17:48 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2020-04-23 17:59:33 (GMT)
commit85a9813a764f7f451e1bf8422eafc5e5448e959b (patch)
tree49d8792a069e49af0e97630aea5c92938ca0b7a1 /Tests/FindBLAS/Test/main.c
parent5e70315fa89ceb99a6165620c53de25944d47cdf (diff)
downloadCMake-85a9813a764f7f451e1bf8422eafc5e5448e959b.zip
CMake-85a9813a764f7f451e1bf8422eafc5e5448e959b.tar.gz
CMake-85a9813a764f7f451e1bf8422eafc5e5448e959b.tar.bz2
BLAS: Provide the BLAS::BLAS import target
Diffstat (limited to 'Tests/FindBLAS/Test/main.c')
-rw-r--r--Tests/FindBLAS/Test/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/FindBLAS/Test/main.c b/Tests/FindBLAS/Test/main.c
new file mode 100644
index 0000000..7360dee
--- /dev/null
+++ b/Tests/FindBLAS/Test/main.c
@@ -0,0 +1,14 @@
+#include <assert.h>
+#include <string.h>
+
+// declare what parts of the blas C-API we need
+void cblas_dswap(const int N, double* X, const int incX, double* Y,
+ const int incY);
+
+int main()
+{
+ double x[4] = { 1, 2, 3, 4 };
+ double y[4] = { 8, 7, 7, 6 };
+ cblas_dswap(4, x, 1, y, 1);
+ return 0;
+}