From 4cba1bb348a08e4148af1bbe847e0c15cca03fa2 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Tue, 29 Dec 2020 16:53:02 -0500 Subject: [PATCH] if BLAS_ILP64 is #defined use 64-bit int `BLAS_ILP64` is the preprocessor symbol defined by BLAS++ There is currently no introspection of int size (ILP vs LP). BLAS++'s introspection will not work when cross-compiling anyway so I think it's reasonable to require the user to define it appropriately. --- include/blacspp/types.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/blacspp/types.hpp b/include/blacspp/types.hpp index 994faed..25e36d4 100644 --- a/include/blacspp/types.hpp +++ b/include/blacspp/types.hpp @@ -7,13 +7,18 @@ #pragma once #include +#include #include #include namespace blacspp { /// Integer type for BLACS operations +#if defined(BLAS_ILP64) + using blacs_int = int64_t; +#else using blacs_int = int32_t; +#endif /// Type for single precision complex floating point numbers using scomplex = std::complex< float >;