Correct target string for x86 CPU

I read some related articles (‘Correct target string for x86’ or ‘The correct the target for CPU’…). But I could not find correct string for my CPU. My CPU is ‘Intel® Xeon® Gold 6252 CPU @ 2.10GHz’ The code name is Cascade Lake. So I tried to target = ‘llvm -mcpu=Cascade’ or target = ‘llvm -mcpu=Cascade Lake’ But the error message (‘Cannot find config for target’) comes out and kernel died.

Should be llvm -mcpu=cascadelake I think?

No. when I set up 'target = ‘llvm -mcpu=cascadelake’, the following error comes out. Cannot find config for target=llvm -mcpu=cascadelake, workload=(‘dense_nopack.x86’, (‘TENSOR’, (1, 512), ‘float32’), (‘TENSOR’, (1000, 512), ‘float32’), None, ‘float32’). A fallback configuration is used, which may bring great performance regression.

It doesn’t mean your target is wrong. It just meant Tophub doesn’t have pre-tuned schedule config for your workload on Cascade Lake. You should use AutoTVM to tune the model by yourself.