diff --git a/src/wrapper/mempool.cpp b/src/wrapper/mempool.cpp index 07c00de947b976d4a9aba94311817f790c4fbb9d..fb0dfe732c8bc56abc4995096cefaf71b7b5f2c4 100644 --- a/src/wrapper/mempool.cpp +++ b/src/wrapper/mempool.cpp @@ -202,9 +202,9 @@ namespace int flags = 0; if (order == NPY_FORTRANORDER) - flags |= NPY_FARRAY; + flags |= NPY_ARRAY_FARRAY; else if (order == NPY_CORDER) - flags |= NPY_CARRAY; + flags |= NPY_ARRAY_CARRAY; else throw std::runtime_error("unrecognized order specifier"); diff --git a/src/wrapper/wrap_cudadrv.cpp b/src/wrapper/wrap_cudadrv.cpp index 0e9a9a8df893f34fca4f9227c8cf4664e1364199..571e0d6489df69e11de3d067acb0178f29eaaef2 100644 --- a/src/wrapper/wrap_cudadrv.cpp +++ b/src/wrapper/wrap_cudadrv.cpp @@ -584,9 +584,9 @@ namespace int ary_flags = 0; if (order == NPY_FORTRANORDER) - ary_flags |= NPY_FARRAY; + ary_flags |= NPY_ARRAY_FARRAY; else if (order == NPY_CORDER) - ary_flags |= NPY_CARRAY; + ary_flags |= NPY_ARRAY_CARRAY; else throw pycuda::error("numpy_empty", CUDA_ERROR_INVALID_VALUE, "unrecognized order specifier");