Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 38945 Build 38944: arc lint + arc unit
Event Timeline
clang/lib/Driver/Driver.cpp | ||
---|---|---|
2655 | Sam, could you let me know which reasonable default arch should we use here? |
clang/lib/Driver/Driver.cpp | ||
---|---|---|
2538 | This technically depends on the CUDA version. |
clang/lib/Driver/Driver.cpp | ||
---|---|---|
2538 | unfortunately, when the action build is running, the CUDA is not detected yet, I probably revise the detection logic to update CUDA's default gpu arch after successful detection |
clang/lib/Driver/Driver.cpp | ||
---|---|---|
2655 | I think it should be gfx803 since as far as I know it is the lowest one that supports HIP. |
clang/lib/Driver/Driver.cpp | ||
---|---|---|
2538 | OK. If there's no easy way to do it here, it's probably not worth doing it just to keep sm_20 as the default. I think we should just bump the default to sm_30 for all currently supported CUDA versions in a separate patch. I can do it once this patch lands. |
This technically depends on the CUDA version.
We do have CUDA version info in clang/lib/Driver/ToolChains/Cuda.h
The default for NVCC has been sm_30 since CUDA-9.0. In fact sm_20 is not supported at all by CUDA-9.0+ at all , so we should bump the default to sm_30 for those versions.