Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
Bug fixes
PR changes
Others
Description
The phi uses nvrtc to implement JIT-compilation. However, it uses
--gpu-architecture=cmopute_
rather than--gpu-architecture=sm_
. The difference is that compute_ only generates PTX code instead of machine code (ie, SASS). The sm_ has both.So, the workflow is nvrtc generates PTX code, then invokes the driver to generate machine code.
The problem is if the driver version doesn't match CUDA version, the driver cannot recognize the format of PTX code, so it triggers “provided ptx was compiled with an unsupported toolchain” error. This issue cannot be resolved by “CUDA forward compatibility enabled”.
The only solutions are two:
Many peoples cannot upgrade the driver frequently, so this patch is the 2nd solution.