Skip to content

Commit

Permalink
Add cpu compile time flags. (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant Kumar authored Jun 23, 2023
1 parent 4002da7 commit 6ef78ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shark/iree_utils/compile_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def get_iree_device_args(device, extra_args=[]):
if device_uri[0] == "cpu":
from shark.iree_utils.cpu_utils import get_iree_cpu_args

return get_iree_cpu_args()
data_tiling_flag = ["--iree-flow-enable-data-tiling"]
u_kernel_flag = ["--iree-llvmcpu-enable-microkernels"]

return get_iree_cpu_args() + data_tiling_flag + u_kernel_flag
if device_uri[0] == "cuda":
from shark.iree_utils.gpu_utils import get_iree_gpu_args

Expand Down

0 comments on commit 6ef78ee

Please sign in to comment.