Take the 2-minute tour ×

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?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

For anyone who might be interested check this

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

share|improve this answer

Your Answer


