Add compute capability of first device as arch property

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-05-05 14:11:30 +02:00
parent 9f50ac95c4
commit 70c4588197

View File

@ -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()
}