Skip to content

Commit

Permalink
translate -lib=mkldnn to -libs=dnnl in target
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianshui-Jiang committed Jun 10, 2022
1 parent 095ab3e commit c8ba892
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/tvm/target/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ def __init__(self, target, host=None):
When using a dictionary or json string to configure target, the possible values are
same as target.
"""
if "-libs=mkldnn" in target:
target = target.replace("mkldnn", "dnnl")
warnings.warn(
"legacy supoort of mkldnn will be eprecated in the next release."
" Please replace -libs=mkldnn to -libs=dnnl to enable Intel OneDNN.",
)
if isinstance(target, (dict, str)):
target = convert(target)
if isinstance(host, (dict, str)):
Expand Down

0 comments on commit c8ba892

Please sign in to comment.