mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Add compute capability of first device as arch property
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
9f50ac95c4
commit
70c4588197
@ -170,6 +170,13 @@ func checkRequirements(logger *logrus.Logger, image *image.CUDA) error {
|
||||
r.AddVersionProperty(requirements.CUDA, cudaVersion)
|
||||
}
|
||||
|
||||
compteCapability, err := cuda.ComputeCapability(0)
|
||||
if err != nil {
|
||||
logger.Warnf("Failed to get CUDA Compute Capability: %v", err)
|
||||
} else {
|
||||
r.AddVersionProperty(requirements.ARCH, compteCapability)
|
||||
}
|
||||
|
||||
return r.Assert()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user