This patch prevents runtime tests running on systems without amdgpu.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM. Actually I'm wondering if it is possible to do something like: check the eligibility in CMake and set something, then in lit if corresponding platform is not ready (no matter what reason), simply ignore corresponding execution line.
Comment Actions
Similarly we could do the test in lit.
I'd like something similar for cuda, where a system may have cuda installed but no nvidia card present. I wonder if there's an executable in the cuda toolkit that could serve the same purpose.
Comment Actions
lgtm as well.
$ nvidia-smi -L GPU 0: Tesla V100-SXM2-16GB (UUID: GPU-xyz...) GPU 1: Tesla V100-SXM2-16GB (UUID: GPU-xyz...)
SUMMARY OPTIONS -L, --list-gpus List each of the NVIDIA GPUs in the system, along with their UUIDs.
I cannot test, what the tool does, if no NVIDIA GPU is available in a system. We only have the tool installed on nodes with GPUs. It might return an error code or just have an empty output.