Boost logo

Boost :

Subject: Re: [boost] mkl+boost problems
From: Kevin Heifner (heifnerk_at_[hidden])
Date: 2010-11-09 11:46:38


On 11/9/2010 10:14 AM, Andrey Asadchev wrote:
> My fix is:
>
> #ifndef BOOST_NUMERIC_BINDINGS_CBLAS_INC_H
> #define BOOST_NUMERIC_BINDINGS_CBLAS_INC_H
>
> extern "C" {
>
> #ifdef BOOST_NUMERIC_BINDINGS_MKL
> #include<mkl_cblas.h>
> #include<mkl_service.h>

#ifdef P4

> #undef P4 // mkl_types.h defines P4 macro which breaks MPL

#endif

> #else
> #include<cblas.h>
> #endif
>
> }
>
> #endif

That way if/when mkl_cblas.h fixes their #define it will not break your
header.

KevinH

-- 
Kevin Heifner  heifner @ ociweb.com  http://heifner.blogspot.com
           Object Computing, Inc. (OCI) www.ociweb.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk