From 50b7d82b9662dce1f818e92757250bafc9135171 Mon Sep 17 00:00:00 2001 From: raver119 Date: Wed, 11 Mar 2020 11:43:18 +0300 Subject: [PATCH] more compilation units Signed-off-by: raver119 --- ...casting_bool.cpp => broadcasting_bool.hpp} | 2 +- ...adcasting_int.cpp => broadcasting_int.hpp} | 2 +- .../compilation_units/broadcast_bool_p0.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p1.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p2.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p3.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p4.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p5.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p6.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p7.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p8.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_bool_p9.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_int_p0.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_int_p1.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_int_p2.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_int_p3.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_int_p4.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_int_p5.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_int_p6.cpp | 27 +++++++++++++++++++ .../compilation_units/broadcast_int_p7.cpp | 27 +++++++++++++++++++ libnd4j/include/types/types.h | 24 +++++++++++++++++ 21 files changed, 512 insertions(+), 2 deletions(-) rename libnd4j/include/loops/cpu/{broadcasting_bool.cpp => broadcasting_bool.hpp} (99%) rename libnd4j/include/loops/cpu/{broadcasting_int.cpp => broadcasting_int.hpp} (99%) create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p0.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p1.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p2.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p3.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p4.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p5.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p6.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p7.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p8.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p9.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_int_p0.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_int_p1.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_int_p2.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_int_p3.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_int_p4.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_int_p5.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_int_p6.cpp create mode 100644 libnd4j/include/loops/cpu/compilation_units/broadcast_int_p7.cpp diff --git a/libnd4j/include/loops/cpu/broadcasting_bool.cpp b/libnd4j/include/loops/cpu/broadcasting_bool.hpp similarity index 99% rename from libnd4j/include/loops/cpu/broadcasting_bool.cpp rename to libnd4j/include/loops/cpu/broadcasting_bool.hpp index 418006794..9f9e95f50 100644 --- a/libnd4j/include/loops/cpu/broadcasting_bool.cpp +++ b/libnd4j/include/loops/cpu/broadcasting_bool.hpp @@ -649,6 +649,6 @@ void BroadcastBool::exec(const void *vx, const Nd4jLong *xShapeInfo, } } - BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES, BOOL_TYPES); + //BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES, BOOL_TYPES); } } \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/broadcasting_int.cpp b/libnd4j/include/loops/cpu/broadcasting_int.hpp similarity index 99% rename from libnd4j/include/loops/cpu/broadcasting_int.cpp rename to libnd4j/include/loops/cpu/broadcasting_int.hpp index c3ccd024e..9c5186f8c 100644 --- a/libnd4j/include/loops/cpu/broadcasting_int.cpp +++ b/libnd4j/include/loops/cpu/broadcasting_int.hpp @@ -633,6 +633,6 @@ void BroadcastInt::exec(const void *vx, const Nd4jLong *xShapeInfo, } } -BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES); +//BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES); } } \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p0.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p0.cpp new file mode 100644 index 000000000..08ebd92f7 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p0.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_0, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p1.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p1.cpp new file mode 100644 index 000000000..16e4c817a --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p1.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_1, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p2.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p2.cpp new file mode 100644 index 000000000..10b32ca41 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p2.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_2, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p3.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p3.cpp new file mode 100644 index 000000000..547ddd371 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p3.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_3, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p4.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p4.cpp new file mode 100644 index 000000000..3c7dee0a0 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p4.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_4, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p5.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p5.cpp new file mode 100644 index 000000000..b71925dab --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p5.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_5, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p6.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p6.cpp new file mode 100644 index 000000000..23eedd289 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p6.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_6, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p7.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p7.cpp new file mode 100644 index 000000000..c18e7641e --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p7.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_7, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p8.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p8.cpp new file mode 100644 index 000000000..efee34519 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p8.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_8, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p9.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p9.cpp new file mode 100644 index 000000000..2ab193285 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_bool_p9.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_bool.hpp" + +namespace functions { + namespace broadcast { + BUILD_DOUBLE_TEMPLATE(template class ND4J_EXPORT BroadcastBool, , LIBND4J_TYPES_9, BOOL_TYPES); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p0.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p0.cpp new file mode 100644 index 000000000..d3f5ada43 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p0.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_int.hpp" + +namespace functions { + namespace broadcast { + BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES_0); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p1.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p1.cpp new file mode 100644 index 000000000..82969bdb0 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p1.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_int.hpp" + +namespace functions { + namespace broadcast { + BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES_1); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p2.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p2.cpp new file mode 100644 index 000000000..53d928111 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p2.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_int.hpp" + +namespace functions { + namespace broadcast { + BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES_2); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p3.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p3.cpp new file mode 100644 index 000000000..eba7b78d1 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p3.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_int.hpp" + +namespace functions { + namespace broadcast { + BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES_3); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p4.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p4.cpp new file mode 100644 index 000000000..47b7350f2 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p4.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_int.hpp" + +namespace functions { + namespace broadcast { + BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES_4); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p5.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p5.cpp new file mode 100644 index 000000000..3afad08f6 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p5.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_int.hpp" + +namespace functions { + namespace broadcast { + BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES_5); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p6.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p6.cpp new file mode 100644 index 000000000..286c2680f --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p6.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_int.hpp" + +namespace functions { + namespace broadcast { + BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES_6); + } +} \ No newline at end of file diff --git a/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p7.cpp b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p7.cpp new file mode 100644 index 000000000..242441561 --- /dev/null +++ b/libnd4j/include/loops/cpu/compilation_units/broadcast_int_p7.cpp @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2015-2018 Skymind, Inc. + * + * 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 + ******************************************************************************/ + +// +// Created by raver119 on 23/09/18. +// + +#include "../broadcasting_int.hpp" + +namespace functions { + namespace broadcast { + BUILD_SINGLE_TEMPLATE(template class ND4J_EXPORT BroadcastInt, , INTEGER_TYPES_7); + } +} \ No newline at end of file diff --git a/libnd4j/include/types/types.h b/libnd4j/include/types/types.h index 620faa838..1a87ff49a 100644 --- a/libnd4j/include/types/types.h +++ b/libnd4j/include/types/types.h @@ -144,6 +144,30 @@ (sd::DataType::INT32, int32_t), \ (sd::DataType::INT64, Nd4jLong) +#define INTEGER_TYPES_0 \ + (sd::DataType::INT8, int8_t) + +#define INTEGER_TYPES_1 \ + (sd::DataType::UINT8, uint8_t) + +#define INTEGER_TYPES_2 \ + (sd::DataType::UINT16, uint16_t) + +#define INTEGER_TYPES_3 \ + (sd::DataType::UINT32, uint32_t) + +#define INTEGER_TYPES_4 \ + (sd::DataType::UINT64, uint64_t) + +#define INTEGER_TYPES_5 \ + (sd::DataType::INT16, int16_t) + +#define INTEGER_TYPES_6 \ + (sd::DataType::INT32, int32_t) + +#define INTEGER_TYPES_7 \ + (sd::DataType::INT64, Nd4jLong) + #define NUMERIC_TYPES \ (sd::DataType::HALF, float16), \