diff options
author | Igor S. Gerasimov <i.s.ger@ya.ru> | 2021-09-04 02:43:08 (GMT) |
---|---|---|
committer | Igor S. Gerasimov <i.s.ger@ya.ru> | 2021-10-05 14:41:36 (GMT) |
commit | 2cd94f3e57e843fa392f3c50d2c141c938b48112 (patch) | |
tree | ff4b7c4aa27112957b79abeac01dd1a35600f4f0 /Tests/FindLAPACK/Test | |
parent | 9b69307b56376e2bd0a82539562f9e59a808194b (diff) | |
download | CMake-2cd94f3e57e843fa392f3c50d2c141c938b48112.zip CMake-2cd94f3e57e843fa392f3c50d2c141c938b48112.tar.gz CMake-2cd94f3e57e843fa392f3c50d2c141c938b48112.tar.bz2 |
Find{BLAS,LAPACK}: Specify integer type in tests
Diffstat (limited to 'Tests/FindLAPACK/Test')
-rw-r--r-- | Tests/FindLAPACK/Test/main.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Tests/FindLAPACK/Test/main.c b/Tests/FindLAPACK/Test/main.c index 5873e7b..04eedea 100644 --- a/Tests/FindLAPACK/Test/main.c +++ b/Tests/FindLAPACK/Test/main.c @@ -1,8 +1,11 @@ #include <assert.h> #include <string.h> +typedef int blas_int; + // declare what parts of the lapack C-API we need -void dgesv_(int*, int*, double*, int*, int*, double*, int*, int*); +void dgesv_(blas_int*, blas_int*, double*, blas_int*, blas_int*, double*, + blas_int*, blas_int*); int main() { @@ -10,11 +13,11 @@ int main() 0, 1, 2, 3, 4, 5, 6, 7, }; double B[2] = { 0, 5 }; - int ipiv[2] = { 0, 0 }; - int info = 0; + blas_int ipiv[2] = { 0, 0 }; + blas_int info = 0; - int dim = 2; - int numCols = 1; + blas_int dim = 2; + blas_int numCols = 1; dgesv_(&dim, &numCols, A, &dim, ipiv, B, &dim, &info); return 0; } |