Tests: Revise FindBLAS test to avoid cblas_ mangling

This commit is contained in:
Brad King
2020-10-02 11:32:45 -04:00
parent d77f8117cb
commit 20f7d51b7b
+5 -3
View File
@@ -2,13 +2,15 @@
#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);
void dswap_(int* N, double* X, int* incX, double* Y, 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);
int N = 4;
int incX = 1;
int incY = 1;
dswap_(&N, x, &incX, y, &incY);
return 0;
}