Skip to content

Commit 49d9e87

Browse files
committed
add config for Coverage CI
1 parent eff7e2a commit 49d9e87

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

paddle/fluid/framework/custom_operator.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ void RegisterOperatorWithMetaInfo(
519519
auto op_name = OpMetaInfoHelper::GetOpName(base_op_meta);
520520

521521
if (OpInfoMap::Instance().Has(op_name)) {
522+
LOG(WARNING) << "Operator (" << op_name << ")has been registered.";
522523
return;
523524
}
524525

python/paddle/fluid/tests/custom_op/test_custom_relu_op_jit.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,12 @@ def test_exception(self):
132132

133133
def test_load_multiple_module(self):
134134
custom_module = load(
135-
name='custom_conj_jit', sources=['custom_conj_op.cc'])
135+
name='custom_conj_jit',
136+
sources=['custom_conj_op.cc'],
137+
extra_include_paths=paddle_includes, # add for Coverage CI
138+
extra_cxx_cflags=extra_cc_args, # test for cc flags
139+
extra_cuda_cflags=extra_nvcc_args, # test for nvcc flags
140+
verbose=True)
136141
custom_conj = custom_module.custom_conj
137142
self.assertIsNotNone(custom_conj)
138143

0 commit comments

Comments
 (0)