diff --git a/libnd4j/include/helpers/cpu/loops/IndexReductionLoops.cpp b/libnd4j/include/helpers/cpu/loops/IndexReductionLoops.hpp similarity index 98% rename from libnd4j/include/helpers/cpu/loops/IndexReductionLoops.cpp rename to libnd4j/include/helpers/cpu/loops/IndexReductionLoops.hpp index 4bd456da2..1aaaaebc7 100644 --- a/libnd4j/include/helpers/cpu/loops/IndexReductionLoops.cpp +++ b/libnd4j/include/helpers/cpu/loops/IndexReductionLoops.hpp @@ -311,6 +311,4 @@ void nd4j::IndexReductionLoops::wrapIndexReduce(const int opNum, void* vx, auto extraParams = reinterpret_cast(vextraParams); DISPATCH_BY_OPNUM_TT(loopIndexReduce, PARAMS(x, xShapeInfo, z, zShapeInfo, tadShapeInfo, tadOffsets, extraParams), INDEX_REDUCE_OPS); -} - -BUILD_DOUBLE_TEMPLATE(template void nd4j::IndexReductionLoops, ::wrapIndexReduce(const int opNum, void* vx, Nd4jLong* xShapeInfo, void* z, Nd4jLong* zShapeInfo, Nd4jLong* tadShapeInfo, Nd4jLong* tadOffsets, void* vextraParams), LIBND4J_TYPES, INDEXING_TYPES); \ No newline at end of file +} \ No newline at end of file diff --git a/libnd4j/include/helpers/cpu/loops/IndexReductionLoops_int32.cpp b/libnd4j/include/helpers/cpu/loops/IndexReductionLoops_int32.cpp new file mode 100644 index 000000000..8a4b3cd7d --- /dev/null +++ b/libnd4j/include/helpers/cpu/loops/IndexReductionLoops_int32.cpp @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author Yurii Shyrma (iuriish@yahoo.com) +// + +#include "./IndexReductionLoops.hpp" + +BUILD_DOUBLE_TEMPLATE(template void nd4j::IndexReductionLoops, ::wrapIndexReduce(const int opNum, void* vx, Nd4jLong* xShapeInfo, void* z, Nd4jLong* zShapeInfo, Nd4jLong* tadShapeInfo, Nd4jLong* tadOffsets, void* vextraParams), LIBND4J_TYPES, (nd4j::DataType::INT32, int32_t)); \ No newline at end of file diff --git a/libnd4j/include/helpers/cpu/loops/IndexReductionLoops_int64.cpp b/libnd4j/include/helpers/cpu/loops/IndexReductionLoops_int64.cpp new file mode 100644 index 000000000..4fcb63ebf --- /dev/null +++ b/libnd4j/include/helpers/cpu/loops/IndexReductionLoops_int64.cpp @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author Yurii Shyrma (iuriish@yahoo.com) +// + +#include "./IndexReductionLoops.hpp" + +BUILD_DOUBLE_TEMPLATE(template void nd4j::IndexReductionLoops, ::wrapIndexReduce(const int opNum, void* vx, Nd4jLong* xShapeInfo, void* z, Nd4jLong* zShapeInfo, Nd4jLong* tadShapeInfo, Nd4jLong* tadOffsets, void* vextraParams), LIBND4J_TYPES, (nd4j::DataType::INT64, Nd4jLong)); \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p0.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p0.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p0.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p0.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p1.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p1.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p1.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p1.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p2.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p2.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p2.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p2.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p3.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p3.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p3.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p3.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p4.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p4.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p4.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p4.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p5.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p5.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p5.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p5.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p6.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p6.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p6.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p6.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p7.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p7.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p7.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p7.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p8.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p8.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p8.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p8.cpp diff --git a/libnd4j/include/loops/cpu/broadcast/broadcast_p9.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_p9.cpp similarity index 100% rename from libnd4j/include/loops/cpu/broadcast/broadcast_p9.cpp rename to libnd4j/include/loops/cpu/compilation_units/broadcast_p9.cpp diff --git a/libnd4j/include/loops/cpu/compilation_units/indexreduce_int32.cpp b/libnd4j/include/loops/cpu/compilation_units/indexreduce_int32.cpp new file mode 100644 index 000000000..7b87535c2 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/indexreduce_int32.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../indexreduce.hpp" + +namespace functions { + namespace indexreduce { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT IndexReduce, , LIBND4J_TYPES, (nd4j::DataType::INT32, int32_t)); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/indexreduce_int64.cpp b/libnd4j/include/loops/cpu/compilation_units/indexreduce_int64.cpp new file mode 100644 index 000000000..d1005699c --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/indexreduce_int64.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../indexreduce.hpp" + +namespace functions { + namespace indexreduce { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT IndexReduce, , LIBND4J_TYPES, (nd4j::DataType::INT64, Nd4jLong)); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p0.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p0.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p0.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p0.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p1.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p1.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p1.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p1.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p2.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p2.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p2.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p2.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p3.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p3.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p3.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p3.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p4.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p4.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p4.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p4.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p5.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p5.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p5.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p5.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p6.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p6.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p6.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p6.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p7.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p7.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p7.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p7.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p8.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p8.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p8.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p8.cpp diff --git a/libnd4j/include/loops/cpu/pairwise/pairwise_p9.cpp b/libnd4j/include/loops/cpu/compilation_units/pairwise_p9.cpp similarity index 100% rename from libnd4j/include/loops/cpu/pairwise/pairwise_p9.cpp rename to libnd4j/include/loops/cpu/compilation_units/pairwise_p9.cpp diff --git a/libnd4j/include/loops/cpu/compilation_units/reduce3_bfloat16.cpp b/libnd4j/include/loops/cpu/compilation_units/reduce3_bfloat16.cpp new file mode 100644 index 000000000..8df61ad29 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/reduce3_bfloat16.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../reduce3.hpp" + +namespace functions { + namespace reduce3 { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT Reduce3, , LIBND4J_TYPES, FLOAT_TYPES_3); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/reduce3_double.cpp b/libnd4j/include/loops/cpu/compilation_units/reduce3_double.cpp new file mode 100644 index 000000000..10e78e914 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/reduce3_double.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../reduce3.hpp" + +namespace functions { + namespace reduce3 { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT Reduce3, , LIBND4J_TYPES, FLOAT_TYPES_2); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/reduce3_float.cpp b/libnd4j/include/loops/cpu/compilation_units/reduce3_float.cpp new file mode 100644 index 000000000..5362352b6 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/reduce3_float.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../reduce3.hpp" + +namespace functions { + namespace reduce3 { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT Reduce3, , LIBND4J_TYPES, FLOAT_TYPES_1); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/reduce3_float16.cpp b/libnd4j/include/loops/cpu/compilation_units/reduce3_float16.cpp new file mode 100644 index 000000000..8a738acf9 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/reduce3_float16.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../reduce3.hpp" + +namespace functions { + namespace reduce3 { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT Reduce3, , LIBND4J_TYPES, FLOAT_TYPES_0); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/reduce_float_0.cpp b/libnd4j/include/loops/cpu/compilation_units/reduce_float_0.cpp new file mode 100644 index 000000000..de4619f29 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/reduce_float_0.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../reduce/reduce_float.hpp" + +namespace functions { + namespace reduce { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT ReduceFloatFunction, , LIBND4J_TYPES, FLOAT_TYPES_0); + } +} diff --git a/libnd4j/include/loops/cpu/compilation_units/reduce_float_1.cpp b/libnd4j/include/loops/cpu/compilation_units/reduce_float_1.cpp new file mode 100644 index 000000000..bfa88bc3b --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/reduce_float_1.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../reduce/reduce_float.hpp" + +namespace functions { + namespace reduce { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT ReduceFloatFunction, , LIBND4J_TYPES, FLOAT_TYPES_1); + } +} diff --git a/libnd4j/include/loops/cpu/compilation_units/reduce_float_2.cpp b/libnd4j/include/loops/cpu/compilation_units/reduce_float_2.cpp new file mode 100644 index 000000000..8cc2795a4 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/reduce_float_2.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../reduce/reduce_float.hpp" + +namespace functions { + namespace reduce { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT ReduceFloatFunction, , LIBND4J_TYPES, FLOAT_TYPES_2); + } +} diff --git a/libnd4j/include/loops/cpu/compilation_units/reduce_float_3.cpp b/libnd4j/include/loops/cpu/compilation_units/reduce_float_3.cpp new file mode 100644 index 000000000..0b94831c3 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/reduce_float_3.cpp @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * Copyright (c) 2019 Konduit K.K. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +// +// @author raver119@gmail.com +// + +#include "../reduce/reduce_float.hpp" + +namespace functions { + namespace reduce { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT ReduceFloatFunction, , LIBND4J_TYPES, FLOAT_TYPES_3); + } +} diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p0.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p0.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p0.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p0.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p1.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p1.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p1.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p1.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p2.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p2.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p2.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p2.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p3.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p3.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p3.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p3.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p4.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p4.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p4.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p4.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p5.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p5.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p5.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p5.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p6.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p6.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p6.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p6.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p7.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p7.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p7.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p7.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p8.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p8.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p8.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p8.cpp diff --git a/libnd4j/include/loops/cpu/scalar/scalar_p9.cpp b/libnd4j/include/loops/cpu/compilation_units/scalar_p9.cpp similarity index 100% rename from libnd4j/include/loops/cpu/scalar/scalar_p9.cpp rename to libnd4j/include/loops/cpu/compilation_units/scalar_p9.cpp diff --git a/libnd4j/include/loops/cpu/indexreduce.cpp b/libnd4j/include/loops/cpu/indexreduce.hpp similarity index 98% rename from libnd4j/include/loops/cpu/indexreduce.cpp rename to libnd4j/include/loops/cpu/indexreduce.hpp index df3fd64a9..829f60a18 100644 --- a/libnd4j/include/loops/cpu/indexreduce.cpp +++ b/libnd4j/include/loops/cpu/indexreduce.hpp @@ -151,8 +151,5 @@ void IndexReduce::exec(void *vx, Nd4jLong *xShapeInfo, nd4j::IndexReductionLoops::template loopIndexReduce(x, xShapeInfo, z, zShapeInfo, tadOnlyShapeInfo, tadOffsets, extraParams); } - -BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT IndexReduce, , LIBND4J_TYPES, INDEXING_TYPES); - } } \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/reduce/reduce_float.cpp b/libnd4j/include/loops/cpu/reduce/reduce_float.hpp similarity index 99% rename from libnd4j/include/loops/cpu/reduce/reduce_float.cpp rename to libnd4j/include/loops/cpu/reduce/reduce_float.hpp index 112656852..8286d209c 100644 --- a/libnd4j/include/loops/cpu/reduce/reduce_float.cpp +++ b/libnd4j/include/loops/cpu/reduce/reduce_float.hpp @@ -269,8 +269,5 @@ namespace functions { // return result return OpType::postProcess(intermediate[0], length, extraParams); } - - - BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT ReduceFloatFunction, , LIBND4J_TYPES, FLOAT_TYPES); } } \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/reduce3.cpp b/libnd4j/include/loops/cpu/reduce3.hpp similarity index 99% rename from libnd4j/include/loops/cpu/reduce3.cpp rename to libnd4j/include/loops/cpu/reduce3.hpp index dbe93620a..8d50aedbc 100644 --- a/libnd4j/include/loops/cpu/reduce3.cpp +++ b/libnd4j/include/loops/cpu/reduce3.hpp @@ -254,10 +254,5 @@ void Reduce3::execAll(const int opNum, DISPATCH_BY_OPNUM_TT(execAll, PARAMS(vx, xShapeInfo, extraParamsVals, vy, yShapeInfo, vz, zShapeInfo, dimension, dimensionLength, xTadShapeInfo, xOffsets, yTadShapeInfo, yOffsets, start, stop), REDUCE3_OPS); } - - - -BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT Reduce3, , LIBND4J_TYPES, FLOAT_TYPES); - } } \ No newline at end of file