When -mcpu=native is specified, try detecting GPU
on the system by using amdgpu-arch tool. If it
fails to detect GPU, emit an error about GPU
not detected. If multiple GPUs are detected,
use the first GPU and emit a warning.
Details
Details
- Reviewers
tra arsenm MaskRay - Commits
- rG91b9bdeb9256: [AMDGPU] Support -mcpu=native for OpenCL
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/Basic/DiagnosticDriverKinds.td | ||
---|---|---|
86 | s/architecture/architectures/ Maybe should stick to the "device" terminology opencl uses |
Comment Actions
Right. It is difficult to test it with lit tests, but we will test it with internal CI.
clang/include/clang/Basic/DiagnosticDriverKinds.td | ||
---|---|---|
86 | multiple devices is ambiguous since it could mean multiple devices of the same GPU architecture. multiple architectures is not ambiguous. |
s/architecture/architectures/
Maybe should stick to the "device" terminology opencl uses