File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
paddle/fluid/operators/jit Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 22
22
#include " paddle/fluid/platform/device_tracer.h"
23
23
#include " paddle/fluid/platform/place.h"
24
24
#include " paddle/fluid/platform/port.h"
25
+ #include " paddle/fluid/platform/variant.h" // for UNUSED
25
26
26
27
DEFINE_int32 (burning, 10 , " Burning times." );
27
28
DEFINE_int32 (repeat, 3000 , " Repeat times." );
@@ -53,7 +54,7 @@ BenchJITKernel* InsertBenchmark(BenchJITKernel* b) {
53
54
const char * Place () override { return #place; } \
54
55
void Run () override ; \
55
56
}; \
56
- static auto inserted_##name##_##dtype##_##place##_ = \
57
+ static auto inserted_##name##_##dtype##_##place##_ UNUSED = \
57
58
InsertBenchmark (new BenchJITKernel_##name##_##dtype##_##place##_()); \
58
59
void BenchJITKernel_##name##_##dtype##_##place##_::Run()
59
60
You can’t perform that action at this time.
0 commit comments