Allow the usage of minor version 0, for hip versions
such as 4.0. Change the default values when performing
version checks.
Details
Details
- Reviewers
yaxunl - Commits
- rGf2cc0427b13e: [HIP] Fix --hip-version flag with 0 as component
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Driver/ToolChains/AMDGPU.cpp | ||
---|---|---|
148–149 | I don't think we need to change this part. | |
319–321 | is there any reason to use this number? can we just use ~0U ? | |
331–333 | I think we should allow major==0 since 0.1 is a valid version number. also we should allow --hip-version=4 and treat it as 4.0.0, i.e. if major is set but minor is missing, then minor is 0. and we need a test for that. |
I don't think we need to change this part.