Search code examples
pycuda

pycuda -- how to deal with 'including libraries'


I have a code in c++.I modified it with cuda.But ,i want to use Pycuda. The code has for example :

#include <vector>
#include <boost/array.hpp>
#include <complex>
#include <boost/python.hpp>

typedef std::complex<double> cmplx;
typedef std::vector< boost::array<std::complex<double>,3 > > ComplexFieldType;
typedef std::vector< boost::array<double,3> > RealFieldType;

In Pycuda you can't use the libraries. How can i deal with that problem?


Solution

  • For anyone who might be interested check this

    You can use #include <pycuda-complex.hpp>