Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Finally
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Oct 11, 2019
1 parent 5cc2615 commit da5c5c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 1 addition & 7 deletions src/operator/numpy/np_elemwise_broadcast_logic_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,13 @@ MXNET_OPERATOR_REGISTER_NP_BINARY_LOGIC(greater_equal);
MXNET_OPERATOR_REGISTER_NP_BINARY_LOGIC(less_equal);

#if MXNET_USE_TVM_OP

#define MXNET_OPERATOR_REGISTER_NP_BINARY_LOGIC_CPU(name) \
NNVM_REGISTER_OP(_npi_##name) \
.set_attr<FCompute>("FCompute<cpu>", TVMBinaryBroadcastCompute{func_##name##_cpu})

#pragma message("In np_elemwise_broadcast_logic_op.cc, MXNET_USE_TVM_OP ")

#if MXNET_USE_CUDA

#pragma message("In np_elemwise_broadcast_logic_op.cc, MXNET_USE_CUDA")

#define MXNET_OPERATOR_REGISTER_NP_BINARY_LOGIC_GPU(name) \
NNVM_REGISTER_OP(_npi_##name) \
.set_attr<FCompute>("FCompute<gpu>", TVMBinaryBroadcastCompute{func_##name##_gpu})
Expand All @@ -158,9 +155,6 @@ MXNET_OPERATOR_REGISTER_NP_BINARY_LOGIC_GPU(less_equal);

#else

#pragma message("In np_elemwise_broadcast_logic_op.cc, MXNET_USE_TVM_OP")
#pragma message("In np_elemwise_broadcast_logic_op.cc, MXNET_USE_CUDA")

#define MXNET_OPERATOR_REGISTER_NP_BINARY_LOGIC_CPU(name) \
NNVM_REGISTER_OP(_npi_##name) \
.set_attr<FCompute>("FCompute<cpu>", BinaryBroadcastComputeLogic<cpu, mshadow_op::np_##name>)
Expand Down
6 changes: 1 addition & 5 deletions src/operator/numpy/np_elemwise_broadcast_logic_op.cu
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ namespace mxnet {
namespace op {


#if MXNET_USE_TVM_OP
#pragma message("In np_elemwise_broadcast_logic_op.cu, MXNET_USE_TVM_OP")

#else
#pragma message("In np_elemwise_broadcast_logic_op.cu, MXNET_USE_TVM_OP")
#if MXNET_USE_TVM_OP == 0

#define MXNET_OPERATOR_REGISTER_NP_BINARY_LOGIC_GPU(name) \
NNVM_REGISTER_OP(_npi_##name) \
Expand Down

0 comments on commit da5c5c7

Please sign in to comment.