Skip to content

Commit de12da4

Browse files
committed
separate includes for meson
1 parent 9253876 commit de12da4

26 files changed

Lines changed: 41 additions & 59 deletions

quaddtype/meson.build

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -155,44 +155,26 @@ build_includes = include_directories('.') # compile time generated headers as pe
155155
includes = include_directories(
156156
[
157157
incdir_numpy,
158-
'src/csrc',
158+
'src/include',
159159
]
160160
)
161161
pythoncapi_includes = pythoncapi_compat_inc
162162

163163
srcs = [
164-
'src/csrc/quad_common.h',
165-
'src/csrc/casts.h',
166164
'src/csrc/casts.cpp',
167-
'src/csrc/scalar.h',
168165
'src/csrc/scalar.c',
169-
'src/csrc/dtype.h',
170166
'src/csrc/dtype.c',
171167
'src/csrc/quaddtype_main.c',
172-
'src/csrc/scalar_ops.h',
173168
'src/csrc/scalar_ops.cpp',
174-
'src/csrc/ops.hpp',
175-
'src/csrc/dragon4.h',
176169
'src/csrc/dragon4.c',
177-
'src/csrc/quadblas_interface.h',
178170
'src/csrc/quadblas_interface.cpp',
179-
'src/csrc/umath/umath.h',
180171
'src/csrc/umath/umath.cpp',
181-
'src/csrc/umath/binary_ops.h',
182172
'src/csrc/umath/binary_ops.cpp',
183-
'src/csrc/umath/unary_ops.h',
184173
'src/csrc/umath/unary_ops.cpp',
185-
'src/csrc/umath/unary_props.h',
186174
'src/csrc/umath/unary_props.cpp',
187-
'src/csrc/umath/comparison_ops.h',
188175
'src/csrc/umath/comparison_ops.cpp',
189-
'src/csrc/umath/promoters.hpp',
190-
'src/csrc/umath/matmul.h',
191176
'src/csrc/umath/matmul.cpp',
192-
'src/csrc/constants.hpp',
193-
'src/csrc/lock.h',
194177
'src/csrc/lock.c',
195-
'src/csrc/utilities.h',
196178
'src/csrc/utilities.c',
197179
]
198180

quaddtype/reinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rm -rf subprojects/pythoncapi-compat
99
rm -rf .mesonpy-*
1010

1111
python -m pip uninstall -y numpy_quaddtype
12-
python -m pip install . -vv --no-build-isolation 2>&1 | tee build_log.txt
12+
python -m pip install . -vv 2>&1 | tee build_log.txt
1313

1414
# for debugging and TSAN builds, comment the above line and uncomment all below:
1515
# export CFLAGS="-fsanitize=thread -g -O0"

quaddtype/src/csrc/umath/binary_ops.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
#include "numpy/dtype_api.h"
1515
#include "numpy/ndarraytypes.h"
1616

17-
#include "../quad_common.h"
18-
#include "../scalar.h"
19-
#include "../dtype.h"
20-
#include "../ops.hpp"
21-
#include "promoters.hpp"
22-
#include "binary_ops.h"
17+
#include "quad_common.h"
18+
#include "scalar.h"
19+
#include "dtype.h"
20+
#include "ops.hpp"
21+
#include "umath/promoters.hpp"
22+
#include "umath/binary_ops.h"
2323

2424
static NPY_CASTING
2525
quad_binary_op_resolve_descriptors(PyObject *self, PyArray_DTypeMeta *const dtypes[],

quaddtype/src/csrc/umath/comparison_ops.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
#include "numpy/dtype_api.h"
1515
#include "numpy/ndarraytypes.h"
1616

17-
#include "../quad_common.h"
18-
#include "../scalar.h"
19-
#include "../dtype.h"
20-
#include "umath.h"
21-
#include "../ops.hpp"
22-
#include "promoters.hpp"
23-
#include "binary_ops.h"
24-
#include "comparison_ops.h"
17+
#include "quad_common.h"
18+
#include "scalar.h"
19+
#include "dtype.h"
20+
#include "umath/umath.h"
21+
#include "ops.hpp"
22+
#include "umath/promoters.hpp"
23+
#include "umath/binary_ops.h"
24+
#include "umath/comparison_ops.h"
2525

2626
static NPY_CASTING
2727
quad_comparison_op_resolve_descriptors(PyObject *self, PyArray_DTypeMeta *const dtypes[],

quaddtype/src/csrc/umath/matmul.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ extern "C" {
1616
#include "numpy/dtype_api.h"
1717
}
1818

19-
#include "../quad_common.h"
20-
#include "../scalar.h"
21-
#include "../dtype.h"
22-
#include "../ops.hpp"
23-
#include "matmul.h"
24-
#include "promoters.hpp"
25-
#include "../quadblas_interface.h"
19+
#include "quad_common.h"
20+
#include "scalar.h"
21+
#include "dtype.h"
22+
#include "ops.hpp"
23+
#include "umath/matmul.h"
24+
#include "umath/promoters.hpp"
25+
#include "quadblas_interface.h"
2626

2727
static NPY_CASTING
2828
quad_matmul_resolve_descriptors(PyObject *self, PyArray_DTypeMeta *const dtypes[],

quaddtype/src/csrc/umath/umath.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ extern "C" {
1414
#include "numpy/ufuncobject.h"
1515
#include "numpy/dtype_api.h"
1616
}
17-
#include "../quad_common.h"
18-
#include "../scalar.h"
19-
#include "../dtype.h"
20-
#include "umath.h"
21-
#include "../ops.hpp"
22-
#include "unary_ops.h"
23-
#include "unary_props.h"
24-
#include "binary_ops.h"
25-
#include "comparison_ops.h"
26-
#include "matmul.h"
17+
#include "quad_common.h"
18+
#include "scalar.h"
19+
#include "dtype.h"
20+
#include "umath/umath.h"
21+
#include "ops.hpp"
22+
#include "umath/unary_ops.h"
23+
#include "umath/unary_props.h"
24+
#include "umath/binary_ops.h"
25+
#include "umath/comparison_ops.h"
26+
#include "umath/matmul.h"
2727

2828
int
2929
init_quad_umath(void)

quaddtype/src/csrc/umath/unary_ops.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ extern "C" {
1515

1616
#include "numpy/dtype_api.h"
1717
}
18-
#include "../quad_common.h"
19-
#include "../scalar.h"
20-
#include "../dtype.h"
21-
#include "../ops.hpp"
18+
#include "quad_common.h"
19+
#include "scalar.h"
20+
#include "dtype.h"
21+
#include "ops.hpp"
2222

2323
static NPY_CASTING
2424
quad_unary_op_resolve_descriptors(PyObject *self, PyArray_DTypeMeta *const dtypes[],

quaddtype/src/csrc/umath/unary_props.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ extern "C" {
1515

1616
#include "numpy/dtype_api.h"
1717
}
18-
#include "../quad_common.h"
19-
#include "../scalar.h"
20-
#include "../dtype.h"
21-
#include "../ops.hpp"
18+
#include "quad_common.h"
19+
#include "scalar.h"
20+
#include "dtype.h"
21+
#include "ops.hpp"
2222

2323
static NPY_CASTING
2424
quad_unary_prop_resolve_descriptors(PyObject *self, PyArray_DTypeMeta *const dtypes[],

0 commit comments

Comments
 (0)