MXNet: fix flag versions (#38402)

This commit is contained in:
Adam J. Stewart 2023-06-15 13:34:21 -05:00 committed by GitHub
parent 09fd7d68eb
commit 4991f0e484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,9 +92,9 @@ def cmake_args(self):
self.define("BLAS_LIBRARIES", self.spec["blas"].libs[0]),
]
if self.spec.satisfies("@:1.8"):
if self.spec.satisfies("@:1"):
args.append(self.define_from_variant("USE_MKLDNN", "mkldnn"))
elif self.spec.satisfies("@1.9:"):
elif self.spec.satisfies("@2:"):
args.append(self.define_from_variant("USE_ONEDNN", "mkldnn"))
args.append(self.define("USE_CUTENSOR", False))