This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Only substitute `mlir-spirv-cpu-runner` tool if enabled
ClosedPublic

Authored by csigg on Sep 13 2022, 12:33 AM.

Details

Summary

This tool is only used if MLIR_ENABLE_SPIRV_CPU_RUNNER was specified and should only be substituted in that case. Alternatively, we could make the substitution optional.

Diff Detail

Event Timeline

csigg created this revision.Sep 13 2022, 12:33 AM
csigg requested review of this revision.Sep 13 2022, 12:33 AM
mehdi_amini accepted this revision.Sep 13 2022, 1:57 AM
mehdi_amini added inline comments.
mlir/test/lit.cfg.py
65

I'm surprised we need these *-test as "tools"?

66

I think mlir-cpu-runner is also optional

90

This is how we handle the other "optional" things FYI (I don't mind if you prefer you current diff).

This revision is now accepted and ready to land.Sep 13 2022, 1:57 AM
csigg added inline comments.Sep 13 2022, 6:40 AM
mlir/test/lit.cfg.py
65

I don't think we do. I will remove them in a separate change.

66

The tests that require this tool are not triggered by some specific CMake var. See e.g. mlir/test/mlir-cpu-runner/async.mlir.

90

I did see this, but my thinking was the current diff will report a slightly better log message.