pdt 3.25.2 (#42330)

Add support for -icpx for oneapi
This commit is contained in:
wspear 2024-01-26 20:08:19 -08:00 committed by GitHub
parent bd8de5bf2d
commit 179a1e423e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,7 @@ class Pdt(AutotoolsPackage):
license("GPL-2.0-only")
version("3.25.2", sha256="01c2d403bc6672b2b264a182c325806541066c5ed5713878eb598f5506428cbe")
version("3.25.1", sha256="0b6f8a6b8769c181b2ae6cae7298f04b8e3e3d68066f598ed24574e19500bc97")
version("3.25", sha256="1037628d854edfeded3d847150d3e8fbd3774e8146407ce32f5021c80f6299be")
version("3.24", sha256="4a2bb31f3f7f2e52ed49d9b7189ade05170a4386ef76771280a06e8b3ca97ab2")
@ -50,8 +51,13 @@ def configure(self, spec, prefix):
options = ["-prefix=%s" % prefix]
if self.compiler.name == "xl":
options.append("-XLC")
elif self.compiler.name == "intel" or self.compiler.name == "oneapi":
elif self.compiler.name == "intel":
options.append("-icpc")
elif self.compiler.name == "oneapi":
if spec.satisfies("@3.25.2:"):
options.append("-icpx")
else:
options.append("-icpc")
elif self.compiler.name == "pgi":
options.append("-pgCC")
elif self.compiler.name == "gcc":