HPL: amdalloc with AOCC 4.0 (#37757)

* adding amdalloc when using aocc 4


* adding and libm for aocc3.2
This commit is contained in:
AMD Toolchain Support 2023-05-31 05:10:41 +05:30 committed by GitHub
parent d30698d9a8
commit 43b86ce282
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,6 +115,14 @@ def configure_args(self):
):
config.append("LDFLAGS={0}".format(self.spec["blas"].libs.ld_flags))
if "%aocc" in self.spec:
amd_ldflags = " "
if "%aocc@3:" in self.spec:
amd_ldflags += "-lamdlibm -lm "
if "%aocc@4:" in self.spec:
amd_ldflags += "-lamdalloc "
config.append("LDFLAGS=" + amd_ldflags)
return config
@when("@:2.2")